package.json 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. {
  2. "name": "webpack-cli",
  3. "version": "3.3.0",
  4. "description": "CLI for webpack & friends",
  5. "license": "MIT",
  6. "repository": {
  7. "type": "git",
  8. "url": "https://github.com/webpack/webpack-cli.git"
  9. },
  10. "bin": {
  11. "webpack-cli": "./bin/cli.js"
  12. },
  13. "main": "./bin/cli.js",
  14. "engines": {
  15. "node": ">=6.11.5"
  16. },
  17. "keywords": [
  18. "webpack",
  19. "cli",
  20. "scaffolding",
  21. "module",
  22. "bundler"
  23. ],
  24. "files": [
  25. "bin",
  26. "scripts"
  27. ],
  28. "scripts": {
  29. "bootstrap": "npm run clean:all && npm install && lerna bootstrap",
  30. "build": "tsc",
  31. "bundlesize": "bundlesize",
  32. "changelog": "conventional-changelog --config ./build/changelog-generator/index.js --infile CHANGELOG.md --same-file",
  33. "clean:all": "rimraf node_modules packages/*/{node_modules}",
  34. "commit": "git-cz",
  35. "docs": "typedoc",
  36. "format": "prettier-eslint ./bin/*.js ./test/**/*.js ./packages/**/*.js --write",
  37. "lint:codeOnly": "eslint \"{bin}/**/!(__testfixtures__)/*.js\" \"{bin}/**.js\"",
  38. "lint": "eslint \"./bin/*.js\" \"./test/**/*.js\" \"packages/**/!(node_modules)/*.test.js\"",
  39. "pretest": "npm run build && npm run lint && npm run tslint",
  40. "reportCoverage": "nyc report --reporter=json && codecov -f coverage/coverage-final.json --disable=gcov",
  41. "test": "nyc jest --maxWorkers=4 --reporters=default --reporters=jest-junit",
  42. "test:ci": "nyc jest --maxWorkers=$(nproc) --reporters=default --reporters=jest-junit",
  43. "travis:integration": "npm run build && npm run test && npm run reportCoverage",
  44. "travis:lint": "npm run build && npm run lint && npm run tslint",
  45. "tslint": "tslint -c tslint.json \"packages/**/*.ts\"",
  46. "watch": "npm run build && tsc -w"
  47. },
  48. "husky": {
  49. "hooks": {
  50. "pre-commit": "lint-staged",
  51. "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
  52. }
  53. },
  54. "lint-staged": {
  55. "{packages,bin}/**/!(__testfixtures__)/**.js": [
  56. "eslint --fix",
  57. "git add"
  58. ],
  59. "{packages,bin}/**/!(__testfixtures__)/**.ts": [
  60. "tslint --fix",
  61. "git add"
  62. ]
  63. },
  64. "jest": {
  65. "testPathIgnorePatterns": [
  66. "^.+\\.(ts)?$",
  67. "/node_modules/"
  68. ],
  69. "testEnvironment": "node",
  70. "collectCoverage": true,
  71. "coverageReporters": [
  72. "json",
  73. "html",
  74. "cobertura"
  75. ],
  76. "moduleNameMapper": {
  77. "^.+\\.(ts)?$": "ts-jest"
  78. }
  79. },
  80. "nyc": {
  81. "include": [
  82. "bin/**.js",
  83. "packages/**/*.js"
  84. ],
  85. "reporter": [
  86. "lcov"
  87. ],
  88. "all": true
  89. },
  90. "bundlesize": [
  91. {
  92. "path": "./packages/migrate/**.js",
  93. "maxSize": "1 kB"
  94. },
  95. {
  96. "path": "./packages/init/**/**.js",
  97. "maxSize": "1.6 kB"
  98. },
  99. {
  100. "path": "./packages/utils/**.js",
  101. "maxSize": "5.32 kB"
  102. }
  103. ],
  104. "config": {
  105. "commitizen": {
  106. "path": "./node_modules/cz-customizable"
  107. },
  108. "cz-customizable": {
  109. "config": "./.cz-config.js"
  110. }
  111. },
  112. "dependencies": {
  113. "chalk": "^2.4.1",
  114. "cross-spawn": "^6.0.5",
  115. "enhanced-resolve": "^4.1.0",
  116. "findup-sync": "^2.0.0",
  117. "global-modules": "^1.0.0",
  118. "import-local": "^2.0.0",
  119. "interpret": "^1.1.0",
  120. "loader-utils": "^1.1.0",
  121. "supports-color": "^5.5.0",
  122. "v8-compile-cache": "^2.0.2",
  123. "yargs": "^12.0.5"
  124. },
  125. "peerDependencies": {
  126. "webpack": "4.x.x"
  127. },
  128. "devDependencies": {
  129. "@babel/preset-env": "^7.3.4",
  130. "@babel/register": "^7.0.0",
  131. "@commitlint/cli": "^7.2.1",
  132. "@commitlint/config-lerna-scopes": "^7.2.1",
  133. "@commitlint/prompt-cli": "^7.5.0",
  134. "@commitlint/travis-cli": "^7.2.1",
  135. "@types/jest": "^23.3.14",
  136. "@types/node": "^10.12.9",
  137. "babel-preset-env": "^1.7.0",
  138. "babel-preset-jest": "^24.3.0",
  139. "bundlesize": "^0.17.0",
  140. "codecov": "^3.1.0",
  141. "commitizen": "^3.0.7",
  142. "commitlint-config-cz": "^0.10.1",
  143. "conventional-changelog-cli": "^2.0.11",
  144. "cz-customizable": "^5.3.0",
  145. "eslint": "^5.9.0",
  146. "eslint-plugin-node": "^8.0.0",
  147. "esm": "^3.2.14",
  148. "execa": "^1.0.0",
  149. "husky": "^1.1.4",
  150. "jest": "^24.3.1",
  151. "jest-cli": "^24.3.1",
  152. "jest-junit": "^6.3.0",
  153. "lerna": "^3.13.1",
  154. "lint-staged": "7.x.x",
  155. "nyc": "^13.3.0",
  156. "prettier-eslint-cli": "^4.7.1",
  157. "readable-stream": "^3.0.6",
  158. "rimraf": "^2.6.2",
  159. "schema-utils": "^1.0.0",
  160. "ts-jest": "^23.10.5",
  161. "ts-node": "^7.0.1",
  162. "tslint": "^5.11.0",
  163. "typedoc": "^0.13.0",
  164. "typedoc-plugin-monorepo": "^0.1.0",
  165. "typescript": "^3.3.1",
  166. "webpack": "4.x.x",
  167. "webpack-dev-server": "^3.1.10"
  168. },
  169. "collective": {
  170. "type": "opencollective",
  171. "url": "https://opencollective.com/webpack"
  172. }
  173. }