|
@@ -13,23 +13,23 @@
|
|
|
"test": "npm run lint && npm run test:unit",
|
|
|
"test:phantom": "zuul test/spec/upload.js --phantom",
|
|
|
"test:unit": "node test/index.js",
|
|
|
- "build": "npm run build:lib && npm run build:umd && npm run build:umd:min && npm run build:css",
|
|
|
- "build:js": "npm run build:lib && npm run build:umd && npm run build:umd:min",
|
|
|
+ "build": "npm run build:lib && npm run build:bundle && npm run build:bundle:min && npm run build:css",
|
|
|
+ "build:js": "npm run build:lib && npm run build:bundle && npm run build:bundle:min",
|
|
|
"build:css": "bin/build-css",
|
|
|
"build:lib": "babel src -d lib --stage 0",
|
|
|
- "build:umd:fullpath": "env OUT=uppy-fp.js ./bin/build-umd --full-paths",
|
|
|
- "build:umd:min": "./bin/build-umd",
|
|
|
- "build:umd": "./bin/build-umd && ./bin/build-umd-locale",
|
|
|
+ "build:bundle:fullpath": "env OUT=uppy-fp.js ./bin/build-bundle --full-paths",
|
|
|
+ "build:bundle:min": "./bin/build-bundle",
|
|
|
+ "build:bundle": "./bin/build-bundle && ./bin/build-bundle-locale",
|
|
|
"watch": "parallelshell 'npm run watch:js' 'npm run watch:css' && node website/update.js",
|
|
|
"watch:fast": "parallelshell 'npm run watch:css' 'npm run web:preview'",
|
|
|
- "watch:js": "nodemon --watch src --ext js -x 'npm run build:umd && node website/update.js'",
|
|
|
+ "watch:js": "nodemon --watch src --ext js -x 'npm run build:bundle && node website/update.js'",
|
|
|
"watch:css": "nodemon --watch src --ext scss -x 'npm run build:css && node website/update.js'",
|
|
|
"web": "npm run web:install && npm run web:clean && npm run web:build",
|
|
|
"web:preview": "cd website && parallelshell 'node build-examples.js watch' './node_modules/.bin/hexo server'",
|
|
|
"web:build": "cd website && node update.js && ./node_modules/.bin/hexo generate --silent && node build-examples.js",
|
|
|
"web:clean": "cd website && ./node_modules/.bin/hexo clean",
|
|
|
"web:deploy": "npm run web:install && npm run web:disc && npm run docs && npm run web:build && ./bin/web-deploy",
|
|
|
- "web:disc": "npm run build:umd:fullpath && discify dist/uppy-fp.js --output website/src/_disc.html && echo '---\nlayout: false\n---\n' |cat - website/src/_disc.html > website/src/disc.html && rm website/src/_disc.html",
|
|
|
+ "web:disc": "npm run build:bundle:fullpath && discify dist/uppy-fp.js --output website/src/_disc.html && echo '---\nlayout: false\n---\n' |cat - website/src/_disc.html > website/src/disc.html && rm website/src/_disc.html",
|
|
|
"web:install": "cd website && npm install",
|
|
|
"web:update:frontpage:code:sample": "cd website && ./node_modules/.bin/hexo generate && cp -f public/frontpage-code-sample.html ./themes/uppy/layout/partials/frontpage-code-sample.html"
|
|
|
},
|