Skip to content

Commit

Permalink
Bundle size metrica (Fix for #366)
Browse files Browse the repository at this point in the history
  • Loading branch information
miripiruni committed Dec 2, 2016
1 parent 99fa742 commit 79b3e4e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@
"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",
"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": "./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha -- -u bdd -R spec test/*-test.js"
"test:coverage": "./node_modules/.bin/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\"}'"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 79b3e4e

Please sign in to comment.