|
@@ -81,58 +81,56 @@
|
|
|
},
|
|
|
"scripts": {
|
|
|
"bootstrap": "lerna bootstrap",
|
|
|
- "build:bundle": "node ./bin/build-js.js",
|
|
|
+ "build:bundle": "node ./bin/build-bundle.js",
|
|
|
+ "build:clean": "rm -rf packages/*/lib packages/@uppy/*/lib packages/*/dist packages/@uppy/*/dist",
|
|
|
"build:companion": "cd ./packages/@uppy/companion && npm run build",
|
|
|
"build:css": "node ./bin/build-css.js",
|
|
|
- "build:gzip": "node ./bin/gzip.js",
|
|
|
"build:js": "npm-run-all build:lib build:bundle",
|
|
|
"build:lib": "node ./bin/build-lib.js",
|
|
|
- "build": "npm-run-all --parallel build:js build:css build:companion --serial build:gzip size",
|
|
|
- "clean": "rm -rf packages/*/lib packages/@uppy/*/lib packages/*/dist packages/@uppy/*/dist",
|
|
|
- "contributors:save": "replace-x -m '<!--contributors-->[\\s\\S]+<!--/contributors-->' \"<!--contributors-->\n## Contributors\n\n$(npm run --silent contributors)\n<!--/contributors-->\" README.md",
|
|
|
- "contributors": "githubcontrib --owner transloadit --repo uppy --cols 6 $([ \"${GITHUB_TOKEN:-}\" == \"\" ] && echo \"\" || echo \"--authToken ${GITHUB_TOKEN}\") --showlogin true --sortOrder desc",
|
|
|
+ "build": "npm-run-all --parallel build:js build:css build:companion --serial size",
|
|
|
+ "contributors:fetch": "githubcontrib --owner transloadit --repo uppy --cols 6 $([ \"${GITHUB_TOKEN:-}\" == \"\" ] && echo \"\" || echo \"--authToken ${GITHUB_TOKEN}\") --showlogin true --sortOrder desc",
|
|
|
+ "contributors:save": "replace-x -m '<!--contributors-->[\\s\\S]+<!--/contributors-->' \"<!--contributors-->\n## Contributors\n\n$(npm run --silent contributors:fetch)\n<!--/contributors-->\" README.md",
|
|
|
"dev:browsersync": "browser-sync start --no-open --no-ghost-mode false --server examples/dev --port 3452 --serveStatic packages/uppy/dist --files \"examples/dev/bundle.js, packages/uppy/dist/uppy.min.css, packages/uppy/lib/**/*\"",
|
|
|
- "dev:js": "cd examples/dev && npm run watch",
|
|
|
- "dev:no-companion": "npm-run-all --parallel dev:js watch:css watch:js:lib dev:browsersync",
|
|
|
- "dev": "npm-run-all --parallel start:companion dev:js watch:css watch:js:lib dev:browsersync",
|
|
|
+ "dev:watch-sandbox": "cd examples/dev && npm run watch:sandbox",
|
|
|
+ "dev:with-companion": "npm-run-all --parallel start:companion dev:watch-sandbox watch dev:browsersync",
|
|
|
+ "dev": "npm-run-all --parallel dev:watch-sandbox watch dev:browsersync",
|
|
|
"lint:fix": "npm run lint -- --fix",
|
|
|
"lint:staged": "lint-staged",
|
|
|
"lint": "eslint . --cache",
|
|
|
"release": "./bin/release",
|
|
|
"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",
|
|
|
- "start:companion": "sh ./bin/companion",
|
|
|
- "start": "npm-run-all --parallel watch start:companion web:preview",
|
|
|
- "test:acceptance:local": "npm run test:build && wdio test/endtoend/wdio.local.conf.js",
|
|
|
- "test:acceptance": "npm run test:prepare-ci && wdio test/endtoend/wdio.remote.conf.js",
|
|
|
- "test:build-ci": "./bin/endtoend-build-ci",
|
|
|
- "test:build": "./bin/endtoend-build",
|
|
|
+ "start:companion": "./bin/companion",
|
|
|
+ "start": "npm-run-all --parallel watch start:companion web:start",
|
|
|
"test:companion": "cd ./packages/@uppy/companion && npm run test",
|
|
|
- "test:prepare-ci": "npm-run-all --parallel --race test:registry test:build-ci",
|
|
|
- "test:registry": "verdaccio --listen 4002 --config test/endtoend/verdaccio.yaml",
|
|
|
+ "test:endtoend:build-ci": "./bin/endtoend-build-ci",
|
|
|
+ "test:endtoend:build": "./bin/endtoend-build",
|
|
|
+ "test:endtoend:local": "npm run test:endtoend:build && wdio test/endtoend/wdio.local.conf.js",
|
|
|
+ "test:endtoend:prepare-ci": "npm-run-all --parallel --race test:endtoend:registry test:endtoend:build-ci",
|
|
|
+ "test:endtoend:registry": "verdaccio --listen 4002 --config test/endtoend/verdaccio.yaml",
|
|
|
+ "test:endtoend": "npm run test:endtoend:prepare-ci && wdio test/endtoend/wdio.remote.conf.js",
|
|
|
"test:type": "tsc -p .",
|
|
|
"test:unit": "npm run build:lib && jest",
|
|
|
"test:watch": "jest --watch",
|
|
|
"test": "npm-run-all lint test:unit test:type test:companion",
|
|
|
- "travis:deletecache": "travis cache --delete",
|
|
|
"uploadcdn": "bin/upload-to-cdn.sh",
|
|
|
"version": "./bin/sync-version-numbers",
|
|
|
"watch:css": "onchange 'packages/**/*.scss' --initial --verbose -- npm run build:css",
|
|
|
+ "watch:js:bundle": "onchange 'packages/{@uppy/,}*/src/**/*.js' --initial --verbose -- npm run build:bundle",
|
|
|
"watch:js:lib": "onchange 'packages/{@uppy/,}*/src/**/*.js' --initial --verbose -- npm run build:lib",
|
|
|
- "watch:js": "onchange 'packages/{@uppy/,}*/src/**/*.js' --initial --verbose -- npm run build:bundle",
|
|
|
- "watch": "npm-run-all --parallel watch:js watch:css",
|
|
|
- "web:build": "npm-run-all web:inject web:generate web:examples",
|
|
|
- "web:bundle:update:watch": "onchange 'packages/uppy/dist/**/*.css' 'packages/uppy/dist/**/*.js' --initial --verbose -- npm run web:inject",
|
|
|
+ "watch": "npm-run-all --parallel watch:*",
|
|
|
+ "web:build-examples": "cd website && node build-examples.js",
|
|
|
+ "web:build": "npm-run-all web:inject-bundles-misc web:generate web:build-examples web:inject-frontpagecodesample",
|
|
|
+ "web:bundle-watch-inject": "onchange 'packages/uppy/dist/**/*.css' 'packages/uppy/dist/**/*.js' --initial --verbose -- npm run web:inject-bundles-misc",
|
|
|
"web:clean": "cd website && touch db.json && ./node_modules/.bin/hexo clean",
|
|
|
- "web:deploy": "npm-run-all web:clean web:disc web:build && ./bin/web-deploy",
|
|
|
- "web:disc": "node ./bin/disc.js",
|
|
|
- "web:examples:watch": "cd website && node build-examples.js watch",
|
|
|
- "web:examples": "cd website && node build-examples.js",
|
|
|
+ "web:deploy": "npm-run-all web:clean web:inject-disc web:build && ./bin/web-deploy",
|
|
|
"web:generate": "cd website && touch db.json && ./node_modules/.bin/hexo generate",
|
|
|
- "web:inject:frontpagecodesample": "npm run web:generate && cp -f public/frontpage-code-sample.html ./themes/uppy/layout/partials/frontpage-code-sample.html",
|
|
|
- "web:inject": "cd website && node inject.js",
|
|
|
+ "web:inject-bundles-misc": "cd website && node inject.js",
|
|
|
+ "web:inject-disc": "node ./bin/disc.js",
|
|
|
+ "web:inject-frontpagecodesample": "npm run web:generate && cp -f website/public/frontpage-code-sample.html website/themes/uppy/layout/partials/frontpage-code-sample.html && touch website/themes/uppy/layout/index.ejs",
|
|
|
"web:install": "cd website && npm install",
|
|
|
- "web:preview": "npm-run-all build:lib --parallel web:examples:watch web:bundle:update:watch web:serve",
|
|
|
- "web:serve": "cd website && touch db.json &&./node_modules/.bin/hexo server"
|
|
|
+ "web:start": "npm-run-all build:lib --parallel web:watch-examples web:bundle-watch-inject web:watch",
|
|
|
+ "web:watch-examples": "cd website && node build-examples.js watch",
|
|
|
+ "web:watch": "cd website && touch db.json &&./node_modules/.bin/hexo server"
|
|
|
},
|
|
|
"jest": {
|
|
|
"automock": false,
|