|
2 | 2 | "name": "add-asset-html-webpack-plugin", |
3 | 3 | "version": "2.1.3", |
4 | 4 | "description": "Add a JS or CSS assets to a generated HTML file", |
5 | | - "files": ["lib/", "index.d.ts"], |
| 5 | + "files": [ |
| 6 | + "lib/", |
| 7 | + "index.d.ts" |
| 8 | + ], |
6 | 9 | "main": "lib/index.js", |
7 | 10 | "scripts": { |
8 | 11 | "clean": "del-cli lib/ coverage/ example/build example/dist", |
9 | | - "compile": "babel src/ --out-dir lib/", |
| 12 | + "build": "babel src/ --out-dir lib/", |
10 | 13 | "cover": "jest --coverage", |
11 | | - "preexample": "npm run clean && npm run compile", |
12 | | - "example": |
13 | | - "webpack --config example/webpack.config.dll.js && webpack --config example/webpack.config.js", |
| 14 | + "preexample": "npm run clean && npm run build", |
| 15 | + "example": "webpack --config example/webpack.config.dll.js && webpack --config example/webpack.config.js", |
14 | 16 | "lint": "eslint .", |
15 | 17 | "update-license": "licensor --width 72", |
16 | | - "compile-and-update-license": "npm run compile && npm run update-license", |
| 18 | + "build-and-update-license": "npm run build && npm run update-license", |
17 | 19 | "preversion": "npm run travis && npm run update-license", |
18 | | - "prepublish": |
19 | | - "not-in-install && npm run compile-and-update-license || in-install", |
| 20 | + "prepublish": "not-in-install && npm run build-and-update-license || in-install", |
20 | 21 | "postpublish": "git push --follow-tags", |
21 | 22 | "pretest": "npm run lint", |
22 | 23 | "test": "jest", |
|
25 | 26 | "precommit": "lint-staged" |
26 | 27 | }, |
27 | 28 | "repository": "SimenB/add-asset-html-webpack-plugin", |
28 | | - "keywords": ["dll", "html-webpack-plugin", "webpack"], |
| 29 | + "keywords": [ |
| 30 | + "dll", |
| 31 | + "html-webpack-plugin", |
| 32 | + "webpack" |
| 33 | + ], |
29 | 34 | "author": "Simen Bekkhus <[email protected]>", |
30 | 35 | "license": "MIT", |
31 | 36 | "bugs": { |
|
38 | 43 | "p-each-series": "^1.0.0" |
39 | 44 | }, |
40 | 45 | "devDependencies": { |
41 | | - "babel-cli": "^6.26.0", |
42 | | - "babel-plugin-add-module-exports": "^0.2.1", |
43 | | - "babel-plugin-transform-inline-imports-commonjs": "^1.2.0", |
44 | | - "babel-preset-env": "^1.6.0", |
| 46 | + "@babel/cli": "^7.0.0", |
| 47 | + "@babel/core": "^7.0.1", |
| 48 | + "@babel/plugin-transform-modules-commonjs": "^7.0.0", |
| 49 | + "@babel/preset-env": "^7.0.0", |
| 50 | + "babel-core": "^7.0.0-bridge.0", |
| 51 | + "babel-jest": "^23.6.0", |
| 52 | + "babel-plugin-add-module-exports": "^1.0.0", |
45 | 53 | "classnames": "^2.2.5", |
46 | 54 | "del-cli": "^1.1.0", |
47 | | - "eslint": "^4.6.1", |
48 | | - "eslint-config-simenb-base": "^14.0.0", |
49 | | - "eslint_d": "^5.1.0", |
| 55 | + "eslint": "^5.6.0", |
| 56 | + "eslint-config-simenb-base": "^15.0.0", |
| 57 | + "eslint_d": "^7.1.0", |
50 | 58 | "html-webpack-plugin": "^2.10.0", |
51 | 59 | "husky": "^0.14.3", |
52 | 60 | "in-publish": "^2.0.0", |
53 | | - "jest": "^21.1.0", |
| 61 | + "jest": "^23.6.0", |
| 62 | + "jest-watch-typeahead": "^0.2.0", |
54 | 63 | "licensor": "^4.0.0", |
55 | | - "lint-staged": "^6.0.0", |
| 64 | + "lint-staged": "^7.0.0", |
56 | 65 | "prettier": "^1.8.2", |
57 | 66 | "webpack": "^3.5.6" |
58 | 67 | }, |
59 | 68 | "peerDependencies": { |
60 | 69 | "html-webpack-plugin": "^2.10.0 || ^3.0.4" |
61 | 70 | }, |
62 | 71 | "engines": { |
63 | | - "node": ">=4" |
| 72 | + "node": ">=6" |
64 | 73 | }, |
65 | 74 | "jest": { |
66 | 75 | "testEnvironment": "node", |
|
71 | 80 | "lines": 100, |
72 | 81 | "statements": 100 |
73 | 82 | } |
74 | | - } |
| 83 | + }, |
| 84 | + "watchPlugins": [ |
| 85 | + "jest-watch-typeahead/filename", |
| 86 | + "jest-watch-typeahead/testname" |
| 87 | + ] |
75 | 88 | }, |
76 | 89 | "lint-staged": { |
77 | | - "*.js": ["eslint --fix", "git add"], |
78 | | - "*.{md,json}": ["prettier --write", "git add"], |
79 | | - ".eslintrc": ["prettier --write", "git add"] |
| 90 | + "*.js": [ |
| 91 | + "eslint --fix", |
| 92 | + "git add" |
| 93 | + ], |
| 94 | + "*.{md,json}": [ |
| 95 | + "prettier --write", |
| 96 | + "git add" |
| 97 | + ], |
| 98 | + ".{eslintrc,babelrc}": [ |
| 99 | + "prettier --write", |
| 100 | + "git add" |
| 101 | + ] |
80 | 102 | }, |
81 | 103 | "prettier": { |
82 | 104 | "singleQuote": true, |
83 | 105 | "trailingComma": "all", |
84 | 106 | "overrides": [ |
85 | 107 | { |
86 | | - "files": ".eslintrc", |
| 108 | + "files": [ |
| 109 | + ".eslintrc", |
| 110 | + ".babelrc" |
| 111 | + ], |
87 | 112 | "options": { |
88 | 113 | "parser": "json" |
89 | 114 | } |
|
0 commit comments