Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2d4031d

Browse files
committedJan 28, 2025
feat(node:root,web): added the tailwindCSS configuration
1 parent f69e280 commit 2d4031d

10 files changed

+437
-2
lines changed
 

‎.prettierrc.mjs

+1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ export default {
1111
'prettier-plugin-packagejson',
1212
'prettier-plugin-sh',
1313
'prettier-plugin-sort-json',
14+
'prettier-plugin-tailwindcss',
1415
],
1516
};

‎.vscode/extensions.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"recommendations": [
3+
"bradlc.vscode-tailwindcss",
34
"davidanson.vscode-markdownlint",
45
"dbaeumer.vscode-eslint",
56
"editorconfig.editorconfig",

‎.vscode/settings.json

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"*.asset": "yaml",
2929
"*.buildreport": "yaml",
3030
"*.controller": "yaml",
31+
"*.css": "tailwindcss",
3132
"*.dwlt": "yaml",
3233
"*.exe.config": "xml",
3334
"*.index": "json",

‎eslint.config.mjs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
export { default } from '@kurone-kito/eslint-config-base';
1+
import defaultConfig from '@kurone-kito/eslint-config-base';
2+
import tailwind from 'eslint-plugin-tailwindcss';
3+
4+
export default [...defaultConfig, ...tailwind.configs['flat/recommended']];

‎nodePackages/web/package.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,13 @@
3737
"@kurone-kito/launchpad-icons-solid": "workspace:^"
3838
},
3939
"devDependencies": {
40+
"@kurone-kito/typescript-config": "^0.17.2",
41+
"autoprefixer": "^10.4.20",
4042
"cpy-cli": "^5.0.0",
41-
"rimraf": "^5.0.10"
43+
"postcss": "^8.5.1",
44+
"rimraf": "^5.0.10",
45+
"tailwindcss": "^3.4.17",
46+
"typescript": "~5.7.2"
4247
},
4348
"engines": {
4449
"node": "^18.20 || ^20.10 || >=22"

‎nodePackages/web/postcss.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default { plugins: { autoprefixer: {}, tailwindcss: {} } };

‎nodePackages/web/tailwind.config.ts

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import type { Config } from 'tailwindcss';
2+
3+
/** The Tailwind CSS configuration. */
4+
const config: Config = { content: ['./src/**/*.{html,js,jsx,ts,tsx}'] };
5+
6+
export default config;

‎nodePackages/web/tsconfig.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"compilerOptions": {
3+
"lib": ["ESNext", "DOM"],
4+
"module": "ESNext",
5+
"moduleResolution": "Bundler",
6+
"noEmit": true,
7+
"target": "ESNext"
8+
},
9+
"extends": "@kurone-kito/typescript-config/tsconfig.json",
10+
"include": ["*.config.?s"]
11+
}

‎package.json

+2
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"cspell": "^8.17.3",
6060
"eslint": "^9.19.0",
6161
"eslint-formatter-codeframe": "^7.32.1",
62+
"eslint-plugin-tailwindcss": "^3.18.0",
6263
"husky": "^9.1.7",
6364
"lint-staged": "^15.4.3",
6465
"markdownlint-cli2": "^0.17.2",
@@ -67,6 +68,7 @@
6768
"prettier-plugin-packagejson": "^2.5.8",
6869
"prettier-plugin-sh": "^0.14.0",
6970
"prettier-plugin-sort-json": "^4.1.1",
71+
"prettier-plugin-tailwindcss": "^0.6.11",
7072
"rimraf": "^5.0.10",
7173
"typescript": "~5.7.3",
7274
"typescript-eslint-language-service": "^5.0.5"
There was a problem loading the remainder of the diff.

0 commit comments

Comments
 (0)
Please sign in to comment.