Skip to content

Commit 801ee43

Browse files
committed
All-round update
- updated solid to 1.1 - added solid-refresh for hot module reload - speed up with TailwindCSS jit mode - used solid-testing-library and solid-jest for tests - updated eslint rules - improved debugging support in Firefox (should work for Chrome with minor changes also) - added extension recommendations for VSCode
1 parent 9343cec commit 801ee43

File tree

16 files changed

+5603
-7319
lines changed

16 files changed

+5603
-7319
lines changed

.eslintrc.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,11 @@
3232
"plugin:import/typescript",
3333
"plugin:jest/recommended",
3434
"plugin:jest/style",
35-
"plugin:testing-library/recommended",
35+
"plugin:testing-library/dom",
3636
"plugin:jest-dom/recommended",
3737
"plugin:json/recommended",
3838
"plugin:eslint-comments/recommended",
39-
"plugin:prettier/recommended",
40-
"prettier/@typescript-eslint"
39+
"plugin:prettier/recommended"
4140
],
4241
"rules": {
4342
"@typescript-eslint/explicit-function-return-type": [

.vscode/extensions.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"recommendations": [
3+
"dbaeumer.vscode-eslint",
4+
"editorconfig.editorconfig",
5+
"bradlc.vscode-tailwindcss",
6+
"firefox-devtools.vscode-firefox-debug"
7+
],
8+
}

.vscode/launch.json

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
11
{
2-
// Use IntelliSense to learn about possible attributes.
3-
// Hover to view descriptions of existing attributes.
4-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5-
"version": "0.2.0",
6-
"configurations": [
7-
{
8-
"type": "chrome",
9-
"request": "launch",
10-
"name": "Chromium",
11-
"url": "http://localhost:3000",
12-
"webRoot": "${workspaceFolder}"
13-
},
14-
{
15-
"type": "firefox",
16-
"request": "launch",
17-
"name": "Firefox",
18-
"url": "http://localhost:3000",
19-
"webRoot": "${workspaceFolder}"
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "firefox",
9+
"request": "launch",
10+
"name": "Firefox",
11+
"reAttach": true,
12+
"url": "http://localhost:3000",
13+
"sourceMapPathOverrides": {
14+
"webpack://*": "${workspaceFolder}/*"
2015
}
21-
]
22-
}
16+
}
17+
]
18+
}

