create-nuxt-base 0.3.11 → 0.3.13
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/.github/workflows/publish.yml +6 -9
- package/CHANGELOG.md +36 -50
- package/index.js +20 -19
- package/nuxt-base-template/app/composables/use-tw.ts +1 -0
- package/nuxt-base-template/{src → app}/plugins/pwa.plugin.ts +1 -1
- package/nuxt-base-template/eslint.config.mjs +1 -1
- package/nuxt-base-template/nuxt.config.ts +2 -13
- package/nuxt-base-template/package-lock.json +24541 -0
- package/nuxt-base-template/package.json +23 -37
- package/nuxt-base-template/playwright.config.ts +0 -1
- package/package.json +12 -12
- package/nuxt-base-template/pnpm-lock.yaml +0 -17236
- package/nuxt-base-template/src/composables/use-tw.ts +0 -1
- package/nuxt-base-template/{src → app}/app.vue +0 -0
- package/nuxt-base-template/{src → app}/assets/css/tailwind.css +0 -0
- package/nuxt-base-template/{src → app}/components/Transition/TransitionFade.vue +0 -0
- package/nuxt-base-template/{src → app}/components/Transition/TransitionFadeScale.vue +0 -0
- package/nuxt-base-template/{src → app}/components/Transition/TransitionSlide.vue +0 -0
- package/nuxt-base-template/{src → app}/components/Transition/TransitionSlideBottom.vue +0 -0
- package/nuxt-base-template/{src → app}/components/Transition/TransitionSlideRevert.vue +0 -0
- package/nuxt-base-template/{src → app}/composables/use-context-menu.ts +0 -0
- package/nuxt-base-template/{src → app}/composables/use-file.ts +0 -0
- package/nuxt-base-template/{src → app}/composables/use-form-helper.ts +0 -0
- package/nuxt-base-template/{src → app}/composables/use-modal.ts +4 -4
- /package/nuxt-base-template/{src → app}/composables/use-notification.ts +0 -0
- /package/nuxt-base-template/{src → app}/composables/use-share.ts +0 -0
- /package/nuxt-base-template/{src → app}/error.vue +0 -0
- /package/nuxt-base-template/{src → app}/layouts/default.vue +0 -0
- /package/nuxt-base-template/{src → app}/middleware/admin.global.ts +0 -0
- /package/nuxt-base-template/{src → app}/middleware/auth.global.ts +0 -0
- /package/nuxt-base-template/{src → app}/middleware/logged-in.global.ts +0 -0
- /package/nuxt-base-template/{src → app}/pages/index.vue +0 -0
- /package/nuxt-base-template/{src → app}/plugins/auth.server.ts +0 -0
- /package/nuxt-base-template/{src → app}/plugins/form.plugin.ts +0 -0
- /package/nuxt-base-template/{src/public → public}/favicon.ico +0 -0
|
@@ -14,23 +14,20 @@ jobs:
|
|
|
14
14
|
steps:
|
|
15
15
|
- uses: actions/checkout@v4
|
|
16
16
|
|
|
17
|
-
- uses: pnpm/action-setup@v4
|
|
18
|
-
with:
|
|
19
|
-
version: 10
|
|
20
|
-
|
|
21
17
|
- name: Use Node LTS ✨
|
|
22
18
|
uses: actions/setup-node@v4
|
|
23
19
|
with:
|
|
24
20
|
node-version: lts/*
|
|
25
21
|
registry-url: https://registry.npmjs.org
|
|
26
|
-
cache:
|
|
22
|
+
cache: npm
|
|
27
23
|
|
|
28
24
|
- name: Install dependencies 📦️
|
|
29
|
-
run:
|
|
25
|
+
run: npm ci
|
|
30
26
|
|
|
31
|
-
-
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
- name: Publish to npm 🚀
|
|
28
|
+
run: npm publish
|
|
29
|
+
env:
|
|
30
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
34
31
|
|
|
35
32
|
- name: Deploy notification
|
|
36
33
|
if: always()
|
package/CHANGELOG.md
CHANGED
|
@@ -2,166 +2,152 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
-
### [0.3.
|
|
5
|
+
### [0.3.13](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.12...v0.3.13) (2025-07-24)
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
### Bug Fixes
|
|
9
9
|
|
|
10
|
-
* Update
|
|
11
|
-
* Update dependencies to latest versions ([6f0dd69](https://github.com/lenneTech/nuxt-base-starter/commit/6f0dd696965642324e2fb4e00b2ce66ae371c833))
|
|
10
|
+
* Update [@lenne](https://github.com/lenne).tech/nuxt-base dependency to latest version ([71dd666](https://github.com/lenneTech/nuxt-base-starter/commit/71dd6669fd9ec25671a102b4d2ad294ac88daa10))
|
|
12
11
|
|
|
13
|
-
### [0.3.
|
|
12
|
+
### [0.3.12](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.11...v0.3.12) (2025-07-24)
|
|
14
13
|
|
|
14
|
+
### [0.3.11](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.10...v0.3.11) (2025-05-15)
|
|
15
15
|
|
|
16
16
|
### Bug Fixes
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
- Update dependencies and upgrade prettier to 3.5.3 ([90bdc13](https://github.com/lenneTech/nuxt-base-starter/commit/90bdc13942b222431d624ae8fda5ba3b35fe5edc))
|
|
19
|
+
- Update dependencies to latest versions ([6f0dd69](https://github.com/lenneTech/nuxt-base-starter/commit/6f0dd696965642324e2fb4e00b2ce66ae371c833))
|
|
19
20
|
|
|
20
|
-
### [0.3.
|
|
21
|
+
### [0.3.10](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.9...v0.3.10) (2025-02-20)
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
21
24
|
|
|
25
|
+
- Fix tailwind error, build error and add dayjs and seo modules ([b1cf768](https://github.com/lenneTech/nuxt-base-starter/commit/b1cf7688091d02a09619c9524376481d286b5b5b))
|
|
26
|
+
|
|
27
|
+
### [0.3.9](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.8...v0.3.9) (2025-02-17)
|
|
22
28
|
|
|
23
29
|
### Bug Fixes
|
|
24
30
|
|
|
25
|
-
|
|
31
|
+
- add missing .npmrc ([47f9bab](https://github.com/lenneTech/nuxt-base-starter/commit/47f9bab4920153fb711ac0fdba43811295e33d82))
|
|
26
32
|
|
|
27
33
|
### [0.3.8](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.7...v0.3.8) (2025-02-17)
|
|
28
34
|
|
|
29
|
-
|
|
30
35
|
### Features
|
|
31
36
|
|
|
32
|
-
|
|
37
|
+
- update packages ([786c54c](https://github.com/lenneTech/nuxt-base-starter/commit/786c54c26a074d8cef31805fe5d7737f2a966d35))
|
|
33
38
|
|
|
34
39
|
### [0.3.7](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.6...v0.3.7) (2025-02-17)
|
|
35
40
|
|
|
36
|
-
|
|
37
41
|
### Bug Fixes
|
|
38
42
|
|
|
39
|
-
|
|
43
|
+
- change commands from npm to pnpm ([0e513ee](https://github.com/lenneTech/nuxt-base-starter/commit/0e513eeb14c122cdbeb76fb2344ac60dd731d8bd))
|
|
40
44
|
|
|
41
45
|
### [0.3.6](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.5...v0.3.6) (2025-02-17)
|
|
42
46
|
|
|
43
|
-
|
|
44
47
|
### Bug Fixes
|
|
45
48
|
|
|
46
|
-
|
|
47
|
-
|
|
49
|
+
- **DEV-55:** Add remote .gitignore and custom messages ([cd8ca5c](https://github.com/lenneTech/nuxt-base-starter/commit/cd8ca5c92905c87c794703434c4b555c3cbd60e5))
|
|
50
|
+
- **DEV-56:** Postbuild hook stopping process ([ee93a71](https://github.com/lenneTech/nuxt-base-starter/commit/ee93a7146c08cb4c4e70f2454e56bfcb3e1435ed))
|
|
48
51
|
|
|
49
52
|
### [0.3.5](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.4...v0.3.5) (2025-02-06)
|
|
50
53
|
|
|
51
|
-
|
|
52
54
|
### Bug Fixes
|
|
53
55
|
|
|
54
|
-
|
|
56
|
+
- **TEC-46:** Ensure .gitignore is copied during setup ([f579ce0](https://github.com/lenneTech/nuxt-base-starter/commit/f579ce0d59c7ffc2da8e4c50c3405fefaf181ede))
|
|
55
57
|
|
|
56
58
|
### [0.3.4](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.3...v0.3.4) (2025-02-06)
|
|
57
59
|
|
|
58
|
-
|
|
59
60
|
### Bug Fixes
|
|
60
61
|
|
|
61
|
-
|
|
62
|
+
- fix build command in action ([aad99db](https://github.com/lenneTech/nuxt-base-starter/commit/aad99dbd0381ab22b952d1238e5590124c2f212e))
|
|
62
63
|
|
|
63
64
|
### [0.3.3](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.2...v0.3.3) (2025-02-06)
|
|
64
65
|
|
|
65
|
-
|
|
66
66
|
### Bug Fixes
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
- fix build command in action ([090f190](https://github.com/lenneTech/nuxt-base-starter/commit/090f19019331e9d5b00754c8d0d502dfa60b765c))
|
|
69
69
|
|
|
70
70
|
### [0.3.2](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.1...v0.3.2) (2025-02-06)
|
|
71
71
|
|
|
72
|
-
|
|
73
72
|
### Bug Fixes
|
|
74
73
|
|
|
75
|
-
|
|
74
|
+
- adjust github action versions ([fd59c6d](https://github.com/lenneTech/nuxt-base-starter/commit/fd59c6d024196045f1c561cfd6d97ec78d5b2ff3))
|
|
76
75
|
|
|
77
76
|
### [0.3.1](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.0...v0.3.1) (2025-02-06)
|
|
78
77
|
|
|
79
|
-
|
|
80
78
|
### Features
|
|
81
79
|
|
|
82
|
-
|
|
80
|
+
- Update to tailwind v4 and change from npm to pnpm ([7457db9](https://github.com/lenneTech/nuxt-base-starter/commit/7457db9ac296ace89e39b4e7e916ee8d25c2eda7))
|
|
83
81
|
|
|
84
82
|
## [0.3.0](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.10...v0.3.0) (2025-01-29)
|
|
85
83
|
|
|
86
|
-
|
|
87
84
|
### Features
|
|
88
85
|
|
|
89
|
-
|
|
90
|
-
|
|
86
|
+
- **TEC-33:** Bump eslint/vue to 1.0.3 ([#4](https://github.com/lenneTech/nuxt-base-starter/issues/4)) ([28ad752](https://github.com/lenneTech/nuxt-base-starter/commit/28ad752737318593327370cded573e0060d4571e))
|
|
91
87
|
|
|
92
88
|
### Bug Fixes
|
|
93
89
|
|
|
94
|
-
|
|
90
|
+
- **TEC-20:** fix scripts not working on windows ([#3](https://github.com/lenneTech/nuxt-base-starter/issues/3)) ([c2f4676](https://github.com/lenneTech/nuxt-base-starter/commit/c2f467682be7eb136e158c0820fbb7f33c04559b))
|
|
95
91
|
|
|
96
92
|
### [0.2.10](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.9...v0.2.10) (2024-10-22)
|
|
97
93
|
|
|
98
|
-
|
|
99
94
|
### Bug Fixes
|
|
100
95
|
|
|
101
|
-
|
|
96
|
+
- fix wrong variables and update packages ([a78a8d6](https://github.com/lenneTech/nuxt-base-starter/commit/a78a8d60c47718684781844f5a6a32765c3dca6f))
|
|
102
97
|
|
|
103
98
|
### [0.2.9](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.8...v0.2.9) (2024-10-18)
|
|
104
99
|
|
|
105
|
-
|
|
106
100
|
### Bug Fixes
|
|
107
101
|
|
|
108
|
-
|
|
109
|
-
|
|
102
|
+
- fix e2e test handling and update packages ([54237a9](https://github.com/lenneTech/nuxt-base-starter/commit/54237a9a3d3cac617fc36de1a2f47dfb50ca9ba9))
|
|
103
|
+
- fix wrong env variable in plugin ([c0f9716](https://github.com/lenneTech/nuxt-base-starter/commit/c0f9716ceb366d0e196ddd30adf2468d887284e7))
|
|
110
104
|
|
|
111
105
|
### [0.2.8](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.7...v0.2.8) (2024-09-30)
|
|
112
106
|
|
|
113
|
-
|
|
114
107
|
### Bug Fixes
|
|
115
108
|
|
|
116
|
-
|
|
109
|
+
- fix e2e test handling and update packages ([71a4d67](https://github.com/lenneTech/nuxt-base-starter/commit/71a4d67c2ed5394ae4d9ed5b2171207bcc1ed972))
|
|
117
110
|
|
|
118
111
|
### [0.2.7](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.6...v0.2.7) (2024-09-05)
|
|
119
112
|
|
|
120
|
-
|
|
121
113
|
### Features
|
|
122
114
|
|
|
123
|
-
|
|
115
|
+
- update packages ([cc016ed](https://github.com/lenneTech/nuxt-base-starter/commit/cc016ed1e492cc0209f657ff58cdd0bdb8f22c58))
|
|
124
116
|
|
|
125
117
|
### [0.2.6](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.5...v0.2.6) (2024-09-02)
|
|
126
118
|
|
|
127
|
-
|
|
128
119
|
### Features
|
|
129
120
|
|
|
130
|
-
|
|
121
|
+
- update packages ([282e866](https://github.com/lenneTech/nuxt-base-starter/commit/282e866e323999eeb58be7edcd8d2f4b560da612))
|
|
131
122
|
|
|
132
123
|
### [0.2.5](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.4...v0.2.5) (2024-07-01)
|
|
133
124
|
|
|
134
|
-
|
|
135
125
|
### Features
|
|
136
126
|
|
|
137
|
-
|
|
138
|
-
|
|
127
|
+
- add useFormHelper ([af4323d](https://github.com/lenneTech/nuxt-base-starter/commit/af4323d821df736d016ac34b5d7f0fd4072e8092))
|
|
128
|
+
- update packages ([b4cf384](https://github.com/lenneTech/nuxt-base-starter/commit/b4cf38415e5471ac100eba0eb05054dce2c9bd4d))
|
|
139
129
|
|
|
140
130
|
### [0.2.4](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.3...v0.2.4) (2024-05-29)
|
|
141
131
|
|
|
142
132
|
### [0.2.3](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.2...v0.2.3) (2024-02-20)
|
|
143
133
|
|
|
144
|
-
|
|
145
134
|
### Features
|
|
146
135
|
|
|
147
|
-
|
|
148
|
-
|
|
136
|
+
- Remove components because of new cli components command ([6380979](https://github.com/lenneTech/nuxt-base-starter/commit/6380979ba7ca46ce6058f4e1dea4e511d1d0ea9d))
|
|
149
137
|
|
|
150
138
|
### Bug Fixes
|
|
151
139
|
|
|
152
|
-
|
|
140
|
+
- fix scripts ([107aa14](https://github.com/lenneTech/nuxt-base-starter/commit/107aa1459f327543bfad03b236f9dc6cdbbc52f6))
|
|
153
141
|
|
|
154
142
|
### [0.2.2](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.1...v0.2.2) (2024-02-19)
|
|
155
143
|
|
|
156
|
-
|
|
157
144
|
### Features
|
|
158
145
|
|
|
159
|
-
|
|
160
|
-
|
|
146
|
+
- update packages ([442eb2d](https://github.com/lenneTech/nuxt-base-starter/commit/442eb2d83ba0c01159440685d7dbcc63aefb08e6))
|
|
161
147
|
|
|
162
148
|
### Bug Fixes
|
|
163
149
|
|
|
164
|
-
|
|
150
|
+
- fix missing div before layout to prevent errors ([626dc2b](https://github.com/lenneTech/nuxt-base-starter/commit/626dc2b82e7c955eda57572ec59b14a5049b4bd5))
|
|
165
151
|
|
|
166
152
|
### [0.2.1](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.0...v0.2.1) (2024-02-02)
|
|
167
153
|
|
package/index.js
CHANGED
|
@@ -43,14 +43,14 @@ async function create() {
|
|
|
43
43
|
await writeFile(
|
|
44
44
|
projectDir + '/.gitignore',
|
|
45
45
|
await getRemoteContent('https://raw.githubusercontent.com/lenneTech/nuxt-base-starter/refs/heads/main/nuxt-base-template/.gitignore'),
|
|
46
|
-
'Copied .gitignore successfully!'
|
|
46
|
+
'Copied .gitignore successfully!',
|
|
47
47
|
);
|
|
48
48
|
|
|
49
49
|
// Copy .npmrc
|
|
50
50
|
await writeFile(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
projectDir + '/.npmrc',
|
|
52
|
+
await getRemoteContent('https://raw.githubusercontent.com/lenneTech/nuxt-base-starter/refs/heads/main/nuxt-base-template/.npmrc'),
|
|
53
|
+
'Copied .npmrc successfully!',
|
|
54
54
|
);
|
|
55
55
|
|
|
56
56
|
// Copy .env
|
|
@@ -149,23 +149,24 @@ async function writeFile(path, content, msg) {
|
|
|
149
149
|
async function getRemoteContent(url) {
|
|
150
150
|
const https = require('node:https');
|
|
151
151
|
return new Promise((resolve, reject) => {
|
|
152
|
-
https
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
data
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
152
|
+
https
|
|
153
|
+
.get(url, (res) => {
|
|
154
|
+
let data = '';
|
|
155
|
+
res.on('data', (chunk) => {
|
|
156
|
+
data += chunk;
|
|
157
|
+
});
|
|
158
|
+
res.on('end', () => {
|
|
159
|
+
if (res.statusCode === 200) {
|
|
160
|
+
resolve(data);
|
|
161
|
+
} else {
|
|
162
|
+
reject(new Error(`Failed to fetch content: ${res.statusCode} ${res.statusMessage}`));
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
})
|
|
166
|
+
.on('error', (err) => {
|
|
167
|
+
reject(err);
|
|
163
168
|
});
|
|
164
|
-
}).on('error', (err) => {
|
|
165
|
-
reject(err);
|
|
166
|
-
});
|
|
167
169
|
});
|
|
168
|
-
|
|
169
170
|
}
|
|
170
171
|
|
|
171
172
|
function getPackageData(packageName) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const tw = <T extends string | TemplateStringsArray>(tailwindClasses: T) => tailwindClasses;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export default defineNuxtPlugin(async () => {
|
|
2
2
|
const applicationServerKey = useRuntimeConfig().public.webPushKey as string;
|
|
3
3
|
const permissionState = ref<PermissionState>('prompt');
|
|
4
|
-
const subscription = ref<
|
|
4
|
+
const subscription = ref<null | PushSubscription>(null);
|
|
5
5
|
|
|
6
6
|
if (process.client) {
|
|
7
7
|
const iosPWASplash = (await import('ios-pwa-splash')).default;
|
|
@@ -71,7 +71,8 @@ export default defineNuxtConfig({
|
|
|
71
71
|
},
|
|
72
72
|
|
|
73
73
|
plausible: {
|
|
74
|
-
apiHost:
|
|
74
|
+
apiHost: process.env.PLAUSIBLE_API_URL,
|
|
75
|
+
ignoredHostnames: ['localhost'],
|
|
75
76
|
},
|
|
76
77
|
|
|
77
78
|
runtimeConfig: {
|
|
@@ -93,20 +94,8 @@ export default defineNuxtConfig({
|
|
|
93
94
|
|
|
94
95
|
spaLoadingTemplate: false,
|
|
95
96
|
|
|
96
|
-
srcDir: './src',
|
|
97
|
-
|
|
98
97
|
ssr: true,
|
|
99
98
|
|
|
100
|
-
// googleFonts: {
|
|
101
|
-
// families: {
|
|
102
|
-
// Montserrat: [400, 600, 800, 900],
|
|
103
|
-
// 'Work Sans': [400, 600, 800, 900],
|
|
104
|
-
// },
|
|
105
|
-
// download: true,
|
|
106
|
-
// base64: true,
|
|
107
|
-
// stylePath: '~/assets/css/fonts.css',
|
|
108
|
-
// },
|
|
109
|
-
|
|
110
99
|
telemetry: false,
|
|
111
100
|
|
|
112
101
|
vite: {
|