|
4 | 4 | "description": "A plugin which, when combined with HTMLWebpackPlugin, adds CSP tags to the HTML output", |
5 | 5 | "main": "plugin.js", |
6 | 6 | "scripts": { |
7 | | - "codecov": "npm run codecov:clean && npm run codecov:generate && npm run codecov:upload", |
8 | | - "codecov:clean": "rm -rf ./coverage", |
9 | | - "codecov:generate": "./node_modules/.bin/istanbul cover ./node_modules/jasmine/bin/jasmine.js spec/plugin.spec.js", |
10 | | - "codecov:upload": "./node_modules/.bin/codecov --token=252086ef-c14d-4f29-ab36-720265249fa2", |
11 | 7 | "eslint": "eslint .", |
12 | 8 | "eslint:fix": "eslint . --fix", |
13 | | - "jasmine": "jasmine ./spec/plugin.spec.js", |
14 | | - "test": "npm run eslint && npm run jasmine && npm run codecov" |
| 9 | + "jest": "jest --config=./jest.config.js plugin.jest.js", |
| 10 | + "jest:watch": "jest --watch --config=./jest.config.js plugin.jest.js", |
| 11 | + "jest:coverage:generate": "jest --coverage --config=./jest.config.js plugin.jest.js", |
| 12 | + "jest:coverage:clean": "rm -rf ./coverage", |
| 13 | + "jest:coverage:upload": "npx codecov --token=252086ef-c14d-4f29-ab36-720265249fa2", |
| 14 | + "jest:coverage": "npm run jest:coverage:clean && npm run jest:coverage:generate && npm run jest:coverage:upload", |
| 15 | + "test": "npm run eslint && npm run jest && npm run jest:coverage" |
15 | 16 | }, |
16 | 17 | "repository": { |
17 | 18 | "type": "git", |
|
26 | 27 | "author": "Anuj Nair", |
27 | 28 | "license": "MIT", |
28 | 29 | "dependencies": { |
| 30 | + "babel-jest": "^23.6.0", |
29 | 31 | "cheerio": "^1.0.0-rc.2", |
30 | | - "lodash": "^4.17.11" |
| 32 | + "lodash": "^4.17.11", |
| 33 | + "memory-fs": "^0.4.1" |
31 | 34 | }, |
32 | 35 | "peerDependencies": { |
33 | 36 | "webpack": "^2 || ^3 || ^4", |
34 | 37 | "html-webpack-plugin": "^2 || ^3 || ^4" |
35 | 38 | }, |
36 | 39 | "devDependencies": { |
37 | 40 | "codecov": "^3.1.0", |
38 | | - "eslint": "^5.6.0", |
| 41 | + "eslint": "^5.10.0", |
39 | 42 | "eslint-config-airbnb-base": "^13.1.0", |
40 | | - "eslint-config-prettier": "^3.0.1", |
| 43 | + "eslint-config-prettier": "^3.3.0", |
41 | 44 | "eslint-plugin-import": "^2.14.0", |
42 | | - "eslint-plugin-prettier": "^2.6.2", |
| 45 | + "eslint-plugin-prettier": "^3.0.0", |
43 | 46 | "html-webpack-plugin": "^3.2.0", |
44 | | - "istanbul": "^0.4.5", |
45 | | - "jasmine": "^3.2.0", |
46 | | - "prettier": "^1.14.3", |
47 | | - "rimraf": "^2.6.2", |
48 | | - "webpack": "^4.19.1" |
| 47 | + "jest": "^23.6.0", |
| 48 | + "prettier": "^1.15.3", |
| 49 | + "webpack": "^4.28.1" |
49 | 50 | } |
50 | 51 | } |
0 commit comments