babel.config.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
{
2-
"presets": ["solid", "@babel/typescript"],
2+
"presets": [
3+
"solid",
4+
"@babel/typescript"
5+
],
36
"env": {
7+
"development": {
8+
"plugins": ["solid-refresh/babel"]
9+
},
410
"test": {
511
"presets": [
612
[
@@ -20,7 +26,9 @@
2026
{
2127
"useBuiltIns": "entry",
2228
"corejs": 3,
23-
"exclude": ["transform-typeof-symbol"]
29+
"exclude": [
30+
"transform-typeof-symbol"
31+
]
2432
}
2533
]
2634
]

package.json

Lines changed: 48 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -16,71 +16,70 @@
1616
"license": "ISC",
1717
"dependencies": {
1818
"clsx": "^1.1.1",
19-
"core-js": "3",
20-
"regenerator-runtime": "^0.13.7",
21-
"solid-js": "^0.23.10"
19+
"core-js": "^3.17.1",
20+
"regenerator-runtime": "^0.13.9",
21+
"solid-js": "^1.1.2"
2222
},
2323
"devDependencies": {
24-
"@babel/core": "^7.12.10",
25-
"@babel/preset-env": "^7.12.11",
26-
"@babel/preset-typescript": "^7.12.7",
27-
"@testing-library/dom": "^7.29.2",
28-
"@testing-library/jest-dom": "^5.11.8",
29-
"@types/jest": "^26.0.20",
30-
"@typescript-eslint/eslint-plugin": "^4.12.0",
31-
"@typescript-eslint/parser": "^4.12.0",
32-
"autoprefixer": "^10.2.1",
24+
"@babel/core": "^7.15.0",
25+
"@babel/preset-env": "^7.15.0",
26+
"@babel/preset-typescript": "^7.15.0",
27+
"@testing-library/jest-dom": "^5.14.1",
28+
"@types/jest": "^27.0.1",
29+
"@typescript-eslint/eslint-plugin": "^4.30.0",
30+
"@typescript-eslint/parser": "^4.30.0",
31+
"autoprefixer": "^10.3.3",
32+
"babel-jest": "^27.1.0",
3333
"babel-loader": "^8.2.2",
34-
"babel-preset-solid": "^0.23.8",
35-
"clean-webpack-plugin": "^3.0.0",
34+
"babel-preset-solid": "^1.1.2",
35+
"clean-webpack-plugin": "^4.0.0",
3636
"cross-env": "^7.0.3",
37-
"css-loader": "^5.0.1",
38-
"css-minimizer-webpack-plugin": "^1.2.0",
39-
"eslint": "^7.17.0",
40-
"eslint-config-prettier": "^7.1.0",
41-
"eslint-import-resolver-typescript": "^2.3.0",
37+
"css-loader": "^6.2.0",
38+
"css-minimizer-webpack-plugin": "^3.0.2",
39+
"eslint": "^7.32.0",
40+
"eslint-config-prettier": "^8.3.0",
41+
"eslint-import-resolver-typescript": "^2.4.0",
4242
"eslint-plugin-eslint-comments": "^3.2.0",
43-
"eslint-plugin-import": "^2.22.1",
44-
"eslint-plugin-jest": "^24.1.3",
45-
"eslint-plugin-jest-dom": "^3.6.5",
46-
"eslint-plugin-json": "^2.1.2",
43+
"eslint-plugin-import": "^2.24.2",
44+
"eslint-plugin-jest": "^24.4.0",
45+
"eslint-plugin-jest-dom": "^3.9.0",
46+
"eslint-plugin-json": "^3.1.0",
4747
"eslint-plugin-jsx-a11y": "^6.4.1",
48-
"eslint-plugin-prettier": "^3.3.1",
49-
"eslint-plugin-testing-library": "^3.10.1",
50-
"eslint-webpack-plugin": "^2.4.1",
51-
"fork-ts-checker-webpack-plugin": "^6.1.0",
52-
"html-webpack-plugin": "^5.0.0-beta.4",
53-
"jest": "^26.6.3",
54-
"mini-css-extract-plugin": "^1.3.3",
55-
"postcss": "^8.2.4",
56-
"postcss-loader": "^4.1.0",
57-
"prettier": "^2.2.1",
58-
"style-loader": "^2.0.0",
59-
"tailwindcss": "^2.0.2",
60-
"terser-webpack-plugin": "^5.1.1",
61-
"ts-jest": "^26.4.4",
62-
"ts-node": "^9.1.1",
63-
"tsconfig-paths-webpack-plugin": "^3.3.0",
64-
"typescript": "^4.1.3",
65-
"webpack": "^5.12.2",
66-
"webpack-cli": "^4.3.1",
67-
"webpack-dev-server": "^3.11.1",
68-
"webpack-merge": "^5.7.3"
48+
"eslint-plugin-prettier": "^4.0.0",
49+
"eslint-plugin-testing-library": "^4.12.0",
50+
"eslint-webpack-plugin": "^3.0.1",
51+
"fork-ts-checker-webpack-plugin": "^6.3.2",
52+
"html-webpack-plugin": "^5.3.2",
53+
"jest": "^27.1.0",
54+
"mini-css-extract-plugin": "^2.2.2",
55+
"postcss": "^8.3.6",
56+
"postcss-loader": "^6.1.1",
57+
"prettier": "^2.3.2",
58+
"solid-jest": "^0.2.0",
59+
"solid-refresh": "^0.2.2",
60+
"solid-testing-library": "^0.2.1",
61+
"style-loader": "^3.2.1",
62+
"tailwindcss": "^2.2.9",
63+
"terser-webpack-plugin": "^5.2.0",
64+
"ts-node": "^10.2.1",
65+
"tsconfig-paths-webpack-plugin": "^3.5.1",
66+
"typescript": "^4.4.2",
67+
"webpack": "^5.51.1",
68+
"webpack-cli": "^4.8.0",
69+
"webpack-dev-server": "^4.1.0",
70+
"webpack-merge": "^5.8.0"
6971
},
7072
"prettier": {
7173
"singleQuote": true
7274
},
7375
"jest": {
7476
"globals": {
75-
"__MODE__": "none",
76-
"ts-jest": {
77-
"babelConfig": true
78-
}
77+
"__MODE__": "none"
7978
},
8079
"roots": [
8180
"src"
8281
],
83-
"preset": "ts-jest",
82+
"preset": "solid-jest/preset/browser",
8483
"moduleDirectories": [
8584
"node_modules",
8685
"src"

0 commit comments

Comments
 (0)