games-of-life

v0.4.0
is a Mathematical solution to any Game of Life variation
math functional game-of-life

_build

npm test && npm run browserify && npm run minify && npm run jekyll; git status

_push

git push origin master && npm run gh-pages_push

_pull

git pull origin master && npm run gh-pages_pull

browserify

for x in dist test; do npm run browserify_$x; done

browserify_dist

browserify -r ./index.js:${npm_package_name} -o dist/${npm_package_name}.js

browserify_test

browserify test/*.js -o gh-pages/test/bundle.js

check-deps

npm outdated

cp

npm run cp_package.json

cp_package.json

cp package.json gh-pages/_data/

gh-pages_push

git subtree --prefix gh-pages push origin gh-pages

gh-pages_pull

git subtree --prefix gh-pages pull origin gh-pages

homepage

echo "--- title: $npm_package_name ---" > gh-pages/index.md; cat README.md >> gh-pages/index.md

jekyll

npm run homepage; npm run cp; cd gh-pages; jekyll build; cd ..

lint

npm run lint_src; npm run lint_test

lint_src

standard src/*

lint_test

cd test; standard --global describe --global it; cd -

minify

cd dist; uglifyjs ${npm_package_name}.js --source-map ${npm_package_name}.map --output ${npm_package_name}.min.js --compress --mangle --preamble "// ${npm_package_name}.js ${npm_package_homepage} // license ${npm_package_license}"; cd -

postversion

git push origin v${npm_package_version}; npm publish; npm run _push

test

mocha --bail --require should --reporter min --recursive

Metadata

  • MIT
  • Whatever
  • Gianluca Casati
  • released 3/10/2016

Downloads

Maintainers