create-nuxt-base 0.3.10 → 0.3.12

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.
Files changed (35) hide show
  1. package/.github/workflows/publish.yml +6 -9
  2. package/CHANGELOG.md +34 -47
  3. package/index.js +20 -19
  4. package/nuxt-base-template/app/composables/use-tw.ts +1 -0
  5. package/nuxt-base-template/{src → app}/plugins/pwa.plugin.ts +1 -1
  6. package/nuxt-base-template/eslint.config.mjs +1 -1
  7. package/nuxt-base-template/nuxt.config.ts +2 -13
  8. package/nuxt-base-template/package-lock.json +24541 -0
  9. package/nuxt-base-template/package.json +29 -29
  10. package/nuxt-base-template/playwright.config.ts +0 -1
  11. package/package.json +12 -12
  12. package/nuxt-base-template/pnpm-lock.yaml +0 -15165
  13. package/nuxt-base-template/src/composables/use-tw.ts +0 -1
  14. package/nuxt-base-template/{src → app}/app.vue +0 -0
  15. package/nuxt-base-template/{src → app}/assets/css/tailwind.css +0 -0
  16. package/nuxt-base-template/{src → app}/components/Transition/TransitionFade.vue +0 -0
  17. package/nuxt-base-template/{src → app}/components/Transition/TransitionFadeScale.vue +0 -0
  18. package/nuxt-base-template/{src → app}/components/Transition/TransitionSlide.vue +0 -0
  19. package/nuxt-base-template/{src → app}/components/Transition/TransitionSlideBottom.vue +0 -0
  20. package/nuxt-base-template/{src → app}/components/Transition/TransitionSlideRevert.vue +0 -0
  21. package/nuxt-base-template/{src → app}/composables/use-context-menu.ts +0 -0
  22. package/nuxt-base-template/{src → app}/composables/use-file.ts +0 -0
  23. package/nuxt-base-template/{src → app}/composables/use-form-helper.ts +0 -0
  24. package/nuxt-base-template/{src → app}/composables/use-modal.ts +4 -4
  25. /package/nuxt-base-template/{src → app}/composables/use-notification.ts +0 -0
  26. /package/nuxt-base-template/{src → app}/composables/use-share.ts +0 -0
  27. /package/nuxt-base-template/{src → app}/error.vue +0 -0
  28. /package/nuxt-base-template/{src → app}/layouts/default.vue +0 -0
  29. /package/nuxt-base-template/{src → app}/middleware/admin.global.ts +0 -0
  30. /package/nuxt-base-template/{src → app}/middleware/auth.global.ts +0 -0
  31. /package/nuxt-base-template/{src → app}/middleware/logged-in.global.ts +0 -0
  32. /package/nuxt-base-template/{src → app}/pages/index.vue +0 -0
  33. /package/nuxt-base-template/{src → app}/plugins/auth.server.ts +0 -0
  34. /package/nuxt-base-template/{src → app}/plugins/form.plugin.ts +0 -0
  35. /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: pnpm
22
+ cache: npm
27
23
 
28
24
  - name: Install dependencies 📦️
29
- run: pnpm install --frozen-lockfile
25
+ run: npm ci
30
26
 
31
- - uses: simenandre/publish-with-pnpm@v2
32
- with:
33
- npm-auth-token: ${{ secrets.NPM_TOKEN }}
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,158 +2,145 @@
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.10](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.9...v0.3.10) (2025-02-20)
5
+ ### [0.3.12](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.11...v0.3.12) (2025-07-24)
6
6
 
7
+ ### [0.3.11](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.10...v0.3.11) (2025-05-15)
7
8
 
8
9
  ### Bug Fixes
9
10
 
