package.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. {
  2. "name": "babel-loader",
  3. "version": "8.0.5",
  4. "description": "babel module loader for webpack",
  5. "files": [
  6. "lib"
  7. ],
  8. "main": "lib/index.js",
  9. "engines": {
  10. "node": ">= 6.9"
  11. },
  12. "dependencies": {
  13. "find-cache-dir": "^2.0.0",
  14. "loader-utils": "^1.0.2",
  15. "mkdirp": "^0.5.1",
  16. "util.promisify": "^1.0.0"
  17. },
  18. "peerDependencies": {
  19. "@babel/core": "^7.0.0",
  20. "webpack": ">=2"
  21. },
  22. "devDependencies": {
  23. "@babel/cli": "^7.2.0",
  24. "@babel/core": "^7.2.0",
  25. "@babel/preset-env": "^7.2.0",
  26. "ava": "1.0.1",
  27. "babel-eslint": "^10.0.1",
  28. "babel-plugin-istanbul": "^5.1.0",
  29. "babel-plugin-react-intl": "^3.0.1",
  30. "cross-env": "^5.2.0",
  31. "eslint": "^5.9.0",
  32. "eslint-config-babel": "^8.0.2",
  33. "eslint-config-prettier": "^3.3.0",
  34. "eslint-plugin-flowtype": "^3.2.0",
  35. "eslint-plugin-prettier": "^3.0.0",
  36. "husky": "^1.2.0",
  37. "lint-staged": "^8.1.0",
  38. "nyc": "^13.1.0",
  39. "prettier": "^1.15.3",
  40. "react": "^16.0.0",
  41. "react-intl": "^2.1.2",
  42. "react-intl-webpack-plugin": "^0.3.0",
  43. "rimraf": "^2.4.3",
  44. "webpack": "^4.0.0"
  45. },
  46. "scripts": {
  47. "clean": "rimraf lib/",
  48. "build": "babel src/ --out-dir lib/",
  49. "format": "prettier --write --trailing-comma all 'src/**/*.js' 'test/**/*.test.js' 'test/helpers/*.js' && prettier --write --trailing-comma es5 'scripts/*.js'",
  50. "lint": "eslint src test",
  51. "precommit": "lint-staged",
  52. "prepublish": "yarn run clean && yarn run build",
  53. "preversion": "yarn run test",
  54. "test": "yarn run lint && cross-env BABEL_ENV=test yarn run build && yarn run test-only",
  55. "test-only": "nyc ava"
  56. },
  57. "repository": {
  58. "type": "git",
  59. "url": "https://github.com/babel/babel-loader.git"
  60. },
  61. "keywords": [
  62. "webpack",
  63. "loader",
  64. "babel",
  65. "es6",
  66. "transpiler",
  67. "module"
  68. ],
  69. "author": "Luis Couto <hello@luiscouto.pt>",
  70. "license": "MIT",
  71. "bugs": {
  72. "url": "https://github.com/babel/babel-loader/issues"
  73. },
  74. "homepage": "https://github.com/babel/babel-loader",
  75. "nyc": {
  76. "all": true,
  77. "include": [
  78. "src/**/*.js"
  79. ],
  80. "reporter": [
  81. "text",
  82. "json"
  83. ],
  84. "sourceMap": false,
  85. "instrument": false
  86. },
  87. "ava": {
  88. "files": [
  89. "test/**/*.test.js",
  90. "!test/fixtures/**/*",
  91. "!test/helpers/**/*"
  92. ],
  93. "sources": [
  94. "src/**/*.js"
  95. ]
  96. },
  97. "lint-staged": {
  98. "scripts/*.js": [
  99. "prettier --trailing-comma es5 --write",
  100. "git add"
  101. ],
  102. "src/**/*.js": [
  103. "prettier --trailing-comma all --write",
  104. "git add"
  105. ],
  106. "test/**/*.test.js": [
  107. "prettier --trailing-comma all --write",
  108. "git add"
  109. ],
  110. "test/helpers/*.js": [
  111. "prettier --trailing-comma all --write",
  112. "git add"
  113. ],
  114. "package.json": [
  115. "node ./scripts/yarn-install.js",
  116. "git add yarn.lock"
  117. ]
  118. }
  119. }