create-nuxt-base 0.3.11 → 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 +29 -50
  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 +23 -37
  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 -17236
  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,166 +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.11](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.10...v0.3.11) (2025-05-15)
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
- * Update dependencies and upgrade prettier to 3.5.3 ([90bdc13](https://github.com/lenneTech/nuxt-base-starter/commit/90bdc13942b222431d624ae8fda5ba3b35fe5edc))
11
- * Update dependencies to latest versions ([6f0dd69](https://github.com/lenneTech/nuxt-base-starter/commit/6f0dd696965642324e2fb4e00b2ce66ae371c833))
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))
12
13
 
13
14
  ### [0.3.10](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.9...v0.3.10) (2025-02-20)
14
15
 
15
-
16
16
  ### Bug Fixes
17
17
 
18
- * Fix tailwind error, build error and add dayjs and seo modules ([b1cf768](https://github.com/lenneTech/nuxt-base-starter/commit/b1cf7688091d02a09619c9524376481d286b5b5b))
18
+ - Fix tailwind error, build error and add dayjs and seo modules ([b1cf768](https://github.com/lenneTech/nuxt-base-starter/commit/b1cf7688091d02a09619c9524376481d286b5b5b))
19
19
 
20
20
  ### [0.3.9](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.8...v0.3.9) (2025-02-17)
21
21
 
22
-
23
22
  ### Bug Fixes
24
23
 
25
- * 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))
26
25
 
27
26
  ### [0.3.8](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.7...v0.3.8) (2025-02-17)
28
27
 
29
-
30
28
  ### Features
31
29
 
32
- * 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))
33
31
 
34
32
  ### [0.3.7](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.6...v0.3.7) (2025-02-17)
35
33
 
36
-
37
34
  ### Bug Fixes
38
35
 
39
- * 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))
40
37
 
41
38
  ### [0.3.6](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.5...v0.3.6) (2025-02-17)
42
39
 
43
-
44
40
  ### Bug Fixes
45
41
 
46
- * **DEV-55:** Add remote .gitignore and custom messages ([cd8ca5c](https://github.com/lenneTech/nuxt-base-starter/commit/cd8ca5c92905c87c794703434c4b555c3cbd60e5))
47
- * **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))
48
44
 
49
45
  ### [0.3.5](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.4...v0.3.5) (2025-02-06)
50
46
 
51
-
52
47
  ### Bug Fixes
53
48
 
54
- * **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))
55
50
 
56
51
  ### [0.3.4](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.3...v0.3.4) (2025-02-06)
57
52
 
58
-
59
53
  ### Bug Fixes
60
54
 
61
- * 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))
62
56
 
63
57
  ### [0.3.3](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.2...v0.3.3) (2025-02-06)
64
58
 
65
-
66
59
  ### Bug Fixes
67
60
 
68
- * 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))
69
62
 
70
63
  ### [0.3.2](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.1...v0.3.2) (2025-02-06)
71
64
 
72
-
73
65
  ### Bug Fixes
74
66
 
75
- * 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))
76
68
 
77
69
  ### [0.3.1](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.0...v0.3.1) (2025-02-06)
78
70
 
79
-
80
71
  ### Features
81
72
 
82
- * 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))
83
74
 
84
75
  ## [0.3.0](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.10...v0.3.0) (2025-01-29)
85
76
 
86
-
87
77
  ### Features
88
78
 
89
- * **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))
90
-
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))
91
80
 
92
81
  ### Bug Fixes
93
82
 
94
- * **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))
95
84
 
96
85
  ### [0.2.10](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.9...v0.2.10) (2024-10-22)
97
86
 
98
-
99
87
  ### Bug Fixes
100
88
 
101
- * 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))
102
90
 
103
91
  ### [0.2.9](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.8...v0.2.9) (2024-10-18)
104
92
 
105
-
106
93
  ### Bug Fixes
107
94
 
108
- * fix e2e test handling and update packages ([54237a9](https://github.com/lenneTech/nuxt-base-starter/commit/54237a9a3d3cac617fc36de1a2f47dfb50ca9ba9))
109
- * 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))
110
97
 
111
98
  ### [0.2.8](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.7...v0.2.8) (2024-09-30)
112
99
 
113
-
114
100
  ### Bug Fixes
115
101
 
116
- * 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))
117
103
 
118
104
  ### [0.2.7](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.6...v0.2.7) (2024-09-05)
119
105
 
120
-
121
106
  ### Features
122
107
 
123
- * 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))
124
109
 
125
110
  ### [0.2.6](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.5...v0.2.6) (2024-09-02)
126
111
 
127
-
128
112
  ### Features
129
113
 
130
- * 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))
131
115
 
132
116
  ### [0.2.5](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.4...v0.2.5) (2024-07-01)
133
117
 
134
-
135
118
  ### Features
136
119
 
137
- * add useFormHelper ([af4323d](https://github.com/lenneTech/nuxt-base-starter/commit/af4323d821df736d016ac34b5d7f0fd4072e8092))
138
- * 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))
139
122
 
140
123
  ### [0.2.4](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.3...v0.2.4) (2024-05-29)
141
124
 
142
125
  ### [0.2.3](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.2...v0.2.3) (2024-02-20)
143
126
 
144
-
145
127
  ### Features
146
128
 
147
- * Remove components because of new cli components command ([6380979](https://github.com/lenneTech/nuxt-base-starter/commit/6380979ba7ca46ce6058f4e1dea4e511d1d0ea9d))
148
-
129
+ - Remove components because of new cli components command ([6380979](https://github.com/lenneTech/nuxt-base-starter/commit/6380979ba7ca46ce6058f4e1dea4e511d1d0ea9d))
149
130
 
150
131
  ### Bug Fixes
151
132
 
152
- * 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))
153
134
 
154
135
  ### [0.2.2](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.1...v0.2.2) (2024-02-19)
155
136
 
156
-
157
137
  ### Features
158
138
 
159
- * update packages ([442eb2d](https://github.com/lenneTech/nuxt-base-starter/commit/442eb2d83ba0c01159440685d7dbcc63aefb08e6))
160
-
139
+ - update packages ([442eb2d](https://github.com/lenneTech/nuxt-base-starter/commit/442eb2d83ba0c01159440685d7dbcc63aefb08e6))
161
140
 
162
141
  ### Bug Fixes
163
142
 
164
- * 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))
165
144
 
166
145
  ### [0.2.1](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.0...v0.2.1) (2024-02-02)
167
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: {