UNPKG

cuz

Version:

Front-end modular development kit.

37 lines (26 loc) 760 B
default: build .PHONY: lint clear compile bundle deploy build doc example build: lint clear compile bundle deploy install: sudo npm install tnpm -g --registry=http://registry.npm.alibaba-inc.com sudo tnpm install -g grunt-cli bower webpack tnpm install lint: node_modules/.bin/eslint src/ clear: rm -fr lib compile: node_modules/.bin/babel src --out-dir lib sass src/components/index.scss lib/components/index.css cp src/index.css lib/index.css bundle: NODE_ENV=production webpack --config webpack.config.js deploy: cp build/cuz.js docs/js/cuz.js cp lib/components/index.css build/cuz.css cp lib/components/index.css docs/css/cuz.css doc: bundle exec rake jekyll server -s ./docs -d ./docs/_site example: node example/simple/server.js