|
@@ -2,22 +2,24 @@
|
|
|
"name": "uppy",
|
|
|
"version": "0.0.1",
|
|
|
"description": "Almost as cute as a Puppy :dog:",
|
|
|
- "main": "index.js",
|
|
|
+ "main": "src/index.js",
|
|
|
"scripts": {
|
|
|
- "browser-sync": "browser-sync start --config bs-config.js",
|
|
|
- "build": "npm run build:js && npm run build:css",
|
|
|
- "build:css": "bin/builder node_modules/.bin/node-sass",
|
|
|
- "build:js": "bin/builder node_modules/.bin/browserify",
|
|
|
+ "build": "npm run build:lib && npm run build:umd && npm run build:umd:min && npm run build:css",
|
|
|
+ "build:css": "bin/build-css",
|
|
|
"build:lib": "rm -rf ./lib && babel src -d lib --stage 0",
|
|
|
+ "build:umd": "./bin/build-umd",
|
|
|
+ "build:umd:min": "./bin/build-umd",
|
|
|
"build:examples": "examples/buildAll node_modules/.bin/browserify",
|
|
|
- "clean": "rm -rf lib/**/*.js && rm -rf lib/**/*.css",
|
|
|
+ "clean": "rm -rf lib && rm -rf dist",
|
|
|
"lint": "eslint src/**/*.js",
|
|
|
- "phantom-test": "zuul test/spec/upload.js --phantom",
|
|
|
- "preview": "npm run watch & npm run browser-sync",
|
|
|
+ "preview": "npm run watch & npm run server",
|
|
|
+ "server": "browser-sync start --config bs-config.js",
|
|
|
"test": "bin/test",
|
|
|
- "watch": "npm run watch:css && npm run watch:js",
|
|
|
- "watch:css": "nodemon -e scss -x \"npm run build:css\"",
|
|
|
- "watch:js": "bin/builder node_modules/.bin/watchify"
|
|
|
+ "test:phantom": "zuul test/spec/upload.js --phantom",
|
|
|
+ "watch": "npm run watch:css & npm run watch:js",
|
|
|
+ "watch:css": "nodemon -e src/scss -x \"npm run build:css\"",
|
|
|
+ "watch:examples": "examples/buildAll node_modules/.bin/watchify & npm run watch:js",
|
|
|
+ "watch:js": "nodemon --watch src -e js --ignore src/scss -x \"npm run build:lib\""
|
|
|
},
|
|
|
"repository": {
|
|
|
"type": "git",
|