|
@@ -132,11 +132,11 @@
|
|
"build:bundle": "node ./bin/build-js.js",
|
|
"build:bundle": "node ./bin/build-js.js",
|
|
"build:css": "node ./bin/build-css.js",
|
|
"build:css": "node ./bin/build-css.js",
|
|
"build:gzip": "node ./bin/gzip.js",
|
|
"build:gzip": "node ./bin/gzip.js",
|
|
- "size": "echo 'JS Bundle mingz:' && cat ./dist/uppy.min.js | gzip | wc -c && echo 'CSS Bundle mingz:' && cat ./dist/uppy.min.css | gzip | wc -c",
|
|
|
|
- "build:js": "npm-run-all build:bundle build:lib",
|
|
|
|
|
|
+ "size": "echo 'JS Bundle mingz:' && cat ./packages/uppy/dist/uppy.min.js | gzip | wc -c && echo 'CSS Bundle mingz:' && cat ./packages/uppy/dist/uppy.min.css | gzip | wc -c",
|
|
|
|
+ "build:js": "npm-run-all build:lib build:bundle",
|
|
"build:lib": "babel --version && node ./bin/build-lib.js",
|
|
"build:lib": "babel --version && node ./bin/build-lib.js",
|
|
"build": "npm-run-all --parallel build:js build:css --serial build:gzip size",
|
|
"build": "npm-run-all --parallel build:js build:css --serial build:gzip size",
|
|
- "clean": "rm -rf lib && rm -rf dist",
|
|
|
|
|
|
+ "clean": "rm -rf packages/*/lib packages/@uppy/*/lib && rm -rf packages/uppy/dist",
|
|
"lint:fix": "npm run lint -- --fix",
|
|
"lint:fix": "npm run lint -- --fix",
|
|
"lint": "eslint packages/*/src packages/@uppy/*/src test website/scripts website/build-examples.js website/update.js website/themes/uppy/source/js/common.js",
|
|
"lint": "eslint packages/*/src packages/@uppy/*/src test website/scripts website/build-examples.js website/update.js website/themes/uppy/source/js/common.js",
|
|
"lint-staged": "lint-staged",
|
|
"lint-staged": "lint-staged",
|
|
@@ -156,10 +156,10 @@
|
|
"test:watch": "jest --watch --testPathPattern=src",
|
|
"test:watch": "jest --watch --testPathPattern=src",
|
|
"travis:deletecache": "travis cache --delete",
|
|
"travis:deletecache": "travis cache --delete",
|
|
"watch:css": "onchange 'src/scss/**/*.scss' --initial --verbose -- npm run build:css",
|
|
"watch:css": "onchange 'src/scss/**/*.scss' --initial --verbose -- npm run build:css",
|
|
- "watch:js": "onchange 'src/**/*.js' --initial --verbose -- npm run build:bundle",
|
|
|
|
|
|
+ "watch:js": "onchange 'packages/{@uppy/,}*/src/**/*.js' --initial --verbose -- npm run build:bundle",
|
|
"watch": "npm-run-all --parallel watch:js watch:css",
|
|
"watch": "npm-run-all --parallel watch:js watch:css",
|
|
"watch:fast": "npm-run-all --parallel watch:css web:preview",
|
|
"watch:fast": "npm-run-all --parallel watch:css web:preview",
|
|
- "watch:example:browsersync": "browser-sync start --server examples/bundled-example --port 3452 --serveStatic dist --files \"examples/bundled-example/bundle.js, dist/uppy.min.css\"",
|
|
|
|
|
|
+ "watch:example:browsersync": "browser-sync start --server examples/bundled-example --port 3452 --serveStatic \"packages/uppy/dist, dist\" --files \"examples/bundled-example/bundle.js, dist/uppy.min.css\"",
|
|
"watch:example:js": "cd examples/bundled-example && npm run watch",
|
|
"watch:example:js": "cd examples/bundled-example && npm run watch",
|
|
"watch:example": "npm-run-all --parallel watch:example:js watch:css watch:example:browsersync",
|
|
"watch:example": "npm-run-all --parallel watch:example:js watch:css watch:example:browsersync",
|
|
"dev": "npm-run-all --parallel watch:example:js watch:css watch:example:browsersync",
|
|
"dev": "npm-run-all --parallel watch:example:js watch:css watch:example:browsersync",
|
|
@@ -169,7 +169,7 @@
|
|
"web:generated-docs": "cd website && node node_modules/documentation/bin/documentation.js readme ../src/index.js --readme-file=src/docs/api.md --section 'Uppy Core & Plugins' -q --github -c doc-order.json",
|
|
"web:generated-docs": "cd website && node node_modules/documentation/bin/documentation.js readme ../src/index.js --readme-file=src/docs/api.md --section 'Uppy Core & Plugins' -q --github -c doc-order.json",
|
|
"web:disc": "node ./bin/disc.js",
|
|
"web:disc": "node ./bin/disc.js",
|
|
"web:install": "cd website && npm install",
|
|
"web:install": "cd website && npm install",
|
|
- "web:bundle:update:watch": "onchange 'dist/**/*.css' 'dist/**/*.js' --initial --verbose -- node website/update.js",
|
|
|
|
|
|
+ "web:bundle:update:watch": "onchange 'dist/**/*.css' 'packages/dist/**/*.js' --initial --verbose -- node website/update.js",
|
|
"web:examples:watch": "cd website && node build-examples.js watch",
|
|
"web:examples:watch": "cd website && node build-examples.js watch",
|
|
"web:serve": "cd website && ./node_modules/.bin/hexo server",
|
|
"web:serve": "cd website && ./node_modules/.bin/hexo server",
|
|
"web:preview": "npm-run-all --parallel web:examples:watch web:bundle:update:watch web:serve",
|
|
"web:preview": "npm-run-all --parallel web:examples:watch web:bundle:update:watch web:serve",
|