|
@@ -2,14 +2,15 @@
|
|
|
"name": "uppy",
|
|
|
"version": "0.0.5",
|
|
|
"description": "Almost as cute as a Puppy :dog:",
|
|
|
- "main": "src/index.js",
|
|
|
+ "main": "lib/index.js",
|
|
|
+ "jsnext:main": "src/index.js",
|
|
|
"scripts": {
|
|
|
"build:bundle": "node ./bin/build-js.js",
|
|
|
"build:css": "node ./bin/build-css.js",
|
|
|
"size": "echo 'JS Size:' && cat ./dist/uppy.min.js | gzip | wc -c && echo 'CSS Size:' && cat ./dist/uppy.min.css | gzip | wc -c",
|
|
|
"build:bundle:fullpath": "env OUT=uppy-fp.js ./bin/build-bundle --full-paths",
|
|
|
"build:js": "npm-run-all --parallel build:bundle build:lib",
|
|
|
- "build:lib": "babel --version && babel src -d lib",
|
|
|
+ "build:lib": "babel --version && babel src --source-maps -d lib",
|
|
|
"build": "npm-run-all --parallel build:js build:css",
|
|
|
"clean": "rm -rf lib && rm -rf dist",
|
|
|
"docs": "cd website && node node_modules/documentation/bin/documentation.js readme ../src/index.js --readme-file=src/api/docs.md --section 'Uppy Core & Plugins' -q --github -c doc-order.json",
|
|
@@ -33,13 +34,13 @@
|
|
|
"watch": "npm-run-all --parallel watch:js watch:css && node website/update.js",
|
|
|
"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:deploy": "npm-run-all web:install web:disc docs web:build && ./bin/web-deploy",
|
|
|
"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:preview": "cd website && parallelshell 'node build-examples.js watch' './node_modules/.bin/hexo server'",
|
|
|
"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:clean && npm run web:build",
|
|
|
- "prepublish": ""
|
|
|
+ "web": "npm-run-all web:clean web:build",
|
|
|
+ "prepublish": "npm-run-all clean build"
|
|
|
},
|
|
|
"repository": {
|
|
|
"type": "git",
|