package.json 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. {
  2. "private": true,
  3. "name": "uppy-build",
  4. "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:",
  5. "lint-staged": {
  6. "*.js": "eslint"
  7. },
  8. "pre-commit": "lint-staged",
  9. "license": "MIT",
  10. "devDependencies": {
  11. "aliasify": "^2.1.0",
  12. "autoprefixer": "^7.2.6",
  13. "babel-cli": "^6.26.0",
  14. "babel-core": "^6.26.3",
  15. "babel-jest": "^22.4.4",
  16. "babel-plugin-transform-object-assign": "^6.22.0",
  17. "babel-plugin-transform-object-rest-spread": "^6.26.0",
  18. "babel-plugin-transform-proto-to-assign": "^6.26.0",
  19. "babel-plugin-transform-react-jsx": "^6.24.1",
  20. "babel-polyfill": "^6.26.0",
  21. "babel-preset-env": "^1.7.0",
  22. "babel-register": "^6.26.0",
  23. "babelify": "^8.0.0",
  24. "browser-resolve": "^1.11.3",
  25. "browser-sync": "^2.24.5",
  26. "browserify": "^16.2.2",
  27. "chai": "^4.1.2",
  28. "chalk": "^2.4.1",
  29. "cssnano": "^3.10.0",
  30. "disc": "^1.3.3",
  31. "enzyme": "^3.3.0",
  32. "enzyme-adapter-react-16": "^1.1.1",
  33. "es6-promise": "^4.2.4",
  34. "eslint": "^3.19.0",
  35. "eslint-config-standard": "^10.2.1",
  36. "eslint-config-standard-preact": "^1.1.6",
  37. "eslint-plugin-compat": "^2.4.0",
  38. "eslint-plugin-import": "^2.13.0",
  39. "eslint-plugin-jest": "^21.17.0",
  40. "eslint-plugin-node": "^4.2.3",
  41. "eslint-plugin-promise": "^3.8.0",
  42. "eslint-plugin-standard": "^3.1.0",
  43. "exorcist": "^1.0.1",
  44. "fakefile": "0.0.9",
  45. "github-contributors-list": "1.2.3",
  46. "glob": "^7.1.2",
  47. "gzip-size": "^5.0.0",
  48. "isomorphic-fetch": "2.2.1",
  49. "jest": "^22.4.4",
  50. "json3": "^3.3.2",
  51. "lerna": "^2.11.0",
  52. "lint-staged": "^6.1.1",
  53. "minify-stream": "^1.2.0",
  54. "mkdirp": "0.5.1",
  55. "multi-glob": "1.0.1",
  56. "nock": "^9.3.3",
  57. "node-sass": "^4.9.0",
  58. "npm-auth-to-token": "^1.0.0",
  59. "npm-run-all": "^4.1.3",
  60. "onchange": "^4.0.0",
  61. "postcss": "^6.0.23",
  62. "postcss-safe-important": "^1.1.0",
  63. "pre-commit": "^1.2.2",
  64. "pretty-bytes": "^5.1.0",
  65. "react": "^16.4.1",
  66. "react-dom": "^16.4.1",
  67. "redux": "^4.0.0",
  68. "replace-x": "^1.5.0",
  69. "temp-write": "^3.4.0",
  70. "tinyify": "^2.4.3",
  71. "typescript": "^2.9.2",
  72. "uppy-server": "^0.13.4",
  73. "verdaccio": "^3.2.0",
  74. "watchify": "^3.11.0",
  75. "wdio-mocha-framework": "^0.5.13",
  76. "wdio-sauce-service": "^0.4.9",
  77. "wdio-static-server-service": "^1.0.1",
  78. "webdriverio": "^4.13.1"
  79. },
  80. "scripts": {
  81. "build:bundle": "node ./bin/build-js.js",
  82. "build:css": "node ./bin/build-css.js",
  83. "build:companion": "cd ./packages/@uppy/companion && npm run build",
  84. "build:gzip": "node ./bin/gzip.js",
  85. "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",
  86. "build:js": "npm-run-all build:lib build:bundle",
  87. "build:lib": "babel --version && node ./bin/build-lib.js",
  88. "build": "npm-run-all --parallel build:js build:css build:companion --serial build:gzip size",
  89. "clean": "rm -rf packages/*/lib packages/@uppy/*/lib && rm -rf packages/uppy/dist",
  90. "lint:fix": "npm run lint -- --fix",
  91. "lint": "eslint . --cache",
  92. "lint-staged": "lint-staged",
  93. "release": "./bin/release",
  94. "start:companion": "sh ./bin/companion",
  95. "start": "npm-run-all --parallel watch start:companion web:preview",
  96. "test:registry": "verdaccio --listen 4002 --config test/endtoend/verdaccio.yaml",
  97. "test:build": "./bin/endtoend-build",
  98. "test:build-ci": "./bin/endtoend-build-ci",
  99. "test:prepare-ci": "npm-run-all --parallel --race test:registry test:build-ci",
  100. "test:acceptance": "npm run test:prepare-ci && wdio test/endtoend/wdio.remote.conf.js",
  101. "test:acceptance:local": "npm run test:build && wdio test/endtoend/wdio.local.conf.js",
  102. "test:unit": "jest --testPathPattern=./src --coverage",
  103. "test:companion": "cd ./packages/@uppy/companion && npm run test",
  104. "test:type": "tsc -p .",
  105. "test": "npm run lint && npm run test:unit && npm run test:type && npm run test:companion",
  106. "test:watch": "jest --watch --testPathPattern=src",
  107. "travis:deletecache": "travis cache --delete",
  108. "watch:css": "onchange 'packages/**/*.scss' --initial --verbose -- npm run build:css",
  109. "watch:js": "onchange 'packages/{@uppy/,}*/src/**/*.js' --initial --verbose -- npm run build:bundle",
  110. "watch": "npm-run-all --parallel watch:js watch:css",
  111. "watch:fast": "npm-run-all --parallel watch:css web:preview",
  112. "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\"",
  113. "watch:example:js": "cd examples/bundled-example && npm run watch",
  114. "watch:example": "npm-run-all --parallel watch:example:js watch:css watch:example:browsersync",
  115. "dev": "npm-run-all --parallel watch:example:js watch:css watch:example:browsersync",
  116. "web:build": "cd website && node update.js && ./node_modules/.bin/hexo generate --silent && node build-examples.js",
  117. "web:clean": "cd website && ./node_modules/.bin/hexo clean",
  118. "web:deploy": "npm-run-all web:install web:disc web:build && ./bin/web-deploy",
  119. "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",
  120. "web:disc": "node ./bin/disc.js",
  121. "web:install": "cd website && npm install",
  122. "web:bundle:update:watch": "onchange 'packages/uppy/dist/**/*.css' 'packages/uppy/dist/**/*.js' --initial --verbose -- node website/update.js",
  123. "web:examples:watch": "cd website && node build-examples.js watch",
  124. "web:serve": "cd website && ./node_modules/.bin/hexo server",
  125. "web:preview": "npm-run-all build:lib --parallel web:examples:watch web:bundle:update:watch web:serve",
  126. "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",
  127. "web": "npm-run-all web:clean web:build",
  128. "uploadcdn": "bin/upload-to-cdn.sh",
  129. "prepare": "lerna bootstrap --hoist",
  130. "contributors": "githubcontrib --owner transloadit --repo uppy --cols 6 $([ \"${GITHUB_TOKEN:-}\" == \"\" ] && echo \"\" || echo \"--authToken ${GITHUB_TOKEN}\") --showlogin true --sortOrder desc",
  131. "contributors:save": "replace-x -m '<!--contributors-->[\\s\\S]+<!--/contributors-->' \"<!--contributors-->\n## Contributors\n\n$(npm run --silent contributors)\n<!--/contributors-->\" README.md"
  132. }
  133. }