bem-xjst
v8.5.0 template templates templating views bem-xjst html bem template engine BEMHTML and 2 more...
prepublish
npm run make
preversion
bash scripts/update-authors.sh && git add AUTHORS && git commit -m "update AUTHORS" || true
make
npm run make:bemhtml && npm run make:bemtree
make:bemhtml
browserify --standalone bemhtml lib/bemhtml/index.js -o lib/bemhtml/bundle.js
make:bemtree
browserify --standalone bemtree lib/bemtree/index.js -o lib/bemtree/bundle.js
clean
rm -f lib/bem{html,tree}/bundle.js
test
npm run make && npm run test:lint && npm run test:coverage && npm run size
test:lint
jscs `ls lib/*.js lib/**/*.js test/*.js | grep -v bundle` && jshint `ls lib/*.js lib/**/*.js test/*.js | grep -v bundle`
test:mocha
mocha --reporter=spec test/*-test.js
test:coverage
istanbul cover ./node_modules/mocha/bin/_mocha -- -u bdd -R spec test/*-test.js
size
npm run size:bemhtml && npm run size:bemtree
size:bemhtml
ls -ola ./lib/bemhtml/bundle.js | awk '{print "BEMHTML Bundle Size:", $4" B"}'
size:bemtree
ls -ola ./lib/bemtree/bundle.js | awk '{print "BEMTREE Bundle Size:", $4" B"}'
npm i [email protected]
Metadata
- MPL-2.0
- >=0.10
- Fedor Indutny
- released 12/8/2016