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