|
8 | 8 | "dist/"
|
9 | 9 | ],
|
10 | 10 | "scripts": {
|
11 |
| - "test": "yarn --frozen-lockfile --check-files && yarn compile && yarn link && cd test/puppeteer && yarn --frozen-lockfile --check-files && yarn link \"w3c-css-validator\" && npx webpack && cd ../../ && jest", |
| 11 | + "dev": "yarn --frozen-lockfile --check-files && yarn compile && yarn link && cd test/puppeteer && yarn --frozen-lockfile --check-files && yarn link \"w3c-css-validator\" && npx webpack", |
| 12 | + "test": "jest", |
12 | 13 | "lint": "eslint --ext .js,.ts . && prettier --check '**/*.{ts,js,json,yml}'",
|
13 | 14 | "format": "eslint --fix --ext .js,.ts . && prettier --write '**/*.{ts,js,json,yml}'",
|
14 | 15 | "clean": "git clean -X -d --force && find . -type d -empty -delete",
|
15 |
| - "compile": "rm -rf dist/ && tsc" |
| 16 | + "precompile": "rm -rf dist/", |
| 17 | + "compile": "tsc --project tsconfig.build.json" |
16 | 18 | },
|
17 | 19 | "repository": {
|
18 | 20 | "type": "git",
|
|
32 | 34 | "homepage": "https://github.com/sparksuite/w3c-css-validator",
|
33 | 35 | "dependencies": {},
|
34 | 36 | "devDependencies": {
|
35 |
| - "@babel/core": "^7.12.13", |
36 |
| - "@babel/preset-env": "^7.12.13", |
37 |
| - "@babel/preset-typescript": "^7.12.13", |
38 | 37 | "@types/jest": "^26.0.20",
|
39 | 38 | "@types/jest-environment-puppeteer": "^4.4.1",
|
40 | 39 | "@types/node": "^14.14.25",
|
41 | 40 | "@typescript-eslint/eslint-plugin": "^4.14.2",
|
42 | 41 | "@typescript-eslint/parser": "^4.14.2",
|
43 | 42 | "eslint": "^7.19.0",
|
44 |
| - "eslint-config-prettier": "^7.2.0", |
| 43 | + "eslint-config-prettier": "^8.0.0", |
45 | 44 | "jest": "^26.6.3",
|
46 | 45 | "jest-puppeteer": "^4.4.0",
|
| 46 | + "merge": "^2.1.1", |
47 | 47 | "prettier": "^2.2.1",
|
48 | 48 | "puppeteer": "^7.1.0",
|
| 49 | + "ts-jest": "^26.5.2", |
| 50 | + "ts-node": "^9.1.1", |
49 | 51 | "typescript": "^4.1.3"
|
50 |
| - }, |
51 |
| - "jest": { |
52 |
| - "collectCoverage": true, |
53 |
| - "coverageDirectory": "./coverage/", |
54 |
| - "collectCoverageFrom": [ |
55 |
| - "<rootDir>/src/**" |
56 |
| - ], |
57 |
| - "verbose": true, |
58 |
| - "projects": [ |
59 |
| - { |
60 |
| - "displayName": "Jest", |
61 |
| - "testMatch": [ |
62 |
| - "<rootDir>/test/*.test.ts" |
63 |
| - ] |
64 |
| - }, |
65 |
| - { |
66 |
| - "displayName": "Puppeteer", |
67 |
| - "preset": "jest-puppeteer", |
68 |
| - "testMatch": [ |
69 |
| - "<rootDir>/test/puppeteer/*.test.ts" |
70 |
| - ] |
71 |
| - } |
72 |
| - ] |
73 | 52 | }
|
74 | 53 | }
|
0 commit comments