|
@@ -1,57 +1,18 @@
|
|
|
{
|
|
|
- "name": "uppy",
|
|
|
- "version": "0.25.6",
|
|
|
+ "private": true,
|
|
|
+ "name": "uppy-build",
|
|
|
"description": "Extensible JavaScript file upload widget with support for drag&drop, resumable uploads, previews, restrictions, file processing/encoding, remote providers like Instagram, Dropbox, Google Drive, S3 and more :dog:",
|
|
|
- "main": "lib/index.js",
|
|
|
- "jsnext:main": "src/index.js",
|
|
|
- "unpkg": "dist/uppy.min.js",
|
|
|
- "types": "types/index.d.ts",
|
|
|
- "files": [
|
|
|
- "src/",
|
|
|
- "lib/",
|
|
|
- "dist/",
|
|
|
- "test/",
|
|
|
- "bin/",
|
|
|
- "examples/",
|
|
|
- "types/"
|
|
|
- ],
|
|
|
"lint-staged": {
|
|
|
"*.js": "eslint"
|
|
|
},
|
|
|
"pre-commit": "lint-staged",
|
|
|
- "repository": {
|
|
|
- "type": "git",
|
|
|
- "url": "git+https://github.com/transloadit/uppy.git"
|
|
|
- },
|
|
|
- "keywords": [
|
|
|
- "file uploader",
|
|
|
- "drag-drop",
|
|
|
- "progress",
|
|
|
- "preview",
|
|
|
- "resumable uploads",
|
|
|
- "xhr",
|
|
|
- "tus",
|
|
|
- "s3",
|
|
|
- "google drive",
|
|
|
- "dropbox",
|
|
|
- "webcam"
|
|
|
- ],
|
|
|
"license": "MIT",
|
|
|
- "bugs": {
|
|
|
- "url": "https://github.com/transloadit/uppy/issues"
|
|
|
- },
|
|
|
- "homepage": "https://uppy.io",
|
|
|
- "jest": {
|
|
|
- "testPathIgnorePatterns": [
|
|
|
- "lib"
|
|
|
- ]
|
|
|
- },
|
|
|
"devDependencies": {
|
|
|
+ "aliasify": "^2.1.0",
|
|
|
"autoprefixer": "^7.2.5",
|
|
|
"babel-cli": "^6.26.0",
|
|
|
"babel-core": "^6.26.0",
|
|
|
"babel-jest": "^22.0.6",
|
|
|
- "babel-plugin-es6-promise": "^1.1.1",
|
|
|
"babel-plugin-transform-object-assign": "^6.22.0",
|
|
|
"babel-plugin-transform-proto-to-assign": "^6.26.0",
|
|
|
"babel-plugin-transform-react-jsx": "^6.24.1",
|
|
@@ -67,6 +28,7 @@
|
|
|
"disc": "^1.3.3",
|
|
|
"enzyme": "^3.3.0",
|
|
|
"enzyme-adapter-react-16": "^1.1.1",
|
|
|
+ "es6-promise": "^4.2.4",
|
|
|
"eslint": "^3.19.0",
|
|
|
"eslint-config-standard": "^10.2.1",
|
|
|
"eslint-config-standard-preact": "^1.1.6",
|
|
@@ -83,6 +45,7 @@
|
|
|
"isomorphic-fetch": "2.2.1",
|
|
|
"jest": "^22.0.6",
|
|
|
"json3": "^3.3.2",
|
|
|
+ "lerna": "^2.11.0",
|
|
|
"lint-staged": "^6.0.0",
|
|
|
"minify-stream": "^1.1.0",
|
|
|
"mkdirp": "0.5.1",
|
|
@@ -90,6 +53,7 @@
|
|
|
"next-update": "^3.6.0",
|
|
|
"nock": "^9.3.2",
|
|
|
"node-sass": "^4.9.0",
|
|
|
+ "npm-auth-to-token": "^1.0.0",
|
|
|
"npm-run-all": "^4.1.2",
|
|
|
"onchange": "^3.3.0",
|
|
|
"postcss": "^6.0.16",
|
|
@@ -104,63 +68,45 @@
|
|
|
"tinyify": "^2.4.0",
|
|
|
"typescript": "^2.8.1",
|
|
|
"uppy-server": "^0.13.1",
|
|
|
+ "verdaccio": "^3.2.0",
|
|
|
"watchify": "^3.9.0",
|
|
|
"wdio-mocha-framework": "^0.5.12",
|
|
|
"wdio-sauce-service": "^0.4.6",
|
|
|
"wdio-static-server-service": "^1.0.1",
|
|
|
"webdriverio": "^4.10.1"
|
|
|
},
|
|
|
- "dependencies": {
|
|
|
- "classnames": "^2.2.5",
|
|
|
- "cuid": "^2.0.2",
|
|
|
- "drag-drop": "2.13.2",
|
|
|
- "es6-promise": "^4.2.2",
|
|
|
- "get-form-data": "^2.0.0",
|
|
|
- "lodash.throttle": "4.1.1",
|
|
|
- "mime-match": "^1.0.2",
|
|
|
- "namespace-emitter": "^2.0.0",
|
|
|
- "preact": "^8.2.7",
|
|
|
- "prettier-bytes": "1.0.4",
|
|
|
- "prop-types": "^15.5.10",
|
|
|
- "resolve-url": "^0.2.1",
|
|
|
- "socket.io-client": "^2.0.4",
|
|
|
- "tus-js-client": "^1.4.5",
|
|
|
- "url-parse": "^1.2.0",
|
|
|
- "whatwg-fetch": "2.0.3"
|
|
|
- },
|
|
|
"scripts": {
|
|
|
"build:bundle": "node ./bin/build-js.js",
|
|
|
"build:css": "node ./bin/build-css.js",
|
|
|
"build:gzip": "node ./bin/gzip.js",
|
|
|
- "size": "echo 'JS Bundle mingz:' && cat ./dist/uppy.min.js | gzip | wc -c && echo 'CSS Bundle mingz:' && cat ./dist/uppy.min.css | gzip | wc -c",
|
|
|
- "build:js": "npm-run-all build:bundle build:lib",
|
|
|
- "build:lib": "babel --version && babel src --source-maps -d lib --ignore '*.test.js'",
|
|
|
+ "size": "echo 'JS Bundle mingz:' && cat ./packages/uppy/dist/uppy.min.js | gzip | wc -c && echo 'CSS Bundle mingz:' && cat ./packages/uppy/dist/uppy.min.css | gzip | wc -c",
|
|
|
+ "build:js": "npm-run-all build:lib build:bundle",
|
|
|
+ "build:lib": "babel --version && node ./bin/build-lib.js",
|
|
|
"build": "npm-run-all --parallel build:js build:css --serial build:gzip size",
|
|
|
- "clean": "rm -rf lib && rm -rf dist",
|
|
|
- "lint:fix": "eslint src test website/scripts website/build-examples.js website/update.js website/themes/uppy/source/js/common.js --fix",
|
|
|
- "lint": "eslint src test website/scripts website/build-examples.js website/update.js website/themes/uppy/source/js/common.js",
|
|
|
+ "clean": "rm -rf packages/*/lib packages/@uppy/*/lib && rm -rf packages/uppy/dist",
|
|
|
+ "lint:fix": "npm run lint -- --fix",
|
|
|
+ "lint": "eslint . --cache",
|
|
|
"lint-staged": "lint-staged",
|
|
|
- "release:major": "env SEMANTIC=major npm run release",
|
|
|
- "release:minor": "env SEMANTIC=minor npm run release",
|
|
|
- "release:patch": "env SEMANTIC=patch npm run release",
|
|
|
- "replace:versions": "replace-x -r 'uppy/v\\d+\\.\\d+\\.\\d+/dist' \"uppy/v$npm_package_version/dist\" ./examples/ README.md bin/upload-to-cdn.sh website/src/examples/ website/src/docs/ website/themes/uppy/layout/ --exclude=node_modules",
|
|
|
- "replace:versions:commit": "git commit -m \"Change Uppy version references to v$npm_package_version\" ./examples/ README.md bin/upload-to-cdn.sh website/src/examples/ website/src/docs/ website/themes/uppy/layout/",
|
|
|
- "release": "npm version ${SEMANTIC:-patch} -m \"Release %s\" && npm run replace:versions && npm run replace:versions:commit && git push && git push --tags && npm publish",
|
|
|
+ "release": "./bin/release",
|
|
|
"start:server": "node bin/start-server",
|
|
|
"start": "npm-run-all --parallel watch start:server web:preview",
|
|
|
- "test:acceptance": "./bin/endtoend-build && wdio test/endtoend/wdio.remote.conf.js",
|
|
|
- "test:acceptance:local": "./bin/endtoend-build && wdio test/endtoend/wdio.local.conf.js",
|
|
|
+ "test:registry": "verdaccio --listen 4002 --config test/endtoend/verdaccio.yaml",
|
|
|
+ "test:build": "./bin/endtoend-build",
|
|
|
+ "test:build-ci": "./bin/endtoend-build-ci",
|
|
|
+ "test:prepare-ci": "npm-run-all --parallel --race test:registry test:build-ci",
|
|
|
+ "test:acceptance": "npm run test:prepare-ci && wdio test/endtoend/wdio.remote.conf.js",
|
|
|
+ "test:acceptance:local": "npm run test:build && wdio test/endtoend/wdio.local.conf.js",
|
|
|
"test:unit": "jest --testPathPattern=./src --coverage",
|
|
|
- "test:type": "tsc -p .",
|
|
|
- "test": "npm run lint && npm run test:unit",
|
|
|
+ "test:type": "tsc -p packages/uppy/types",
|
|
|
+ "test": "npm run lint && npm run test:unit && npm run test:type",
|
|
|
"test:watch": "jest --watch --testPathPattern=src",
|
|
|
"travis:deletecache": "travis cache --delete",
|
|
|
"watch:css": "onchange 'src/scss/**/*.scss' --initial --verbose -- npm run build:css",
|
|
|
- "watch:js": "onchange 'src/**/*.js' --initial --verbose -- npm run build:bundle",
|
|
|
+ "watch:js": "onchange 'packages/{@uppy/,}*/src/**/*.js' --initial --verbose -- npm run build:bundle",
|
|
|
"watch": "npm-run-all --parallel watch:js watch:css",
|
|
|
"watch:fast": "npm-run-all --parallel watch:css web:preview",
|
|
|
- "watch:example:browsersync": "browser-sync start --server examples/bundled-example --port 3452 --serveStatic dist --files \"examples/bundled-example/bundle.js, dist/uppy.min.css\"",
|
|
|
- "watch:example:js": "watchify -t babelify examples/bundled-example/main.js -o examples/bundled-example/bundle.js -vd",
|
|
|
+ "watch:example:browsersync": "browser-sync start --server examples/bundled-example --port 3452 --serveStatic packages/uppy/dist --files \"examples/bundled-example/bundle.js, packages/uppy/dist/uppy.min.css\"",
|
|
|
+ "watch:example:js": "cd examples/bundled-example && npm run watch",
|
|
|
"watch:example": "npm-run-all --parallel watch:example:js watch:css watch:example:browsersync",
|
|
|
"dev": "npm-run-all --parallel watch:example:js watch:css watch:example:browsersync",
|
|
|
"web:build": "cd website && node update.js && ./node_modules/.bin/hexo generate --silent && node build-examples.js",
|
|
@@ -169,14 +115,14 @@
|
|
|
"web:generated-docs": "cd website && node node_modules/documentation/bin/documentation.js readme ../src/index.js --readme-file=src/docs/api.md --section 'Uppy Core & Plugins' -q --github -c doc-order.json",
|
|
|
"web:disc": "node ./bin/disc.js",
|
|
|
"web:install": "cd website && npm install",
|
|
|
- "web:bundle:update:watch": "onchange 'dist/**/*.css' 'dist/**/*.js' --initial --verbose -- node website/update.js",
|
|
|
+ "web:bundle:update:watch": "onchange 'packages/uppy/dist/**/*.css' 'packages/uppy/dist/**/*.js' --initial --verbose -- node website/update.js",
|
|
|
"web:examples:watch": "cd website && node build-examples.js watch",
|
|
|
"web:serve": "cd website && ./node_modules/.bin/hexo server",
|
|
|
- "web:preview": "npm-run-all --parallel web:examples:watch web:bundle:update:watch web:serve",
|
|
|
+ "web:preview": "npm-run-all build:lib --parallel web:examples:watch web:bundle:update:watch web:serve",
|
|
|
"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-all web:clean web:build",
|
|
|
"uploadcdn": "bin/upload-to-cdn.sh",
|
|
|
- "prepublishOnly": "npm-run-all clean build",
|
|
|
+ "prepare": "lerna bootstrap --hoist",
|
|
|
"contributors": "githubcontrib --owner transloadit --repo uppy --cols 6 $([ \"${GITHUB_TOKEN:-}\" == \"\" ] && echo \"\" || echo \"--authToken ${GITHUB_TOKEN}\") --showlogin true --sortOrder desc",
|
|
|
"contributors:save": "replace-x -m '<!--contributors-->[\\s\\S]+<!--/contributors-->' \"<!--contributors-->\n## Contributors\n\n$(npm run --silent contributors)\n<!--/contributors-->\" README.md"
|
|
|
}
|