bem-xjst

v8.8.5
Declarative Template Engine for the browser and server
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:watch

mocha -w -b --check-leaks --globals BEMXJSTError,_something --throw-deprecation

test:coverage

istanbul cover -x '**/runtime-lint/**' ./node_modules/mocha/bin/_mocha -- -u bdd -R spec test/*-test.js

size

npm run size:bemhtml && npm run size:bemtree

size:bemhtml

uglifyjs ./lib/bemhtml/bundle.js | gzip > ./bemhtml.gz && ls -ola ./bemhtml.gz | awk '{print "BEMHTML Bundle Size:", $4" B"}' && rm ./bemhtml.gz

size:bemtree

uglifyjs ./lib/bemtree/bundle.js | gzip > ./bemtree.gz && ls -ola ./bemtree.gz | awk '{print "BEMTREE Bundle Size:", $4" B"}' && rm ./bemtree.gz

Metadata

  • MPL-2.0
  • >=0.10
  • Fedor Indutny
  • released 11/18/2017

Downloads

Maintainers