|
|
|
@ -10,10 +10,10 @@
|
|
|
|
|
"build": "npm run build:js && npm run build:css", |
|
|
|
|
"build:js": "npm run build:js:rollup && npm run build:js:uglify", |
|
|
|
|
"build:js:rollup": "rollup -c", |
|
|
|
|
"build:js:uglify": "uglifyjs c3.js --compress --mangle --comments -o 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:sass": "node-sass src/scss/main.scss > c3.css", |
|
|
|
|
"build:css:min": "cleancss -o c3.min.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:docs": "bundle exec middleman build", |
|
|
|
|
"publish-docs": "npm run build:docs && gh-pages -d build -m \"chore: update gh-pages [skip ci]\"", |
|
|
|
|
"watch": "nodemon -e js,scss --watch src -x 'npm run build:js:rollup && npm run build:css:sass'", |
|
|
|
@ -22,8 +22,9 @@
|
|
|
|
|
"watch:docs": "bundle exec middleman", |
|
|
|
|
"test:only": "karma start karma.conf.js", |
|
|
|
|
"test": "npm run build && npm run lint && karma start karma.conf.js", |
|
|
|
|
"dist": "npm run build && npm run copy-to-docs", |
|
|
|
|
"copy-to-docs": "cp c3.min.js docs/js/ && cp c3.css docs/css/", |
|
|
|
|
"dist": "npm run build && npm run copy-to-root && npm run copy-to-docs", |
|
|
|
|
"copy-to-docs": "cp htdocs/js/c3.* docs/js/ && cp htdocs/css/c3.* docs/css/", |
|
|
|
|
"copy-to-root": "cp htdocs/{css,js}/c3.* ./", |
|
|
|
|
"codecov": "codecov" |
|
|
|
|
}, |
|
|
|
|
"repository": { |
|
|
|
|