|
@@ -11,7 +11,7 @@
|
|
|
"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",
|
|
|
"clean": "rm -rf lib && rm -rf dist",
|
|
|
- "docs": "cd website && node documentation.js",
|
|
|
+ "docs": "cd website && node build-documentation.js",
|
|
|
"lint": "eslint src/**/*.js",
|
|
|
"server": "browser-sync start --config .browsersync.js",
|
|
|
"start": "npm run build && npm run web",
|
|
@@ -22,13 +22,13 @@
|
|
|
"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: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 && node website/update.js\"",
|
|
|
- "web:build": "cd website && node update.js && ./node_modules/.bin/hexo generate",
|
|
|
+ "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 && npm run docs && ./node_modules/.bin/hexo generate ",
|
|
|
"web:clean": "cd website && ./node_modules/.bin/hexo clean",
|
|
|
"web:deploy": "npm run web:install && npm run web:disc && 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:install": "cd website && rm -rf node_modules/hexo-renderer-uppyexamples && npm install",
|
|
|
- "web:preview": "cd website && ./node_modules/.bin/hexo server --debug",
|
|
|
+ "web:preview": "cd website && ./node_modules/.bin/hexo server --debug & npm run watch:examples",
|
|
|
"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"
|
|
|
},
|