forked from GoogleChromeLabs/critters
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
98 lines (98 loc) · 2.41 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
"name": "critters-root",
"private": true,
"description": "Inline critical CSS and lazy-load the rest.",
"license": "Apache-2.0",
"author": "The Chromium Authors",
"contributors": [
{
"name": "Jason Miller",
"email": "[email protected]"
},
{
"name": "Janicklas Ralph",
"email": "[email protected]"
}
],
"workspaces": {
"packages": [
"./packages/*"
],
"nohoist": [
"**/css-loader",
"**/file-loader",
"**/mini-css-extract-plugin",
"**/webpack"
]
},
"scripts": {
"build": "yarn workspaces run build",
"build:main": "yarn workspace critters run build",
"build:webpack": "yarn workspace critters-webpack-plugin run build",
"docs": "yarn workspaces run docs",
"release": "npm run build -s && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish",
"test": "jest --coverage"
},
"jest": {
"testEnvironment": "node",
"coverageReporters": [
"text"
],
"moduleNameMapper": {
"^critters$": "<rootDir>/packages/critters/src/index.js",
"#(.*)": "<rootDir>/node_modules/$1"
},
"collectCoverageFrom": [
"packages/*/src/**/*.js"
],
"modulePaths": [
"<rootDir>/packages/critters-webpack-plugin/node_modules",
"<rootDir>/packages/critters/node_modules"
],
"watchPathIgnorePatterns": [
"node_modules",
"dist"
],
"transformIgnorePatterns": [
]
},
"prettier": {
"singleQuote": true,
"trailingComma": "none"
},
"eslintConfig": {
"extends": [
"standard",
"plugin:jest/recommended",
"prettier"
],
"globals": {
"document": "readonly",
"DOMParser": "readonly"
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"modules": true
}
}
},
"devDependencies": {
"@babel/preset-env": "^7.11.0",
"@types/jest": "^26.0.23",
"babel-core": "^6.26.0",
"babel-jest": "^26.3.0",
"eslint": "^7.6.0",
"eslint-config-prettier": "^6.11.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.11.0",
"eslint-plugin-jest": "^23.20.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"jest": "^26.3.0",
"jsdom": "^16.6.0",
"microbundle": "^0.12.3",
"prettier": "^2.3.0"
}
}