|
|
@ -7,11 +7,11 @@ |
|
|
|
"start": "static -p 8080 htdocs/", |
|
|
|
"start": "static -p 8080 htdocs/", |
|
|
|
"lint": "jshint --reporter=node_modules/jshint-stylish src/ spec/", |
|
|
|
"lint": "jshint --reporter=node_modules/jshint-stylish src/ spec/", |
|
|
|
"docs": "bundle exec middleman", |
|
|
|
"docs": "bundle exec middleman", |
|
|
|
"build": "npm run build:js && npm run build:css", |
|
|
|
"build": "run-s build:js build:css", |
|
|
|
"build:js": "npm run build:js:rollup && npm run build:js:uglify", |
|
|
|
"build:js": "run-s build:js:rollup build:js:uglify", |
|
|
|
"build:js:rollup": "rollup -c", |
|
|
|
"build:js:rollup": "rollup -c", |
|
|
|
"build:js:uglify": "uglifyjs htdocs/js/c3.js --compress --mangle --comments -o htdocs/js/c3.min.js", |
|
|
|
"build:js:uglify": "uglifyjs htdocs/js/c3.js --compress --mangle --comments -o htdocs/js/c3.min.js", |
|
|
|
"build:css": "npm run build:css:sass && npm run build:css:min", |
|
|
|
"build:css": "run-s build:css:sass build:css:min", |
|
|
|
"build:css:sass": "node-sass src/scss/main.scss > htdocs/css/c3.css", |
|
|
|
"build:css:sass": "node-sass src/scss/main.scss > htdocs/css/c3.css", |
|
|
|
"build:css:min": "cleancss -o htdocs/css/c3.min.css htdocs/css/c3.css", |
|
|
|
"build:css:min": "cleancss -o htdocs/css/c3.min.css htdocs/css/c3.css", |
|
|
|
"build:docs": "bundle exec middleman build", |
|
|
|
"build:docs": "bundle exec middleman build", |
|
|
@ -20,9 +20,9 @@ |
|
|
|
"watch:js": "nodemon -e js --watch src --ignore src/scss -x 'npm run build:js:rollup'", |
|
|
|
"watch:js": "nodemon -e js --watch src --ignore src/scss -x 'npm run build:js:rollup'", |
|
|
|
"watch:css": "nodemon -e scss --watch src -x 'npm run build:css:sass'", |
|
|
|
"watch:css": "nodemon -e scss --watch src -x 'npm run build:css:sass'", |
|
|
|
"watch:docs": "bundle exec middleman", |
|
|
|
"watch:docs": "bundle exec middleman", |
|
|
|
"test:only": "karma start karma.conf.js", |
|
|
|
"karma": "karma start karma.conf.js", |
|
|
|
"test": "npm run build && npm run lint && karma start karma.conf.js", |
|
|
|
"test": "run-s build lint karma", |
|
|
|
"dist": "npm run build && npm run copy-to-root && npm run copy-to-docs", |
|
|
|
"dist": "run-s build copy-to-root copy-to-docs", |
|
|
|
"copy-to-docs": "cp htdocs/js/c3.* docs/js/ && cp htdocs/css/c3.* docs/css/", |
|
|
|
"copy-to-docs": "cp htdocs/js/c3.* docs/js/ && cp htdocs/css/c3.* docs/css/", |
|
|
|
"copy-to-root": "cp htdocs/{css,js}/c3.* ./", |
|
|
|
"copy-to-root": "cp htdocs/{css,js}/c3.* ./", |
|
|
|
"codecov": "codecov" |
|
|
|
"codecov": "codecov" |
|
|
@ -69,8 +69,10 @@ |
|
|
|
"node-sass": "^4.8.3", |
|
|
|
"node-sass": "^4.8.3", |
|
|
|
"node-static": "^0.7.9", |
|
|
|
"node-static": "^0.7.9", |
|
|
|
"nodemon": "^1.11.0", |
|
|
|
"nodemon": "^1.11.0", |
|
|
|
|
|
|
|
"npm-run-all": "^4.1.3", |
|
|
|
"rollup": "^0.63.0", |
|
|
|
"rollup": "^0.63.0", |
|
|
|
"rollup-plugin-babel": "^3.0.3", |
|
|
|
"rollup-plugin-babel": "^3.0.3", |
|
|
|
|
|
|
|
"status-back": "^1.1.0", |
|
|
|
"uglify-js": "^3.3.17", |
|
|
|
"uglify-js": "^3.3.17", |
|
|
|
"watchify": "^3.11.0" |
|
|
|
"watchify": "^3.11.0" |
|
|
|
}, |
|
|
|
}, |
|
|
|