package.json 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. {
  2. "name": "uppy",
  3. "version": "0.8.3",
  4. "description": "Almost as cute as a Puppy :dog:",
  5. "main": "lib/index.js",
  6. "jsnext:main": "src/index.js",
  7. "files": [
  8. "src/",
  9. "lib/"
  10. ],
  11. "scripts": {
  12. "build:bundle": "node ./bin/build-js.js",
  13. "build:css": "node ./bin/build-css.js",
  14. "build:gzip": "node ./bin/gzip.js",
  15. "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",
  16. "build:bundle:fullpath": "env OUT=uppy-fp.js ./bin/build-bundle --full-paths",
  17. "build:js": "npm-run-all build:bundle build:lib",
  18. "build:lib": "babel --version && babel src --source-maps -d lib",
  19. "build": "npm-run-all --parallel build:js build:css --serial build:gzip size",
  20. "clean": "rm -rf lib && rm -rf dist",
  21. "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",
  22. "lint:fix": "eslint src test website/build-examples.js website/update.js website/themes/uppy/source/js/common.js --fix",
  23. "lint": "eslint src test website/build-examples.js website/update.js website/themes/uppy/source/js/common.js",
  24. "lint-staged": "lint-staged",
  25. "release:major": "env SEMANTIC=major npm run release",
  26. "release:minor": "env SEMANTIC=minor npm run release",
  27. "release:patch": "env SEMANTIC=patch npm run release",
  28. "release": "npm version ${SEMANTIC:-patch} -m \"Release %s\" && git push && git push --tags && npm publish",
  29. "start:server": "cd ./node_modules/uppy-server && npm run start",
  30. "start": "npm-run-all --parallel watch start:server web:preview",
  31. "test:acceptance:handleservers": "bin/bootandkill-servers node test/acceptance/index.js",
  32. "test:acceptance": "node test/acceptance/index.js",
  33. "test:unit": "node test/unit/index.js | tap-spec",
  34. "test": "npm run lint && npm run test:unit",
  35. "test:serve": "npm-run-all web:build --parallel start:server web:serve",
  36. "test:next-update": "next-update",
  37. "travis:deletecache": "travis cache --delete",
  38. "watch:css": "nodemon --watch src --ext scss -x 'npm run build:css'",
  39. "watch:js": "nodemon --watch src --ext js -x 'npm run build:bundle'",
  40. "watch": "npm-run-all --parallel watch:js watch:css",
  41. "watch:fast": "npm-run-all --parallel watch:css web:preview",
  42. "watch:example:browsersync": "browser-sync start --server 'example' --port 3452 --serveStatic 'dist' --files 'example/bundle.js, dist/uppy.min.css'",
  43. "watch:example:js": "watchify -t 'babelify' example/main.js -o example/bundle.js -vd",
  44. "watch:example": "npm-run-all --parallel watch:example:js watch:css watch:example:browsersync",
  45. "web:build": "cd website && node update.js && ./node_modules/.bin/hexo generate --silent && node build-examples.js",
  46. "web:clean": "cd website && ./node_modules/.bin/hexo clean",
  47. "web:deploy": "npm-run-all web:install web:disc docs web:build && ./bin/web-deploy",
  48. "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",
  49. "web:install": "cd website && npm install",
  50. "web:bundle:update:watch": "nodemon --watch dist --ext css,js -x 'node website/update.js'",
  51. "web:examples:watch": "cd website && node build-examples.js watch",
  52. "web:serve": "cd website && ./node_modules/.bin/hexo server",
  53. "web:preview": "npm-run-all --parallel web:examples:watch web:bundle:update:watch web:serve",
  54. "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",
  55. "web": "npm-run-all web:clean web:build",
  56. "prepublish": "npm-run-all clean build"
  57. },
  58. "lint-staged": {
  59. "*.js": "eslint"
  60. },
  61. "pre-commit": "lint-staged",
  62. "repository": {
  63. "type": "git",
  64. "url": "git+https://github.com/transloadit/uppy.git"
  65. },
  66. "author": "",
  67. "license": "ISC",
  68. "bugs": {
  69. "url": "https://github.com/transloadit/uppy/issues"
  70. },
  71. "homepage": "https://github.com/transloadit/uppy#readme",
  72. "devDependencies": {
  73. "autoprefixer": "6.3.7",
  74. "babel-cli": "6.11.4",
  75. "babel-core": "6.13.2",
  76. "babel-eslint": "6.1.2",
  77. "babel-loader": "6.2.4",
  78. "babel-plugin-es6-promise": "1.0.0",
  79. "babel-plugin-transform-object-assign": "6.8.0",
  80. "babel-plugin-transform-proto-to-assign": "6.9.0",
  81. "babel-polyfill": "6.9.1",
  82. "babel-preset-es2015": "6.13.2",
  83. "babel-preset-es2015-loose": "7.0.0",
  84. "babel-register": "6.9.0",
  85. "babelify": "7.2.0",
  86. "browser-sync": "2.13.0",
  87. "browserify": "13.0.1",
  88. "chalk": "1.1.3",
  89. "cssnano": "3.7.3",
  90. "disc": "1.3.2",
  91. "eslint": "2.7.0",
  92. "eslint-config-standard": "5.1.0",
  93. "eslint-plugin-promise": "1.1.0",
  94. "eslint-plugin-standard": "1.3.2",
  95. "exorcist": "0.4.0",
  96. "fakefile": "0.0.8",
  97. "glob": "7.0.5",
  98. "isomorphic-fetch": "2.2.1",
  99. "lint-staged": "2.0.2",
  100. "minifyify": "7.3.3",
  101. "mkdirp": "0.5.1",
  102. "multi-glob": "1.0.1",
  103. "next-update": "1.2.2",
  104. "nock": "8.0.0",
  105. "node-notifier": "4.6.0",
  106. "node-sass": "3.8.0",
  107. "nodemon": "1.8.1",
  108. "npm-run-all": "2.3.0",
  109. "postcss": "5.1.0",
  110. "pre-commit": "1.1.3",
  111. "sass": "0.5.0",
  112. "selenium-webdriver": "2.53.3",
  113. "tap-spec": "4.1.1",
  114. "tape": "4.4.0",
  115. "uppy-server": "0.0.7",
  116. "watchify": "3.7.0"
  117. },
  118. "dependencies": {
  119. "deep-freeze-strict": "1.1.1",
  120. "drag-drop": "2.11.0",
  121. "es6-promise": "3.2.1",
  122. "mime-types": "2.1.11",
  123. "namespace-emitter": "1.0.0",
  124. "pretty-bytes": "3.0.1",
  125. "tus-js-client": "1.2.1",
  126. "whatwg-fetch": "1.0.0",
  127. "yo-yo": "1.2.2"
  128. }
  129. }