@stanlemon/webdev 0.1.8 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc.json +12 -2
- package/jest.config.js +11 -0
- package/package.json +14 -12
- package/tsconfig.json +23 -0
package/.babelrc.json
CHANGED
package/jest.config.js
CHANGED
|
@@ -19,4 +19,15 @@ export default {
|
|
|
19
19
|
moduleNameMapper: {
|
|
20
20
|
"\\.(css|less|sass|scss)$": "identity-obj-proxy",
|
|
21
21
|
},
|
|
22
|
+
coverageDirectory: ".coverage",
|
|
23
|
+
coverageReporters: ["json", "lcov", "text", "html"],
|
|
24
|
+
collectCoverageFrom: ["**/*.{js,jsx,ts,tsx}"],
|
|
25
|
+
coveragePathIgnorePatterns: [
|
|
26
|
+
// Ignore all of our dependencies
|
|
27
|
+
"/node_modules/",
|
|
28
|
+
// Ignore coverage files
|
|
29
|
+
"\\.coverage\\/",
|
|
30
|
+
// Ignore config files
|
|
31
|
+
"\\.config\\.js$",
|
|
32
|
+
],
|
|
22
33
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stanlemon/webdev",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "My typical web development setup, but without all the copy and paste.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -19,31 +19,33 @@
|
|
|
19
19
|
"lint:format": "eslint --fix --ext js,jsx,ts,tsx ./"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@babel/core": "^7.16.
|
|
23
|
-
"@babel/preset-env": "^7.16.
|
|
24
|
-
"@babel/preset-react": "^7.16.
|
|
25
|
-
"@babel/preset-typescript": "^7.16.
|
|
26
|
-
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.
|
|
22
|
+
"@babel/core": "^7.16.7",
|
|
23
|
+
"@babel/preset-env": "^7.16.7",
|
|
24
|
+
"@babel/preset-react": "^7.16.7",
|
|
25
|
+
"@babel/preset-typescript": "^7.16.7",
|
|
26
|
+
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.4",
|
|
27
27
|
"@stanlemon/eslint-config": "*",
|
|
28
28
|
"@testing-library/dom": "^8.11.1",
|
|
29
29
|
"@testing-library/jest-dom": "^5.16.1",
|
|
30
30
|
"@testing-library/react": "^12.1.2",
|
|
31
31
|
"@testing-library/user-event": "^13.5.0",
|
|
32
|
-
"@types/jest": "^27.0
|
|
33
|
-
"@types/node": "^17.0.
|
|
34
|
-
"@types/react": "^17.0.
|
|
32
|
+
"@types/jest": "^27.4.0",
|
|
33
|
+
"@types/node": "^17.0.8",
|
|
34
|
+
"@types/react": "^17.0.38",
|
|
35
|
+
"@types/react-dom": "^17.0.11",
|
|
35
36
|
"@types/webpack": "^5.28.0",
|
|
36
37
|
"@types/webpack-env": "^1.16.3",
|
|
37
|
-
"babel-jest": "^27.4.
|
|
38
|
+
"babel-jest": "^27.4.6",
|
|
38
39
|
"babel-loader": "^8.2.3",
|
|
39
40
|
"clean-webpack-plugin": "^4.0.0",
|
|
40
41
|
"css-loader": "^6.5.1",
|
|
41
42
|
"dotenv": "^10.0.0",
|
|
42
43
|
"html-webpack-plugin": "^5.5.0",
|
|
43
44
|
"identity-obj-proxy": "^3.0.0",
|
|
44
|
-
"jest": "^27.4.
|
|
45
|
+
"jest": "^27.4.7",
|
|
45
46
|
"less": "^4.1.2",
|
|
46
47
|
"less-loader": "^10.2.0",
|
|
48
|
+
"prettier": "^2.5.1",
|
|
47
49
|
"react": "^17.0.2",
|
|
48
50
|
"react-dom": "^17.0.2",
|
|
49
51
|
"react-refresh": "^0.11.0",
|
|
@@ -52,6 +54,6 @@
|
|
|
52
54
|
"webpack": "^5.65.0",
|
|
53
55
|
"webpack-bundle-analyzer": "^4.5.0",
|
|
54
56
|
"webpack-cli": "^4.9.1",
|
|
55
|
-
"webpack-dev-server": "^4.
|
|
57
|
+
"webpack-dev-server": "^4.7.2"
|
|
56
58
|
}
|
|
57
59
|
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "esnext",
|
|
4
|
+
"lib": [
|
|
5
|
+
"dom",
|
|
6
|
+
"dom.iterable",
|
|
7
|
+
"esnext"
|
|
8
|
+
],
|
|
9
|
+
"allowJs": true,
|
|
10
|
+
"esModuleInterop": true,
|
|
11
|
+
"allowSyntheticDefaultImports": true,
|
|
12
|
+
"strict": true,
|
|
13
|
+
"forceConsistentCasingInFileNames": true,
|
|
14
|
+
"noFallthroughCasesInSwitch": true,
|
|
15
|
+
"noImplicitAny": true,
|
|
16
|
+
"module": "esnext",
|
|
17
|
+
"moduleResolution": "node",
|
|
18
|
+
"resolveJsonModule": true,
|
|
19
|
+
"isolatedModules": true,
|
|
20
|
+
"noEmit": true,
|
|
21
|
+
"jsx": "react-jsx"
|
|
22
|
+
}
|
|
23
|
+
}
|