Skip to content

Commit

Permalink
Added tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
mpulte committed Jan 28, 2024
1 parent 908915c commit c990ff9
Show file tree
Hide file tree
Showing 22 changed files with 802 additions and 107 deletions.
17 changes: 8 additions & 9 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,8 @@
"browser": true,
"es2020": true
},
"ignorePatterns": ["src/main/deploy", "node_modules", "dist", "vite.config.ts"],
"extends": [
"eslint:recommended",
"prettier",
"plugin:import/typescript",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked"
],
"ignorePatterns": ["src/main/deploy", "node_modules", "dist"],
"extends": ["eslint:recommended", "prettier"],
"plugins": ["import", "prettier", "@typescript-eslint"],
"parserOptions": {
"ecmaVersion": "latest",
Expand All @@ -26,6 +19,12 @@
"overrides": [
{
"files": ["*.ts"],
"extends": [
"plugin:import/typescript",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": true
Expand Down
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"richardwillis.vscode-spotless-gradle",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"runem.lit-plugin"
"runem.lit-plugin",
"bradlc.vscode-tailwindcss"
]
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
"editor.formatOnSave": true,
"files.eol": "\n",
"java.format.enabled": false,
"files.associations": {
"*.css": "tailwindcss"
},
"[java]": {
"files.trimTrailingWhitespace": false,
"spotlessGradle.format.enable": true,
Expand Down
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ task npmRunLintCi(type: NpmTask) {
}

task npmRunBuild(type: NpmTask) {
dependsOn npmRunLint
dependsOn npmInstall
args = ['run', 'build:deploy']
inputs.dir fileTree('src/main/ts') {
exclude '**/dist/**', '**/node_modules/.vite/**'
Expand All @@ -243,6 +243,8 @@ task prettierApply(type: NpxTask) {
outputs.upToDateWhen { true }
}

compileJava.dependsOn(prettierApply)

task prettierCheck(type: NpxTask) {
dependsOn(npmInstall)
command = 'prettier'
Expand Down
Loading

0 comments on commit c990ff9

Please sign in to comment.