add scripts (#459)

This commit is contained in:
Yoshua Wuyts
2017-03-31 22:17:53 +02:00
committed by GitHub
parent 61ea45004a
commit 9827a97db2
2 changed files with 27 additions and 13 deletions
+13 -5
View File
@@ -4,12 +4,12 @@
"description": "A 4kb framework for creating sturdy frontend applications",
"main": "index.js",
"scripts": {
"build": "mkdir -p dist/ && browserify index -p bundle-collapser/plugin > dist/bundle.js && browserify index -g unassertify -g uglifyify -p bundle-collapser/plugin | uglifyjs > dist/bundle.min.js && zopfli -i 100 dist/bundle.min.js && wc -c < dist/bundle.min.js.gz | pretty-bytes",
"deps": "dependency-check --entry ./html.js . && dependency-check . --extra --no-dev --entry ./html.js",
"inspect": "browserify --full-paths index -g unassertify -g uglifyify | discify --open",
"prepublish": "npm run build",
"start": "bankai start example --open --optimize",
"test": "standard && npm run deps && node test.js",
"build:dev": "echo 'to be implemented'",
"build:min": "echo 'to be implemented'",
"prepublish": "npm run build:dev && npm run build:min"
"test": "standard && npm run deps && node test.js"
},
"repository": "yoshuawuyts/choo",
"keywords": [
@@ -31,9 +31,17 @@
"nanorouter": "^2.0.0"
},
"devDependencies": {
"browserify": "^14.1.0",
"bundle-collapser": "^1.2.1",
"dependency-check": "^2.8.0",
"discify": "^1.6.0",
"node-zopfli": "^2.0.2",
"pretty-bytes-cli": "^2.0.0",
"spok": "^0.8.1",
"standard": "^9.0.1",
"tape": "^4.6.3"
"tape": "^4.6.3",
"uglifyify": "^3.0.4",
"uglifyjs": "^2.4.10",
"unassertify": "^2.0.4"
}
}