Skip to content

Commit aa0318a

Browse files
committed
feat: add tailwindcss
1 parent 0dd8f4f commit aa0318a

Some content is hidden

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

42 files changed

+700
-708
lines changed

.github/actions/setup-node/action.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ name: Setup Node.js
22
description: Setup Node.js
33

44
runs:
5-
using: "composite"
6-
steps:
7-
- uses: actions/setup-node@v4
8-
name: Setup Node.js
9-
with:
10-
node-version-file: .nvmrc
11-
- name: Install dependencies
12-
run: npm i
13-
shell: bash
5+
using: "composite"
6+
steps:
7+
- uses: actions/setup-node@v4
8+
name: Setup Node.js
9+
with:
10+
node-version-file: .nvmrc
11+
- name: Install dependencies
12+
run: npm i
13+
shell: bash

.github/workflows/ci.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,25 @@ name: CI
33
on: [push]
44

55
jobs:
6-
build:
7-
name: Build
8-
runs-on: ubuntu-latest
9-
steps:
10-
- uses: actions/checkout@v4
11-
name: Checkout
12-
with:
13-
fetch-depth: 0
14-
- uses: ./.github/actions/setup-node
15-
- name: Build
16-
run: npm run build
17-
test:
18-
name: Test
19-
runs-on: ubuntu-latest
20-
steps:
21-
- uses: actions/checkout@v4
22-
name: Checkout
23-
with:
24-
fetch-depth: 0
25-
- uses: ./.github/actions/setup-node
26-
- name: Test
27-
run: npm test
6+
build:
7+
name: Build
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
name: Checkout
12+
with:
13+
fetch-depth: 0
14+
- uses: ./.github/actions/setup-node
15+
- name: Build
16+
run: npm run build
17+
test:
18+
name: Test
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
name: Checkout
23+
with:
24+
fetch-depth: 0
25+
- uses: ./.github/actions/setup-node
26+
- name: Test
27+
run: npm test

.github/workflows/release.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
name: Release
22

33
on:
4-
push:
5-
branches:
6-
- main
4+
push:
5+
branches:
6+
- main
77

88
permissions:
9-
contents: write
10-
pull-requests: write
9+
contents: write
10+
pull-requests: write
1111

1212
jobs:
13-
release:
14-
name: Release
15-
runs-on: ubuntu-latest
16-
steps:
17-
- uses: googleapis/release-please-action@v4
18-
with:
19-
release-type: node
13+
release:
14+
name: Release
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: googleapis/release-please-action@v4
18+
with:
19+
release-type: node

.lintstagedrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"*.{ts,tsx}": ["eslint --fix"],
3-
"*.{ts,tsx,css,scss,json,md}": ["prettier --write"]
2+
"*.{ts,tsx}": ["eslint --fix"],
3+
"*.{ts,tsx,css,scss,json,md}": ["prettier --write"]
44
}

.prettierrc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
2-
"useTabs": true,
3-
"tabWidth": 4,
4-
"printWidth": 120,
5-
"plugins": ["prettier-plugin-organize-imports", "prettier-plugin-packagejson"]
2+
"printWidth": 120,
3+
"plugins": ["prettier-plugin-organize-imports", "prettier-plugin-packagejson", "prettier-plugin-tailwindcss"]
64
}

CHANGELOG.md

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,63 +2,56 @@
22

33
## [2.0.5](https://github.com/thangved/react-boilerplate/compare/v2.0.4...v2.0.5) (2025-02-10)
44

5-
65
### Bug Fixes
76

