@qlover/create-app 0.3.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +96 -0
- package/configs/_common/.github/workflows/general-check.yml +17 -29
- package/configs/_common/.github/workflows/{release.yml.template → release.yml} +16 -51
- package/package.json +3 -3
- package/templates/pack-app/fe-config.json +30 -1
- package/templates/pack-app/package.json +45 -32
- package/templates/pack-app/tsconfig.test.json +1 -1
- package/templates/react-app/config/Identifier.I18n.ts +878 -0
- package/templates/react-app/config/app.router.json +7 -7
- package/templates/react-app/config/common.ts +7 -4
- package/templates/react-app/config/theme.json +7 -88
- package/templates/react-app/package.json +9 -4
- package/templates/react-app/postcss.config.js +1 -2
- package/templates/react-app/public/locales/en/common.json +118 -1
- package/templates/react-app/public/locales/zh/common.json +118 -1
- package/templates/react-app/src/App.tsx +14 -2
- package/templates/react-app/src/base/cases/RequestLogger.ts +3 -4
- package/templates/react-app/src/base/cases/RequestStatusCatcher.ts +3 -2
- package/templates/react-app/src/base/services/I18nService.ts +31 -3
- package/templates/react-app/src/base/services/ProcesserService.ts +3 -2
- package/templates/react-app/src/core/IOC.ts +15 -9
- package/templates/react-app/src/core/bootstrap.ts +42 -53
- package/templates/react-app/src/core/bootstraps/PrintBootstrap.ts +14 -0
- package/templates/react-app/src/core/bootstraps/index.ts +36 -7
- package/templates/react-app/src/core/globals.ts +4 -6
- package/templates/react-app/src/core/registers/RegisterApi.ts +2 -5
- package/templates/react-app/src/core/registers/RegisterCommon.ts +38 -28
- package/templates/react-app/src/core/registers/RegisterControllers.ts +5 -10
- package/templates/react-app/src/core/registers/RegisterGlobals.ts +15 -14
- package/templates/react-app/src/core/registers/index.ts +27 -12
- package/templates/react-app/src/main.tsx +1 -1
- package/templates/react-app/src/pages/404.tsx +1 -1
- package/templates/react-app/src/pages/500.tsx +1 -1
- package/templates/react-app/src/pages/auth/Login.tsx +128 -36
- package/templates/react-app/src/pages/base/About.tsx +5 -2
- package/templates/react-app/src/pages/base/ErrorIdentifier.tsx +38 -19
- package/templates/react-app/src/pages/base/Executor.tsx +447 -29
- package/templates/react-app/src/pages/base/Home.tsx +99 -93
- package/templates/react-app/src/pages/base/JSONStorage.tsx +47 -38
- package/templates/react-app/src/pages/base/Layout.tsx +5 -2
- package/templates/react-app/src/pages/base/Request.tsx +90 -208
- package/templates/react-app/src/pages/base/components/BaseHeader.tsx +13 -5
- package/templates/react-app/src/styles/css/page.css +11 -0
- package/templates/react-app/src/styles/css/tailwind.css +5 -0
- package/templates/react-app/src/styles/css/themes/_default.css +200 -0
- package/templates/react-app/src/styles/css/themes/dark.css +154 -0
- package/templates/react-app/src/styles/css/themes/index.css +3 -0
- package/templates/react-app/src/styles/css/themes/pink.css +160 -0
- package/templates/react-app/src/uikit/components/LanguageSwitcher.tsx +56 -0
- package/templates/react-app/src/uikit/components/Loading.tsx +27 -21
- package/templates/react-app/src/uikit/components/ThemeSwitcher.tsx +63 -13
- package/templates/react-app/src/uikit/contexts/BaseRouteContext.ts +1 -1
- package/templates/react-app/src/uikit/controllers/RouterController.ts +3 -3
- package/templates/react-app/src/uikit/controllers/UserController.ts +1 -1
- package/templates/react-app/tailwind.config.js +1 -15
- package/templates/react-app/vite.config.ts +9 -3
- package/templates/react-app/lib/tailwind/root10px.js +0 -178
- package/templates/react-app/lib/tailwind/theme-generator.js +0 -238
- package/templates/react-app/public/locales/en/about.json +0 -3
- package/templates/react-app/public/locales/en/executor.json +0 -6
- package/templates/react-app/public/locales/en/home.json +0 -10
- package/templates/react-app/public/locales/en/jsonStorage.json +0 -11
- package/templates/react-app/public/locales/en/login.json +0 -7
- package/templates/react-app/public/locales/en/request.json +0 -15
- package/templates/react-app/public/locales/zh/about.json +0 -3
- package/templates/react-app/public/locales/zh/executor.json +0 -7
- package/templates/react-app/public/locales/zh/home.json +0 -10
- package/templates/react-app/public/locales/zh/jsonStorage.json +0 -11
- package/templates/react-app/public/locales/zh/login.json +0 -8
- package/templates/react-app/public/locales/zh/request.json +0 -15
- package/templates/react-app/src/base/port/InversifyIocInterface.ts +0 -9
- package/templates/react-app/src/uikit/styles/css/page.css +0 -3
- package/templates/react-app/src/uikit/styles/css/tailwind.css +0 -3
- /package/templates/react-app/config/{ErrorIdentifier.ts → Identifier.Error.ts} +0 -0
- /package/templates/react-app/src/{uikit/styles → styles}/css/index.css +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,101 @@
|
|
|
1
1
|
# @qlover/create-app
|
|
2
2
|
|
|
3
|
+
## 0.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
#### ✨ Features
|
|
8
|
+
|
|
9
|
+
- **LanguageSwitcher:** add language switcher component to enhance localization ([72edba8](https://github.com/qlover/fe-base/commit/72edba8a71dabba00608fceafc355cf4bc2dfd63)) ([#411](https://github.com/qlover/fe-base/pull/411))
|
|
10
|
+
|
|
11
|
+
- Introduced a new LanguageSwitcher component that allows users to change the application language.
|
|
12
|
+
- Integrated the component into BaseHeader for improved accessibility.
|
|
13
|
+
- Utilized Ant Design's Select component for a user-friendly interface.
|
|
14
|
+
- Implemented language change functionality that updates the URL and i18n configuration accordingly.
|
|
15
|
+
|
|
16
|
+
- **Login:** integrate Ant Design components for enhanced user experience ([d380157](https://github.com/qlover/fe-base/commit/d380157d3360ad5b9e96d0e3edeb2639a3a6ba9f)) ([#408](https://github.com/qlover/fe-base/pull/408))
|
|
17
|
+
|
|
18
|
+
- Added Ant Design library to the project dependencies.
|
|
19
|
+
- Refactored the Login component to utilize Ant Design's Form, Input, and Button components, improving the UI and UX.
|
|
20
|
+
- Implemented a structured login form with validation and Google sign-in option.
|
|
21
|
+
- Enhanced layout with a brand section and feature highlights for better engagement.
|
|
22
|
+
|
|
23
|
+
- update React app with Tailwind CSS integration and Ant Design enhancements ([eff0ae2](https://github.com/qlover/fe-base/commit/eff0ae25eb2f831b2344a9d4307495377dce647f)) ([#408](https://github.com/qlover/fe-base/pull/408))
|
|
24
|
+
|
|
25
|
+
- Added Tailwind CSS and its PostCSS and Vite plugins to the project dependencies.
|
|
26
|
+
- Refactored the PostCSS configuration to utilize the new Tailwind CSS setup.
|
|
27
|
+
- Updated the Tailwind configuration to simplify theme management.
|
|
28
|
+
- Enhanced the Login component with Ant Design's Form and Input components, improving the UI.
|
|
29
|
+
- Introduced a new CSS structure for theming, including default, dark, and pink themes.
|
|
30
|
+
- Removed outdated Tailwind CSS files from the uikit directory to streamline styles.
|
|
31
|
+
|
|
32
|
+
- enhance React app UI with Ant Design components and improve theming ([008e69a](https://github.com/qlover/fe-base/commit/008e69a89ca0ed0fe23d60c2b368fbd88bb3f15c)) ([#408](https://github.com/qlover/fe-base/pull/408))
|
|
33
|
+
|
|
34
|
+
- Replaced various UI elements with Ant Design components for a consistent look and feel.
|
|
35
|
+
- Updated ErrorIdentifier and Executor components to utilize Ant Design's Button and layout features.
|
|
36
|
+
- Refactored styles to leverage CSS variables for better theming across components.
|
|
37
|
+
- Added new task management features in the Executor component, including task creation and status tracking.
|
|
38
|
+
- Improved overall layout and responsiveness of pages with enhanced CSS styling.
|
|
39
|
+
|
|
40
|
+
- enhance localization and error handling in React app ([f8a5398](https://github.com/qlover/fe-base/commit/f8a5398084cde69b967242a1db89d511a4b2b79e)) ([#408](https://github.com/qlover/fe-base/pull/408))
|
|
41
|
+
feat: enhance localization and error handling in React app
|
|
42
|
+
|
|
43
|
+
- Introduced new localization keys for various pages including JSONStorage, Request, and Executor.
|
|
44
|
+
- Updated components to utilize new localization keys for improved internationalization support.
|
|
45
|
+
- Removed outdated error identifiers and added new ones for better clarity and consistency.
|
|
46
|
+
- Enhanced the Home, About, and ErrorIdentifier components with improved localization.
|
|
47
|
+
- Streamlined theme switcher labels to utilize localization keys for better user experience.
|
|
48
|
+
|
|
49
|
+
#### ♻️ Refactors
|
|
50
|
+
|
|
51
|
+
- **Bootstrap:** update dependencies and refactor core components ([9aeff78](https://github.com/qlover/fe-base/commit/9aeff78209925a9e3e6e4cdf1e5a7cbbcecb07f8)) ([#411](https://github.com/qlover/fe-base/pull/411))
|
|
52
|
+
|
|
53
|
+
- Upgraded @qlover/corekit-bridge to version ^1.0.3 in package.json.
|
|
54
|
+
- Refactored startup function to use 'root' instead of 'window' for better compatibility.
|
|
55
|
+
- Removed InversifyIocInterface.ts as it was no longer needed.
|
|
56
|
+
- Enhanced I18nService to manage loading state and language changes more effectively.
|
|
57
|
+
- Introduced BootstrapsRegistry for improved bootstrap management and organization.
|
|
58
|
+
- Updated various register classes to align with new IOC structure and improve dependency injection.
|
|
59
|
+
- Added printBootstrap for logging successful bootstrap initialization.
|
|
60
|
+
|
|
61
|
+
- **Home, JSONStorage, Layout, BaseHeader:** enhance UI with Ant Design components and improve theming ([8023e01](https://github.com/qlover/fe-base/commit/8023e0179729859a1406f5dabf013f529c1a2b58)) ([#408](https://github.com/qlover/fe-base/pull/408))
|
|
62
|
+
|
|
63
|
+
- Replaced button elements with Ant Design's Button component for a consistent UI experience.
|
|
64
|
+
- Updated layout and background colors to utilize CSS variables for better theming.
|
|
65
|
+
- Refactored navigation items in Home component for improved structure and readability.
|
|
66
|
+
- Enhanced JSONStorage component styling and layout for better user interaction.
|
|
67
|
+
- Improved BaseHeader styling with new background and border colors for a modern look.
|
|
68
|
+
|
|
69
|
+
- streamline UI components and enhance theming in React app ([9baf49b](https://github.com/qlover/fe-base/commit/9baf49b60b58f3c3e614f2bf473853a50abeff8e)) ([#408](https://github.com/qlover/fe-base/pull/408))
|
|
70
|
+
|
|
71
|
+
- Consolidated background and text color styles across various components to utilize CSS variables for improved theming.
|
|
72
|
+
- Updated 404 and 500 error pages to align with new color schemes.
|
|
73
|
+
- Refactored Login, About, and Executor components to enhance layout and responsiveness.
|
|
74
|
+
- Improved overall consistency in UI by replacing hardcoded colors with theme variables.
|
|
75
|
+
- Enhanced the Home and JSONStorage components for better user experience and visual appeal.
|
|
76
|
+
|
|
77
|
+
- update localization and error handling in React app ([b5617a1](https://github.com/qlover/fe-base/commit/b5617a1e04770352d92a840a59728a57955475fe)) ([#408](https://github.com/qlover/fe-base/pull/408))
|
|
78
|
+
|
|
79
|
+
- Renamed error identifier files for clarity and consistency.
|
|
80
|
+
- Introduced new localization identifiers for error messages and page content.
|
|
81
|
+
- Updated configuration to reflect new file paths for error handling.
|
|
82
|
+
- Removed outdated localization files to streamline the project structure.
|
|
83
|
+
- Enhanced the Home and About components with improved localization support.
|
|
84
|
+
|
|
85
|
+
- **Loading:** update loading component with animated bouncing dots ([83ede4b](https://github.com/qlover/fe-base/commit/83ede4b644a01843dd64e2d3e5254730f115d1ec)) ([#408](https://github.com/qlover/fe-base/pull/408))
|
|
86
|
+
|
|
87
|
+
- Replaced the SVG spinner with a new loading animation using bouncing dots for improved visual appeal.
|
|
88
|
+
- Utilized the clsx library for conditional class management, enhancing readability and maintainability.
|
|
89
|
+
- Adjusted styles to support dark mode and added backdrop blur for fullscreen loading state.
|
|
90
|
+
|
|
91
|
+
## 0.3.2
|
|
92
|
+
|
|
93
|
+
### Patch Changes
|
|
94
|
+
|
|
95
|
+
#### 🐞 Bug Fixes
|
|
96
|
+
|
|
97
|
+
- **ColorFormatter.test:** remove unnecessary console.info call from test ([6f58880](https://github.com/qlover/fe-base/commit/6f588806c1db82042aaf2f9ebfa29846397e254c)) ([#389](https://github.com/qlover/fe-base/pull/389))
|
|
98
|
+
|
|
3
99
|
## 0.3.1
|
|
4
100
|
|
|
5
101
|
## 0.3.0
|
|
@@ -8,46 +8,34 @@ on:
|
|
|
8
8
|
|
|
9
9
|
jobs:
|
|
10
10
|
check-code:
|
|
11
|
+
# if not CI-Release label, then run check
|
|
11
12
|
if: |
|
|
12
|
-
!contains(github.event.pull_request.
|
|
13
|
-
!contains(join(github.event.pull_request.commits.*.message, ' '), 'chore(tag):')
|
|
13
|
+
!contains(github.event.pull_request.labels.*.name, 'CI-Release')
|
|
14
14
|
runs-on: ubuntu-latest
|
|
15
15
|
|
|
16
16
|
steps:
|
|
17
17
|
# - name: Print GitHub Event Information
|
|
18
|
-
# run: echo "${{ toJson(github.event) }}" > event.json
|
|
18
|
+
# run: echo "${{ toJson(github.event.pull_request) }}" > event.json
|
|
19
19
|
- name: Checkout repository
|
|
20
20
|
uses: actions/checkout@v3
|
|
21
21
|
with:
|
|
22
22
|
fetch-depth: 0
|
|
23
23
|
|
|
24
24
|
- name: Install Node.js
|
|
25
|
-
uses: actions/setup-node@
|
|
25
|
+
uses: actions/setup-node@v4
|
|
26
26
|
with:
|
|
27
27
|
node-version: '18.20.0'
|
|
28
|
-
|
|
29
|
-
-
|
|
28
|
+
- run: npm install -g pnpm
|
|
29
|
+
- run: pnpm install --frozen-lockfile
|
|
30
|
+
- run: pnpm lint
|
|
31
|
+
- run: pnpm test
|
|
32
|
+
# - run: pnpm nx:build --base=origin/${{ github.base_ref }} --head=HEAD
|
|
33
|
+
- run: pnpm build
|
|
34
|
+
|
|
35
|
+
- name: Check packages
|
|
30
36
|
run: |
|
|
31
|
-
|
|
32
|
-
pnpm -
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
- name: Pnpm Lint
|
|
38
|
-
run: pnpm lint
|
|
39
|
-
|
|
40
|
-
- name: Pnpm Test
|
|
41
|
-
run: pnpm test
|
|
42
|
-
|
|
43
|
-
- name: Pnpm Build
|
|
44
|
-
run: pnpm build
|
|
45
|
-
|
|
46
|
-
# check packages
|
|
47
|
-
# - name: Check packages
|
|
48
|
-
# run: |
|
|
49
|
-
# git fetch origin ${{ github.base_ref }}
|
|
50
|
-
# npm run check-packages -- -r ${{ github.repository }} -b ${{ github.base_ref }} -n ${{ github.event.pull_request.number }}
|
|
51
|
-
# env:
|
|
52
|
-
# GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
|
53
|
-
# PAT_TOKEN: ${{ secrets.PAT_TOKEN }}
|
|
37
|
+
git fetch origin ${{ github.base_ref }}
|
|
38
|
+
pnpm run check-packages -V -r ${{ github.repository }} -b ${{ github.base_ref }} -n ${{ github.event.pull_request.number }}
|
|
39
|
+
env:
|
|
40
|
+
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
|
41
|
+
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
name: Release
|
|
1
|
+
name: Release sub packages
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
workflow_dispatch:
|
|
@@ -8,14 +8,12 @@ on:
|
|
|
8
8
|
types:
|
|
9
9
|
- closed
|
|
10
10
|
paths:
|
|
11
|
-
-
|
|
11
|
+
- packages/**
|
|
12
12
|
|
|
13
13
|
jobs:
|
|
14
|
-
release-
|
|
15
|
-
# only run when PR merged and has changes:[TPL:projectName] and CI-Release labels
|
|
14
|
+
release-pull-request:
|
|
16
15
|
if: |
|
|
17
16
|
github.event.pull_request.merged == true &&
|
|
18
|
-
contains(github.event.pull_request.labels.*.name, 'changes:[TPL:projectName]') &&
|
|
19
17
|
!contains(github.event.pull_request.labels.*.name, 'CI-Release')
|
|
20
18
|
runs-on: ubuntu-latest
|
|
21
19
|
|
|
@@ -35,35 +33,20 @@ jobs:
|
|
|
35
33
|
with:
|
|
36
34
|
node-version: '18.20.0'
|
|
37
35
|
|
|
38
|
-
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
- name: Pnpm Install dependencies
|
|
44
|
-
run: pnpm install
|
|
45
|
-
|
|
46
|
-
- name: Pnpm Lint
|
|
47
|
-
run: pnpm lint
|
|
48
|
-
|
|
49
|
-
- name: Pnpm Test
|
|
50
|
-
run: pnpm test
|
|
36
|
+
- run: npm install -g pnpm
|
|
37
|
+
- run: pnpm install --frozen-lockfile
|
|
38
|
+
- run: pnpm lint
|
|
39
|
+
- run: pnpm test
|
|
40
|
+
- run: pnpm build
|
|
51
41
|
|
|
52
|
-
- name:
|
|
53
|
-
run:
|
|
54
|
-
|
|
55
|
-
- name: Create release PR
|
|
56
|
-
run: npm run release-pr:[TPL:projectName]
|
|
42
|
+
- name: Release Pull Request
|
|
43
|
+
run: node packages/fe-release/dist/cli.js -V -P --githubPR.push-change-labels --workspaces.change-labels=${{join(github.event.pull_request.labels.*.name,',')}} --changelog.ignore-non-updated-packages
|
|
57
44
|
env:
|
|
58
45
|
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN}}
|
|
59
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN}}
|
|
60
|
-
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}
|
|
61
46
|
|
|
62
47
|
release:
|
|
63
|
-
# only run when PR merged and has changes:[TPL:projectName] and CI-Release labels
|
|
64
48
|
if: |
|
|
65
49
|
github.event.pull_request.merged == true &&
|
|
66
|
-
contains(github.event.pull_request.labels.*.name, 'changes:[TPL:projectName]') &&
|
|
67
50
|
contains(github.event.pull_request.labels.*.name, 'CI-Release')
|
|
68
51
|
|
|
69
52
|
runs-on: ubuntu-latest
|
|
@@ -85,32 +68,14 @@ jobs:
|
|
|
85
68
|
with:
|
|
86
69
|
node-version: '18.20.0'
|
|
87
70
|
|
|
88
|
-
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
- name: Pnpm Install dependencies
|
|
94
|
-
run: pnpm install
|
|
95
|
-
|
|
96
|
-
- name: Pnpm Lint
|
|
97
|
-
run: pnpm lint
|
|
98
|
-
|
|
99
|
-
- name: Pnpm Test
|
|
100
|
-
run: pnpm test
|
|
101
|
-
|
|
102
|
-
- name: Pnpm Build
|
|
103
|
-
run: pnpm build
|
|
71
|
+
- run: npm install -g pnpm
|
|
72
|
+
- run: pnpm install --frozen-lockfile
|
|
73
|
+
- run: pnpm lint
|
|
74
|
+
- run: pnpm test
|
|
75
|
+
- run: pnpm build
|
|
104
76
|
|
|
105
77
|
- name: Create tag and publish
|
|
106
|
-
run:
|
|
78
|
+
run: node packages/fe-release/dist/cli.js -V --changelog.skip-changeset --workspaces.change-labels=${{join(github.event.pull_request.labels.*.name,',')}}
|
|
107
79
|
env:
|
|
108
80
|
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN}}
|
|
109
81
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN}}
|
|
110
|
-
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}
|
|
111
|
-
|
|
112
|
-
- name: Debug Git status
|
|
113
|
-
run: |
|
|
114
|
-
git status
|
|
115
|
-
git branch
|
|
116
|
-
git rev-parse --abbrev-ref HEAD
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qlover/create-app",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"ora": "^8.1.1",
|
|
53
53
|
"lodash": "^4.17.21",
|
|
54
54
|
"@qlover/logger": "0.1.1",
|
|
55
|
-
"@qlover/
|
|
56
|
-
"@qlover/
|
|
55
|
+
"@qlover/scripts-context": "0.2.1",
|
|
56
|
+
"@qlover/fe-corekit": "1.4.0"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"build": "rollup -c",
|
|
@@ -1,6 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"protectedBranches": ["master", "develop"],
|
|
3
3
|
"release": {
|
|
4
|
-
"
|
|
4
|
+
"githubPR": {
|
|
5
|
+
"commitArgs": ["--no-verify"],
|
|
6
|
+
"pushChangedLabels": true
|
|
7
|
+
},
|
|
8
|
+
"changelog": {
|
|
9
|
+
"gitChangelogOptions": {
|
|
10
|
+
"types": [
|
|
11
|
+
{ "type": "feat", "section": "#### ✨ Features", "hidden": false },
|
|
12
|
+
{ "type": "fix", "section": "#### 🐞 Bug Fixes", "hidden": false },
|
|
13
|
+
{ "type": "chore", "section": "#### 🔧 Chores", "hidden": true },
|
|
14
|
+
{
|
|
15
|
+
"type": "docs",
|
|
16
|
+
"section": "#### 📝 Documentation",
|
|
17
|
+
"hidden": false
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"type": "refactor",
|
|
21
|
+
"section": "#### ♻️ Refactors",
|
|
22
|
+
"hidden": false
|
|
23
|
+
},
|
|
24
|
+
{ "type": "perf", "section": "#### 🚀 Performance", "hidden": false },
|
|
25
|
+
{ "type": "test", "section": "#### 🚨 Tests", "hidden": true },
|
|
26
|
+
{ "type": "style", "section": "#### 🎨 Styles", "hidden": true },
|
|
27
|
+
{ "type": "ci", "section": "#### 🔄 CI", "hidden": true },
|
|
28
|
+
{ "type": "build", "section": "#### 🚧 Build", "hidden": false },
|
|
29
|
+
{ "type": "revert", "section": "#### ⏪ Reverts", "hidden": true },
|
|
30
|
+
{ "type": "release", "section": "#### 🔖 Releases", "hidden": true }
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
}
|
|
5
34
|
}
|
|
6
35
|
}
|
|
@@ -1,73 +1,86 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pack-app",
|
|
3
3
|
"version": "0.0.0",
|
|
4
|
-
"description": "A
|
|
4
|
+
"description": "A base frontwork",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": true,
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "github",
|
|
9
|
-
"url": "
|
|
9
|
+
"url": ""
|
|
10
10
|
},
|
|
11
|
-
"homepage": "
|
|
11
|
+
"homepage": "",
|
|
12
|
+
"files": [],
|
|
12
13
|
"scripts": {
|
|
13
|
-
"build": "pnpm -r run build",
|
|
14
|
+
"build": "pnpm -r --workspace-concurrency=4 run build && pnpm rebuild",
|
|
15
|
+
"release": "pnpm --filter @qlover/fe-release release",
|
|
16
|
+
"nx:build": "nx affected:build",
|
|
14
17
|
"prettier": "prettier --ignore-path .prettierignore **/*.{js,ts,json,cjs,mjs} --write",
|
|
15
18
|
"lint": "eslint . --fix",
|
|
16
|
-
"test": "
|
|
19
|
+
"test": "vitest run",
|
|
17
20
|
"clean": "fe-clean",
|
|
18
21
|
"clean:build": "fe-clean -f packages/*/dist -r",
|
|
19
|
-
"check-packages": "fe-check-packages",
|
|
20
22
|
"commit": "fe-commit",
|
|
21
|
-
"clean-branch": "fe-clean-branch"
|
|
23
|
+
"clean-branch": "fe-clean-branch",
|
|
24
|
+
"check-packages": "fe-check-packages",
|
|
25
|
+
"prepare": "husky"
|
|
22
26
|
},
|
|
23
|
-
"keywords": [
|
|
24
|
-
"template",
|
|
25
|
-
"fe-pack-app"
|
|
26
|
-
],
|
|
27
|
+
"keywords": [],
|
|
27
28
|
"author": "qlover",
|
|
28
29
|
"license": "ISC",
|
|
29
30
|
"devEngines": {
|
|
30
31
|
"node": ">=18.19.0"
|
|
31
32
|
},
|
|
32
33
|
"devDependencies": {
|
|
34
|
+
"@changesets/changelog-github": "^0.5.1",
|
|
35
|
+
"@changesets/cli": "^2.29.2",
|
|
36
|
+
"@commitlint/cli": "^19.7.1",
|
|
37
|
+
"@commitlint/config-conventional": "^19.7.1",
|
|
38
|
+
"@eslint/js": "^9.13.0",
|
|
39
|
+
"@nx/js": "20.6.4",
|
|
40
|
+
"@qlover/env-loader": "latest",
|
|
41
|
+
"@qlover/eslint-plugin-fe-dev": "latest",
|
|
33
42
|
"@qlover/fe-scripts": "latest",
|
|
34
|
-
"@qlover/fe-standard": "
|
|
35
|
-
"@qlover/
|
|
36
|
-
"@qlover/fe-release": "latest",
|
|
43
|
+
"@qlover/fe-standard": "latest",
|
|
44
|
+
"@qlover/scripts-context": "latest",
|
|
37
45
|
"@rollup/plugin-commonjs": "^28.0.1",
|
|
38
46
|
"@rollup/plugin-json": "^6.1.0",
|
|
39
47
|
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
40
48
|
"@rollup/plugin-terser": "^0.4.4",
|
|
41
49
|
"@rollup/plugin-typescript": "^12.1.1",
|
|
42
|
-
"@
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
50
|
+
"@swc-node/register": "~1.9.1",
|
|
51
|
+
"@swc/core": "~1.5.7",
|
|
52
|
+
"@swc/helpers": "~0.5.11",
|
|
53
|
+
"@types/lodash": "^4.17.16",
|
|
54
|
+
"@types/node": "^22.9.0",
|
|
55
|
+
"cz-conventional-changelog": "^3.3.0",
|
|
56
|
+
"eslint": "^9.13.0",
|
|
57
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
58
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
59
|
+
"eslint-plugin-react-refresh": "^0.4.19",
|
|
60
|
+
"eslint-plugin-vitest": "^0.5.4",
|
|
61
|
+
"globals": "^15.14.0",
|
|
48
62
|
"husky": "^9.1.7",
|
|
49
|
-
"
|
|
50
|
-
"prettier": "^3.5.
|
|
63
|
+
"nx": "20.6.4",
|
|
64
|
+
"prettier": "^3.5.3",
|
|
65
|
+
"rimraf": "^5.0.5",
|
|
51
66
|
"rollup": "^4.24.2",
|
|
52
67
|
"rollup-plugin-delete": "^2.1.0",
|
|
53
68
|
"rollup-plugin-dts": "^6.1.1",
|
|
54
69
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
55
70
|
"ts-node": "^10.9.2",
|
|
56
|
-
"
|
|
57
|
-
"
|
|
71
|
+
"tslib": "^2.8.1",
|
|
72
|
+
"tsup": "^8.4.0",
|
|
73
|
+
"typescript": "~5.4.5",
|
|
74
|
+
"typescript-eslint": "^8.18.0",
|
|
75
|
+
"vite": "^6.1.0",
|
|
58
76
|
"vitest": "^3.0.5"
|
|
59
77
|
},
|
|
60
78
|
"workspaces": [
|
|
61
79
|
"packages/*"
|
|
62
80
|
],
|
|
63
81
|
"lint-staged": {
|
|
64
|
-
"
|
|
65
|
-
"eslint --
|
|
66
|
-
"prettier --write"
|
|
67
|
-
],
|
|
68
|
-
"packages/**/*.{json,css,scss,md}": [
|
|
69
|
-
"prettier --write"
|
|
82
|
+
"*.{js,jsx,ts,tsx}": [
|
|
83
|
+
"eslint --fix"
|
|
70
84
|
]
|
|
71
|
-
}
|
|
72
|
-
"packageManager": "pnpm@9.1.0"
|
|
85
|
+
}
|
|
73
86
|
}
|