Browse Source

Simplified & organised the build system a bit

Artur Paikin 9 years ago
parent
commit
829e81a4db
1 changed files with 25 additions and 31 deletions
  1. 25 31
      package.json

+ 25 - 31
package.json

@@ -4,36 +4,34 @@
   "description": "Almost as cute as a Puppy :dog:",
   "main": "src/index.js",
   "scripts": {
-    "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": "npm run build:lib && npm run build:umd && npm run build:umd:min && npm run build:css",
+    "start": "npm run build && npm run web && npm run watch",
     "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",
-    "fast:css": "nodemon --watch src -e scss -x 'npm run build:css'",
-    "fix": "eslint . --fix",
     "lint": "eslint .",
-    "start": "npm run build && npm run web",
-    "test:phantom": "zuul test/spec/upload.js --phantom",
-    "test:unit": "node test/index.js",
+      "lint:fix": "eslint . --fix",
     "test": "npm run lint && npm run test:unit",
-    "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:fast": "parallelshell 'npm run web:fast' 'npm run fast:css'",
-    "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 --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:fast": "cd website && parallelshell 'node build-examples.js watch' './node_modules/.bin/hexo server --debug'",
-    "web:install": "cd website && npm install",
-    "web:preview": "cd website && parallelshell 'node build-examples.js watch' './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": "npm run web:install && npm run web:clean && npm run web:build && npm run web:preview"
+      "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: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",
+    "watch": "parallelshell 'npm run watch:all' 'npm run web:preview'",
+      "watch:all": "nodemon --watch src --ext scss,js -x 'npm run build:umd && npm run build: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 && 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: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"
   },
   "repository": {
     "type": "git",
@@ -53,12 +51,9 @@
     "browserify": "12.0.1",
     "chalk": "1.1.1",
     "disc": "1.3.2",
-    "ejsify": "^1.0.0",
     "eslint": "1.10.3",
     "eslint-config-standard": "4.4.0",
     "eslint-plugin-standard": "1.3.1",
-    "handlebars": "^4.0.5",
-    "hbsfy": "^2.4.1",
     "multi-glob": "1.0.1",
     "node-notifier": "4.4.0",
     "node-sass": "3.4.2",
@@ -70,9 +65,8 @@
     "zuul": "3.7.2"
   },
   "dependencies": {
-    "event-emitter": "^0.3.4",
+    "event-emitter": "0.3.4",
     "fakefile": "0.0.5",
-    "superagent": "1.5.0",
     "tus-js-client": "1.1.3"
   }
 }