Skip to content

Commit 6930488

Browse files
release(other): 🎯 Webpack + React
Webpack project setup with combo React, SCSS, Tailwindcss and Dynamic Environment support
0 parents  commit 6930488

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+3043
-0
lines changed

.DS_Store

8 KB
Binary file not shown.

.commitlintrc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"extends": [
3+
"@commitlint/config-conventional"
4+
],
5+
"rules": {
6+
"type-enum": [
7+
2,
8+
"always",
9+
[
10+
"feat",
11+
"style",
12+
"test",
13+
"fix",
14+
"docs",
15+
"release",
16+
"update",
17+
"perf",
18+
"chore"
19+
]
20+
]
21+
}
22+
}

.czrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"path": "git-cz",
3+
"config": {
4+
"git-cz": {
5+
"disableEmoji": true
6+
}
7+
}
8+
}

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[**]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 2
7+
trim_trailing_whitespace = true
8+
end_of_line = lf
9+
insert_final_newline = true

.eslintrc

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": ["webpack.config.js", "env/**/*", "config/**/*"],
4+
"extends": [
5+
"airbnb-typescript",
6+
"airbnb/hooks",
7+
"plugin:@typescript-eslint/recommended",
8+
"plugin:jest/recommended",
9+
"plugin:prettier/recommended",
10+
"eslint:recommended",
11+
"plugin:import/recommended",
12+
"plugin:import/typescript",
13+
"plugin:import/errors",
14+
"plugin:import/warnings",
15+
"prettier"
16+
],
17+
"plugins": ["react", "@typescript-eslint", "jest"],
18+
"env": {
19+
"browser": true,
20+
"es6": true,
21+
"jest": true
22+
},
23+
"globals": {
24+
"Atomics": "readonly",
25+
"SharedArrayBuffer": "readonly"
26+
},
27+
"parser": "@typescript-eslint/parser",
28+
"parserOptions": {
29+
"ecmaFeatures": {
30+
"jsx": true,
31+
"tsx": true
32+
},
33+
"ecmaVersion": "latest",
34+
"sourceType": "module",
35+
"project": "./tsconfig.json"
36+
},
37+
"rules": {
38+
"linebreak-style": "off",
39+
"prettier/prettier": [
40+
"error",
41+
{
42+
"endOfLine": "auto"
43+
}
44+
]
45+
},
46+
"settings": {
47+
"import/resolver": {
48+
"eslint-import-resolver-custom-alias": {
49+
"alias": {
50+
"@": "./",
51+
"js": "./src",
52+
"assets": "./assets"
53+
},
54+
"extensions": [".js", ".jsx", ".vue", ".ts", ".tsx"]
55+
}
56+
}
57+
}
58+
}

.git-cz.json

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
{
2+
"list": [
3+
"feat",
4+
"style",
5+
"test",
6+
"fix",
7+
"docs",
8+
"release",
9+
"update",
10+
"perf",
11+
"chore"
12+
],
13+
"questions": ["type", "scope", "subject", "body", "breaking", "issues"],
14+
"types": {
15+
"chore": {
16+
"description": "If you don't know the type will select",
17+
"emoji": "🤷",
18+
"value": "chore"
19+
},
20+
"perf": {
21+
"description": "Improve perfomance",
22+
"emoji": "⚡️",
23+
"value": "perf"
24+
},
25+
"release": {
26+
"description": "Create a release commit",
27+
"emoji": "🎯",
28+
"value": "release"
29+
},
30+
"docs": {
31+
"description": " Create / change some document files (ex: *.docs, *.md)",
32+
"emoji": "🗒",
33+
"value": " docs"
34+
},
35+
"test": {
36+
"description": "Add / change a test",
37+
"emoji": "🔬",
38+
"value": "test"
39+
},
40+
"style": {
41+
"description": "Only style for layout",
42+
"emoji": "🎨",
43+
"value": "style"
44+
},
45+
"fix": {
46+
"description": "Fix a bug",
47+
"emoji": "🐞",
48+
"value": "fix"
49+
},
50+
"feat": {
51+
"description": "Create a new feature",
52+
"emoji": "🧩",
53+
"value": "feat"
54+
},
55+
"update": {
56+
"description": "Update but not improve performance",
57+
"emoji": "🧩",
58+
"value": "update"
59+
}
60+
},
61+
"scopes": [
62+
"page",
63+
"comp-page",
64+
"comp-glob",
65+
"lib",
66+
"util",
67+
"enum",
68+
"define",
69+
"server",
70+
"other"
71+
],
72+
"messages": {
73+
"type": "Select the type of committing:",
74+
"customScope": "Select the scope this component affects:",
75+
"subject": "Title:\n",
76+
"body": "Description:\n",
77+
"breaking": "List any breaking changes:\n",
78+
"footer": "Issues this commit closes, e.g #123:",
79+
"confirmCommit": "Ready to commit ?\n"
80+
}
81+
}

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package-lock.json
2+
node_modules
3+
dist
4+
config/env/.env
5+
config/env/env.json

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx commitlint --edit $1

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
# npm run pre-commit

.husky/prepare-commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
exec < /dev/tty && node_modules/.bin/cz --hook || true

0 commit comments

Comments
 (0)