10
- * Fix tailwind error, build error and add dayjs and seo modules ([b1cf768](https://github.com/lenneTech/nuxt-base-starter/commit/b1cf7688091d02a09619c9524376481d286b5b5b))
11
+ - Update dependencies and upgrade prettier to 3.5.3 ([90bdc13](https://github.com/lenneTech/nuxt-base-starter/commit/90bdc13942b222431d624ae8fda5ba3b35fe5edc))
12
+ - Update dependencies to latest versions ([6f0dd69](https://github.com/lenneTech/nuxt-base-starter/commit/6f0dd696965642324e2fb4e00b2ce66ae371c833))
11
13
 
12
- ### [0.3.9](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.8...v0.3.9) (2025-02-17)
14
+ ### [0.3.10](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.9...v0.3.10) (2025-02-20)
13
15
 
16
+ ### Bug Fixes
17
+
18
+ - Fix tailwind error, build error and add dayjs and seo modules ([b1cf768](https://github.com/lenneTech/nuxt-base-starter/commit/b1cf7688091d02a09619c9524376481d286b5b5b))
19
+
20
+ ### [0.3.9](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.8...v0.3.9) (2025-02-17)
14
21
 
15
22
  ### Bug Fixes
16
23
 
17
- * add missing .npmrc ([47f9bab](https://github.com/lenneTech/nuxt-base-starter/commit/47f9bab4920153fb711ac0fdba43811295e33d82))
24
+ - add missing .npmrc ([47f9bab](https://github.com/lenneTech/nuxt-base-starter/commit/47f9bab4920153fb711ac0fdba43811295e33d82))
18
25
 
19
26
  ### [0.3.8](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.7...v0.3.8) (2025-02-17)
20
27
 
21
-
22
28
  ### Features
23
29
 
24
- * update packages ([786c54c](https://github.com/lenneTech/nuxt-base-starter/commit/786c54c26a074d8cef31805fe5d7737f2a966d35))
30
+ - update packages ([786c54c](https://github.com/lenneTech/nuxt-base-starter/commit/786c54c26a074d8cef31805fe5d7737f2a966d35))
25
31
 
26
32
  ### [0.3.7](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.6...v0.3.7) (2025-02-17)
27
33
 
28
-
29
34
  ### Bug Fixes
30
35
 
31
- * change commands from npm to pnpm ([0e513ee](https://github.com/lenneTech/nuxt-base-starter/commit/0e513eeb14c122cdbeb76fb2344ac60dd731d8bd))
36
+ - change commands from npm to pnpm ([0e513ee](https://github.com/lenneTech/nuxt-base-starter/commit/0e513eeb14c122cdbeb76fb2344ac60dd731d8bd))
32
37
 
33
38
  ### [0.3.6](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.5...v0.3.6) (2025-02-17)
34
39
 
35
-
36
40
  ### Bug Fixes
37
41
 
38
- * **DEV-55:** Add remote .gitignore and custom messages ([cd8ca5c](https://github.com/lenneTech/nuxt-base-starter/commit/cd8ca5c92905c87c794703434c4b555c3cbd60e5))
39
- * **DEV-56:** Postbuild hook stopping process ([ee93a71](https://github.com/lenneTech/nuxt-base-starter/commit/ee93a7146c08cb4c4e70f2454e56bfcb3e1435ed))
42
+ - **DEV-55:** Add remote .gitignore and custom messages ([cd8ca5c](https://github.com/lenneTech/nuxt-base-starter/commit/cd8ca5c92905c87c794703434c4b555c3cbd60e5))
43
+ - **DEV-56:** Postbuild hook stopping process ([ee93a71](https://github.com/lenneTech/nuxt-base-starter/commit/ee93a7146c08cb4c4e70f2454e56bfcb3e1435ed))
40
44
 
41
45
  ### [0.3.5](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.4...v0.3.5) (2025-02-06)
42
46
 
43
-
44
47
  ### Bug Fixes
45
48
 
46
- * **TEC-46:** Ensure .gitignore is copied during setup ([f579ce0](https://github.com/lenneTech/nuxt-base-starter/commit/f579ce0d59c7ffc2da8e4c50c3405fefaf181ede))
49
+ - **TEC-46:** Ensure .gitignore is copied during setup ([f579ce0](https://github.com/lenneTech/nuxt-base-starter/commit/f579ce0d59c7ffc2da8e4c50c3405fefaf181ede))
47
50
 
48
51
  ### [0.3.4](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.3...v0.3.4) (2025-02-06)
49
52
 
50
-
51
53
  ### Bug Fixes
52
54
 
53
- * fix build command in action ([aad99db](https://github.com/lenneTech/nuxt-base-starter/commit/aad99dbd0381ab22b952d1238e5590124c2f212e))
55
+ - fix build command in action ([aad99db](https://github.com/lenneTech/nuxt-base-starter/commit/aad99dbd0381ab22b952d1238e5590124c2f212e))
54
56
 
55
57
  ### [0.3.3](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.2...v0.3.3) (2025-02-06)
56
58
 
57
-
58
59
  ### Bug Fixes
59
60
 
60
- * fix build command in action ([090f190](https://github.com/lenneTech/nuxt-base-starter/commit/090f19019331e9d5b00754c8d0d502dfa60b765c))
61
+ - fix build command in action ([090f190](https://github.com/lenneTech/nuxt-base-starter/commit/090f19019331e9d5b00754c8d0d502dfa60b765c))
61
62
 
62
63
  ### [0.3.2](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.1...v0.3.2) (2025-02-06)
63
64
 
64
-
65
65
  ### Bug Fixes
66
66
 
67
- * adjust github action versions ([fd59c6d](https://github.com/lenneTech/nuxt-base-starter/commit/fd59c6d024196045f1c561cfd6d97ec78d5b2ff3))
67
+ - adjust github action versions ([fd59c6d](https://github.com/lenneTech/nuxt-base-starter/commit/fd59c6d024196045f1c561cfd6d97ec78d5b2ff3))
68
68
 
69
69
  ### [0.3.1](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.0...v0.3.1) (2025-02-06)
70
70
 
71
-
72
71
  ### Features
73
72
 
74
- * Update to tailwind v4 and change from npm to pnpm ([7457db9](https://github.com/lenneTech/nuxt-base-starter/commit/7457db9ac296ace89e39b4e7e916ee8d25c2eda7))
73
+ - Update to tailwind v4 and change from npm to pnpm ([7457db9](https://github.com/lenneTech/nuxt-base-starter/commit/7457db9ac296ace89e39b4e7e916ee8d25c2eda7))
75
74
 
76
75
  ## [0.3.0](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.10...v0.3.0) (2025-01-29)
77
76
 
78
-
79
77
  ### Features
80
78
 
81
- * **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))
82
-
79
+ - **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))
83
80
 
84
81
  ### Bug Fixes
85
82
 
86
- * **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))
83
+ - **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))
87
84
 
88
85
  ### [0.2.10](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.9...v0.2.10) (2024-10-22)
89
86
 
90
-
91
87
  ### Bug Fixes
92
88
 
93
- * fix wrong variables and update packages ([a78a8d6](https://github.com/lenneTech/nuxt-base-starter/commit/a78a8d60c47718684781844f5a6a32765c3dca6f))
89
+ - fix wrong variables and update packages ([a78a8d6](https://github.com/lenneTech/nuxt-base-starter/commit/a78a8d60c47718684781844f5a6a32765c3dca6f))
94
90
 
95
91
  ### [0.2.9](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.8...v0.2.9) (2024-10-18)
96
92
 
97
-
98
93
  ### Bug Fixes
99
94
 
100
- * fix e2e test handling and update packages ([54237a9](https://github.com/lenneTech/nuxt-base-starter/commit/54237a9a3d3cac617fc36de1a2f47dfb50ca9ba9))
101
- * fix wrong env variable in plugin ([c0f9716](https://github.com/lenneTech/nuxt-base-starter/commit/c0f9716ceb366d0e196ddd30adf2468d887284e7))
95
+ - fix e2e test handling and update packages ([54237a9](https://github.com/lenneTech/nuxt-base-starter/commit/54237a9a3d3cac617fc36de1a2f47dfb50ca9ba9))
96
+ - fix wrong env variable in plugin ([c0f9716](https://github.com/lenneTech/nuxt-base-starter/commit/c0f9716ceb366d0e196ddd30adf2468d887284e7))
102
97
 
103
98
  ### [0.2.8](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.7...v0.2.8) (2024-09-30)
104
99
 
105
-
106
100
  ### Bug Fixes
107
101
 
108
- * fix e2e test handling and update packages ([71a4d67](https://github.com/lenneTech/nuxt-base-starter/commit/71a4d67c2ed5394ae4d9ed5b2171207bcc1ed972))
102
+ - fix e2e test handling and update packages ([71a4d67](https://github.com/lenneTech/nuxt-base-starter/commit/71a4d67c2ed5394ae4d9ed5b2171207bcc1ed972))
109
103
 
110
104
  ### [0.2.7](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.6...v0.2.7) (2024-09-05)
111
105
 
112
-
113
106
  ### Features
114
107
 
115
- * update packages ([cc016ed](https://github.com/lenneTech/nuxt-base-starter/commit/cc016ed1e492cc0209f657ff58cdd0bdb8f22c58))
108
+ - update packages ([cc016ed](https://github.com/lenneTech/nuxt-base-starter/commit/cc016ed1e492cc0209f657ff58cdd0bdb8f22c58))
116
109
 
117
110
  ### [0.2.6](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.5...v0.2.6) (2024-09-02)
118
111
 
119
-
120
112
  ### Features
121
113
 
122
- * update packages ([282e866](https://github.com/lenneTech/nuxt-base-starter/commit/282e866e323999eeb58be7edcd8d2f4b560da612))
114
+ - update packages ([282e866](https://github.com/lenneTech/nuxt-base-starter/commit/282e866e323999eeb58be7edcd8d2f4b560da612))
123
115
 
124
116
  ### [0.2.5](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.4...v0.2.5) (2024-07-01)
125
117
 
126
-
127
118
  ### Features
128
119
 
129
- * add useFormHelper ([af4323d](https://github.com/lenneTech/nuxt-base-starter/commit/af4323d821df736d016ac34b5d7f0fd4072e8092))
130
- * update packages ([b4cf384](https://github.com/lenneTech/nuxt-base-starter/commit/b4cf38415e5471ac100eba0eb05054dce2c9bd4d))
120
+ - add useFormHelper ([af4323d](https://github.com/lenneTech/nuxt-base-starter/commit/af4323d821df736d016ac34b5d7f0fd4072e8092))
121
+ - update packages ([b4cf384](https://github.com/lenneTech/nuxt-base-starter/commit/b4cf38415e5471ac100eba0eb05054dce2c9bd4d))
131
122
 
132
123
  ### [0.2.4](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.3...v0.2.4) (2024-05-29)
133
124
 
134
125
  ### [0.2.3](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.2...v0.2.3) (2024-02-20)
135
126
 
136
-
137
127
  ### Features
138
128
 
139
- * Remove components because of new cli components command ([6380979](https://github.com/lenneTech/nuxt-base-starter/commit/6380979ba7ca46ce6058f4e1dea4e511d1d0ea9d))
140
-
129
+ - Remove components because of new cli components command ([6380979](https://github.com/lenneTech/nuxt-base-starter/commit/6380979ba7ca46ce6058f4e1dea4e511d1d0ea9d))
141
130
 
142
131
  ### Bug Fixes
143
132
 
144
- * fix scripts ([107aa14](https://github.com/lenneTech/nuxt-base-starter/commit/107aa1459f327543bfad03b236f9dc6cdbbc52f6))
133
+ - fix scripts ([107aa14](https://github.com/lenneTech/nuxt-base-starter/commit/107aa1459f327543bfad03b236f9dc6cdbbc52f6))
145
134
 
146
135
  ### [0.2.2](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.1...v0.2.2) (2024-02-19)
147
136
 
148
-
149
137
  ### Features
150
138
 
151
- * update packages ([442eb2d](https://github.com/lenneTech/nuxt-base-starter/commit/442eb2d83ba0c01159440685d7dbcc63aefb08e6))
152
-
139
+ - update packages ([442eb2d](https://github.com/lenneTech/nuxt-base-starter/commit/442eb2d83ba0c01159440685d7dbcc63aefb08e6))
153
140
 
154
141
  ### Bug Fixes
155
142
 
156
- * fix missing div before layout to prevent errors ([626dc2b](https://github.com/lenneTech/nuxt-base-starter/commit/626dc2b82e7c955eda57572ec59b14a5049b4bd5))
143
+ - fix missing div before layout to prevent errors ([626dc2b](https://github.com/lenneTech/nuxt-base-starter/commit/626dc2b82e7c955eda57572ec59b14a5049b4bd5))
157
144
 
158
145
  ### [0.2.1](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.0...v0.2.1) (2024-02-02)
159
146
 
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
- projectDir + '/.npmrc',
52
- await getRemoteContent('https://raw.githubusercontent.com/lenneTech/nuxt-base-starter/refs/heads/main/nuxt-base-template/.npmrc'),
53
- 'Copied .npmrc successfully!'
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.get(url, (res) => {
153
- let data = '';
154
- res.on('data', (chunk) => {
155
- data += chunk;
156
- });
157
- res.on('end', () => {
158
- if (res.statusCode === 200) {
159
- resolve(data);
160
- } else {
161
- reject(new Error(`Failed to fetch content: ${res.statusCode} ${res.statusMessage}`));
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<PushSubscription | null>(null);
4
+ const subscription = ref<null | PushSubscription>(null);
5
5
 
6
6
  if (process.client) {
7
7
  const iosPWASplash = (await import('ios-pwa-splash')).default;
@@ -1,3 +1,3 @@
1
1
  import vue from '@lenne.tech/eslint-config-vue';
2
2
 
3
- export default vue;
3
+ export default vue;
@@ -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: {