package.json 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. {
  2. "name": "terser-webpack-plugin",
  3. "version": "1.2.3",
  4. "description": "Terser plugin for webpack",
  5. "license": "MIT",
  6. "repository": "webpack-contrib/terser-webpack-plugin",
  7. "author": "webpack Contrib Team",
  8. "homepage": "https://github.com/webpack-contrib/terser-webpack-plugin",
  9. "bugs": "https://github.com/webpack-contrib/terser-webpack-plugin/issues",
  10. "main": "dist/cjs.js",
  11. "engines": {
  12. "node": ">= 6.9.0"
  13. },
  14. "scripts": {
  15. "start": "npm run build -- -w",
  16. "prebuild": "npm run clean",
  17. "build": "cross-env NODE_ENV=production babel src -d dist --ignore 'src/**/*.test.js' --copy-files",
  18. "clean": "del-cli dist",
  19. "commitlint": "commitlint",
  20. "commitmsg": "commitlint -e $GIT_PARAMS",
  21. "lint": "eslint --cache src test",
  22. "prepublish": "npm run build",
  23. "release": "standard-version",
  24. "security": "npm audit",
  25. "test:only": "jest",
  26. "test:watch": "jest --watch",
  27. "test:coverage": "jest --collectCoverageFrom='src/**/*.js' --coverage",
  28. "pretest": "npm run lint",
  29. "test": "npm run test:only",
  30. "ci:lint": "npm run lint && npm run security",
  31. "ci:test": "npm run test:only -- --runInBand",
  32. "ci:coverage": "npm run test:coverage -- --runInBand",
  33. "ci:lint:commits": "commitlint --from=origin/master --to=${CIRCLE_SHA1}",
  34. "defaults": "webpack-defaults"
  35. },
  36. "files": [
  37. "dist"
  38. ],
  39. "peerDependencies": {
  40. "webpack": "^4.0.0"
  41. },
  42. "dependencies": {
  43. "cacache": "^11.0.2",
  44. "find-cache-dir": "^2.0.0",
  45. "schema-utils": "^1.0.0",
  46. "serialize-javascript": "^1.4.0",
  47. "source-map": "^0.6.1",
  48. "terser": "^3.16.1",
  49. "webpack-sources": "^1.1.0",
  50. "worker-farm": "^1.5.2"
  51. },
  52. "devDependencies": {
  53. "@babel/cli": "^7.1.5",
  54. "@babel/core": "^7.1.6",
  55. "@babel/polyfill": "^7.0.0",
  56. "@babel/preset-env": "^7.1.6",
  57. "@commitlint/cli": "^7.0.0",
  58. "@commitlint/config-conventional": "^7.0.1",
  59. "@webpack-contrib/defaults": "^3.0.0",
  60. "@webpack-contrib/eslint-config-webpack": "^3.0.0",
  61. "babel-jest": "^24.0.0",
  62. "cross-env": "^5.1.3",
  63. "del": "^3.0.0",
  64. "del-cli": "^1.1.0",
  65. "eslint": "^5.5.0",
  66. "eslint-config-webpack": "^1.2.5",
  67. "eslint-plugin-import": "^2.8.0",
  68. "eslint-plugin-prettier": "^3.0.0",
  69. "husky": "^1.2.1",
  70. "jest": "^24.0.0",
  71. "lint-staged": "^8.1.0",
  72. "memory-fs": "^0.4.1",
  73. "prettier": "^1.14.0",
  74. "standard-version": "^5.0.0",
  75. "uglify-js": "^3.4.3",
  76. "webpack": "^4.16.3"
  77. },
  78. "keywords": [
  79. "uglify",
  80. "uglify-js",
  81. "uglify-es",
  82. "terser",
  83. "webpack",
  84. "webpack-plugin",
  85. "minification",
  86. "compress",
  87. "compressor",
  88. "min",
  89. "minification",
  90. "minifier",
  91. "minify",
  92. "optimize",
  93. "optimizer"
  94. ],
  95. "babel": {
  96. "presets": [
  97. [
  98. "@babel/preset-env",
  99. {
  100. "targets": {
  101. "node": "6.9.0"
  102. },
  103. "useBuiltIns": "usage"
  104. }
  105. ]
  106. ]
  107. },
  108. "husky": {
  109. "hooks": {
  110. "pre-commit": "lint-staged"
  111. }
  112. },
  113. "lint-staged": {
  114. "*.js": [
  115. "eslint --fix",
  116. "git add"
  117. ]
  118. },
  119. "commitlint": {
  120. "extends": [
  121. "@commitlint/config-conventional"
  122. ]
  123. },
  124. "prettier": {
  125. "singleQuote": true,
  126. "trailingComma": "es5",
  127. "arrowParens": "always"
  128. }
  129. }