|
@@ -11,25 +11,28 @@
|
|
"build:umd": "./bin/build-umd && ./bin/build-umd-locale",
|
|
"build:umd": "./bin/build-umd && ./bin/build-umd-locale",
|
|
"build": "npm run build:lib && npm run build:umd && npm run build:umd:min && npm run build:css",
|
|
"build": "npm run build:lib && npm run build:umd && npm run build:umd:min && npm run build:css",
|
|
"clean": "rm -rf lib && rm -rf dist",
|
|
"clean": "rm -rf lib && rm -rf dist",
|
|
- "docs": "cd website && documentation readme ../src/index.js --readme-file=src/api/docs.md --section \"Uppy Core & Plugins\" -q --github -c doc-order.json",
|
|
|
|
|
|
+ "docs": "cd website && documentation readme ../src/index.js --readme-file=src/api/docs.md --section 'Uppy Core & Plugins' -q --github -c doc-order.json",
|
|
"lint": "eslint .",
|
|
"lint": "eslint .",
|
|
"fix": "eslint . --fix",
|
|
"fix": "eslint . --fix",
|
|
- "server": "browser-sync start --config .browsersync.js",
|
|
|
|
"start": "npm run build && npm run web",
|
|
"start": "npm run build && npm run web",
|
|
"test:phantom": "zuul test/spec/upload.js --phantom",
|
|
"test:phantom": "zuul test/spec/upload.js --phantom",
|
|
"test": "bin/test",
|
|
"test": "bin/test",
|
|
"test:unit": "node test/index.js",
|
|
"test:unit": "node test/index.js",
|
|
- "watch:all": "parallelshell \"npm run watch\" \"npm run web\"",
|
|
|
|
- "watch:css": "nodemon --watch src --ext scss -x \"npm run build && node website/update.js\"",
|
|
|
|
|
|
+ "fast:css": "nodemon --watch src -e scss -x 'npm run build:css'",
|
|
|
|
+ "fast:js:lib": "nodemon --watch src -e js -x 'npm run build:lib'",
|
|
|
|
+ "watch:fast": "parallelshell 'npm run web:fast' 'npm run fast:css'",
|
|
|
|
+ "watch:all": "parallelshell 'npm run watch' 'npm run web'",
|
|
|
|
+ "watch:css": "nodemon --watch src --ext scss -x 'npm run build && node website/update.js'",
|
|
"watch:examples": "cd website && node build-examples.js watch",
|
|
"watch:examples": "cd website && node build-examples.js watch",
|
|
- "watch:js": "nodemon --watch src --ext js -x \"npm run build && node website/update.js\"",
|
|
|
|
- "watch": "nodemon --watch src --ext scss,js -x \"npm run build:umd && npm run build:css && node website/update.js\"",
|
|
|
|
|
|
+ "watch:js": "nodemon --watch src --ext js -x 'npm run build && node website/update.js'",
|
|
|
|
+ "watch": "nodemon --watch src --ext scss,js -x 'npm run build:umd && npm run build:css && node website/update.js'",
|
|
"web:build": "cd website && node update.js && ./node_modules/.bin/hexo generate && node build-examples.js",
|
|
"web:build": "cd website && node update.js && ./node_modules/.bin/hexo generate && node build-examples.js",
|
|
"web:clean": "cd website && ./node_modules/.bin/hexo clean",
|
|
"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: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: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:install": "cd website && rm -rf node_modules/hexo-renderer-uppyexamples && npm install",
|
|
"web:install": "cd website && rm -rf node_modules/hexo-renderer-uppyexamples && npm install",
|
|
- "web:preview": "cd website && parallelshell \"./node_modules/.bin/hexo server --debug\" \"node build-examples.js watch\"",
|
|
|
|
|
|
+ "web:preview": "cd website && ./node_modules/.bin/hexo server --debug",
|
|
|
|
+ "web:fast": "cd website && node build-examples.js && ./node_modules/.bin/hexo server --debug",
|
|
"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",
|
|
"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",
|
|
"web": "npm run web:install && npm run web:clean && npm run web:build && npm run web:preview"
|
|
"web": "npm run web:install && npm run web:clean && npm run web:build && npm run web:preview"
|
|
},
|
|
},
|