8-
* **docker:** add docker image description ([b56aa91](https://github.com/thangved/react-boilerplate/commit/b56aa911d4f24cef2c0b5b5a55bff74738630207))
7+
- **docker:** add docker image description ([b56aa91](https://github.com/thangved/react-boilerplate/commit/b56aa911d4f24cef2c0b5b5a55bff74738630207))
98

109
## [2.0.4](https://github.com/thangved/react-boilerplate/compare/v2.0.3...v2.0.4) (2025-02-10)
1110

12-
1311
### Miscellaneous Chores
1412

15-
* release 2.0.4 ([f64df1b](https://github.com/thangved/react-boilerplate/commit/f64df1b0b445e7a5d4478f29a17e76671fd968e9))
13+
- release 2.0.4 ([f64df1b](https://github.com/thangved/react-boilerplate/commit/f64df1b0b445e7a5d4478f29a17e76671fd968e9))
1614

1715
## [2.0.3](https://github.com/thangved/react-boilerplate/compare/v2.0.2...v2.0.3) (2025-02-09)
1816

19-
2017
### Bug Fixes
2118

22-
* update docker ci ([e19df83](https://github.com/thangved/react-boilerplate/commit/e19df832cec668a4c83d3a531a04de5e915421d9))
19+
- update docker ci ([e19df83](https://github.com/thangved/react-boilerplate/commit/e19df832cec668a4c83d3a531a04de5e915421d9))
2320

2421
## [2.0.2](https://github.com/thangved/react-boilerplate/compare/v2.0.1...v2.0.2) (2025-02-09)
2522

26-
2723
### Bug Fixes
2824

29-
* fix docker ci ([3a91104](https://github.com/thangved/react-boilerplate/commit/3a9110410d5003a18748ff49c361d2c9b169abce))
25+
- fix docker ci ([3a91104](https://github.com/thangved/react-boilerplate/commit/3a9110410d5003a18748ff49c361d2c9b169abce))
3026

3127
## [2.0.1](https://github.com/thangved/react-boilerplate/compare/v2.0.0...v2.0.1) (2025-02-09)
3228

33-
3429
### Bug Fixes
3530

36-
* **docker:** docker issue with root user ([7e8fbf3](https://github.com/thangved/react-boilerplate/commit/7e8fbf3ee4a8df04e366e211c0a5cb4cfdd00edb))
37-
* **docker:** use COPY instead ADD for local resources ([a8b542b](https://github.com/thangved/react-boilerplate/commit/a8b542ba46f9e740f15325302c52a0dacbe18267))
38-
* **logical:** use ?? instead || ([e275c1f](https://github.com/thangved/react-boilerplate/commit/e275c1f96a6e6d68e4ac1205918511f41b47966f))
31+
- **docker:** docker issue with root user ([7e8fbf3](https://github.com/thangved/react-boilerplate/commit/7e8fbf3ee4a8df04e366e211c0a5cb4cfdd00edb))
32+
- **docker:** use COPY instead ADD for local resources ([a8b542b](https://github.com/thangved/react-boilerplate/commit/a8b542ba46f9e740f15325302c52a0dacbe18267))
33+
- **logical:** use ?? instead || ([e275c1f](https://github.com/thangved/react-boilerplate/commit/e275c1f96a6e6d68e4ac1205918511f41b47966f))
3934

4035
## [2.0.0](https://github.com/thangved/react-boilerplate/compare/v1.1.0...v2.0.0) (2025-02-09)
4136

42-
4337
### ⚠ BREAKING CHANGES
4438

45-
* change types name
46-
* update service interfaces
47-
* change models to types and add BaseInput
39+
- change types name
40+
- update service interfaces
41+
- change models to types and add BaseInput
4842

4943
### Features
5044

51-
* add docker image ([ab4021d](https://github.com/thangved/react-boilerplate/commit/ab4021daa1fd622755a09019706750e164c57217))
52-
* change models to types and add BaseInput ([d361b02](https://github.com/thangved/react-boilerplate/commit/d361b022b867e93fb308866303c6c342d11522c5))
53-
* change types name ([f311c6e](https://github.com/thangved/react-boilerplate/commit/f311c6e0aa7ba084fdee415cd5af4a6240739997))
54-
* import entry ([fe6a3f0](https://github.com/thangved/react-boilerplate/commit/fe6a3f03f93295dcf4fdef022ee521f6cb79409e))
55-
* update default logo ([1a43cfc](https://github.com/thangved/react-boilerplate/commit/1a43cfce460ad8c84ec7ad258d238336976f6372))
56-
* update service interfaces ([3f3858e](https://github.com/thangved/react-boilerplate/commit/3f3858e643d03854c30c21c97ad2466eab428d43))
57-
45+
- add docker image ([ab4021d](https://github.com/thangved/react-boilerplate/commit/ab4021daa1fd622755a09019706750e164c57217))
46+
- change models to types and add BaseInput ([d361b02](https://github.com/thangved/react-boilerplate/commit/d361b022b867e93fb308866303c6c342d11522c5))
47+
- change types name ([f311c6e](https://github.com/thangved/react-boilerplate/commit/f311c6e0aa7ba084fdee415cd5af4a6240739997))
48+
- import entry ([fe6a3f0](https://github.com/thangved/react-boilerplate/commit/fe6a3f03f93295dcf4fdef022ee521f6cb79409e))
49+
- update default logo ([1a43cfc](https://github.com/thangved/react-boilerplate/commit/1a43cfce460ad8c84ec7ad258d238336976f6372))
50+
- update service interfaces ([3f3858e](https://github.com/thangved/react-boilerplate/commit/3f3858e643d03854c30c21c97ad2466eab428d43))
5851

5952
### Bug Fixes
6053

61-
* rename logo component ([9f39568](https://github.com/thangved/react-boilerplate/commit/9f39568fd71d65698afad66e1cfb8aace7516853))
54+
- rename logo component ([9f39568](https://github.com/thangved/react-boilerplate/commit/9f39568fd71d65698afad66e1cfb8aace7516853))
6255

6356
## [1.1.0](https://github.com/thangved/react-boilerplate/compare/v1.0.7...v1.1.0) (2024-12-17)
6457

compose.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
services:
2-
web:
3-
build:
4-
context: .
5-
dockerfile: Dockerfile
6-
image: ghrc.io/thangved/react-boilerplate
7-
ports:
8-
- 8888:80
9-
api:
10-
image: ghrc.io/thangved/express0
2+
web:
3+
build:
4+
context: .
5+
dockerfile: Dockerfile
6+
image: ghrc.io/thangved/react-boilerplate
7+
ports:
8+
- 8888:80
9+
api:
10+
image: ghrc.io/thangved/express0

eslint.config.mjs

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -10,38 +10,38 @@ import { fileURLToPath } from "node:url";
1010
const __filename = fileURLToPath(import.meta.url);
1111
const __dirname = path.dirname(__filename);
1212
const compat = new FlatCompat({
13-
baseDirectory: __dirname,
14-
recommendedConfig: js.configs.recommended,
15-
allConfig: js.configs.all,
13+
baseDirectory: __dirname,
14+
recommendedConfig: js.configs.recommended,
15+
allConfig: js.configs.all,
1616
});
1717

1818
export default [
19-
{
20-
ignores: ["**/dist", "**/.eslintrc.cjs"],
21-
},
22-
...fixupConfigRules(
23-
compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:react-hooks/recommended"),
24-
),
25-
{
26-
plugins: {
27-
"react-refresh": reactRefresh,
28-
},
19+
{
20+
ignores: ["**/dist", "**/.eslintrc.cjs"],
21+
},
22+
...fixupConfigRules(
23+
compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:react-hooks/recommended"),
24+
),
25+
{
26+
plugins: {
27+
"react-refresh": reactRefresh,
28+
},
2929

30-
languageOptions: {
31-
globals: {
32-
...globals.browser,
33-
},
30+
languageOptions: {
31+
globals: {
32+
...globals.browser,
33+
},
3434

35-
parser: tsParser,
36-
},
35+
parser: tsParser,
36+
},
3737

38-
rules: {
39-
"react-refresh/only-export-components": [
40-
"warn",
41-
{
42-
allowConstantExport: true,
43-
},
44-
],
45-
},
46-
},
38+
rules: {
39+
"react-refresh/only-export-components": [
40+
"warn",
41+
{
42+
allowConstantExport: true,
43+
},
44+
],
45+
},
46+
},
4747
];

0 commit comments

Comments
 (0)