create-nuxt-base 0.2.10 → 0.3.4

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 (29) hide show
  1. package/.github/workflows/publish.yml +18 -8
  2. package/.github/workflows/release.yml +3 -1
  3. package/CHANGELOG.md +40 -0
  4. package/index.js +1 -1
  5. package/nuxt-base-template/eslint.config.mjs +3 -0
  6. package/nuxt-base-template/nuxt.config.ts +8 -1
  7. package/nuxt-base-template/package.json +42 -44
  8. package/nuxt-base-template/pnpm-lock.yaml +14502 -0
  9. package/nuxt-base-template/postbuild.js +12 -0
  10. package/nuxt-base-template/src/app.vue +1 -1
  11. package/nuxt-base-template/src/assets/css/tailwind.css +49 -4
  12. package/nuxt-base-template/src/components/Transition/TransitionFade.vue +4 -4
  13. package/nuxt-base-template/src/components/Transition/TransitionFadeScale.vue +4 -4
  14. package/nuxt-base-template/src/composables/use-context-menu.ts +3 -3
  15. package/nuxt-base-template/src/composables/use-form-helper.ts +1 -3
  16. package/nuxt-base-template/src/composables/use-modal.ts +7 -7
  17. package/nuxt-base-template/src/composables/use-notification.ts +4 -4
  18. package/nuxt-base-template/src/composables/use-share.ts +4 -4
  19. package/nuxt-base-template/src/composables/use-tw.ts +1 -0
  20. package/nuxt-base-template/src/error.vue +1 -1
  21. package/nuxt-base-template/src/middleware/admin.global.ts +1 -1
  22. package/nuxt-base-template/src/middleware/auth.global.ts +1 -1
  23. package/nuxt-base-template/src/middleware/logged-in.global.ts +1 -1
  24. package/nuxt-base-template/src/plugins/form.plugin.ts +2 -2
  25. package/nuxt-base-template/src/plugins/pwa.plugin.ts +9 -5
  26. package/nuxt-base-template/tailwind.config.js +2 -39
  27. package/package.json +16 -12
  28. package/nuxt-base-template/.eslintrc +0 -3
  29. package/nuxt-base-template/package-lock.json +0 -20721
@@ -12,16 +12,26 @@ jobs:
12
12
  publish:
13
13
  runs-on: ubuntu-latest
14
14
  steps:
15
- - uses: actions/checkout@v1
16
- - name: Use Node.js 18
17
- uses: actions/setup-node@v1
15
+ - uses: actions/checkout@v4
16
+
17
+ - uses: pnpm/action-setup@v4
18
+ with:
19
+ version: 10
20
+
21
+ - name: Use Node LTS ✨
22
+ uses: actions/setup-node@v4
18
23
  with:
19
- node-version: 18.14.1
20
- - run: npm install
21
- - uses: JS-DevTools/npm-publish@v1
24
+ node-version: lts/*
25
+ registry-url: https://registry.npmjs.org
26
+ cache: pnpm
27
+
28
+ - name: Install dependencies 📦️
29
+ run: pnpm install --frozen-lockfile
30
+
31
+ - uses: simenandre/publish-with-pnpm@v2
22
32
  with:
23
- access: public
24
- token: ${{ secrets.NPM_TOKEN }}
33
+ npm-auth-token: ${{ secrets.NPM_TOKEN }}
34
+
25
35
  - name: Deploy notification
26
36
  if: always()
27
37
  uses: adamkdean/simple-slack-notify@master
@@ -11,11 +11,13 @@ jobs:
11
11
  permissions:
12
12
  contents: write
13
13
  steps:
14
- - uses: actions/checkout@v2
14
+ - uses: actions/checkout@v4
15
15
  with:
16
16
  fetch-depth: 3
17
+
17
18
  - name: Create release notes
18
19
  run: diff --changed-group-format='%>' --unchanged-group-format='' <( git show HEAD~1:CHANGELOG.md ) CHANGELOG.md > RELEASE_NOTES.md || true
20
+
19
21
  - uses: ncipollo/release-action@v1
20
22
  with:
21
23
  bodyFile: 'RELEASE_NOTES.md'
package/CHANGELOG.md CHANGED
@@ -2,6 +2,46 @@
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.4](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.3...v0.3.4) (2025-02-06)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * fix build command in action ([aad99db](https://github.com/lenneTech/nuxt-base-starter/commit/aad99dbd0381ab22b952d1238e5590124c2f212e))
11
+
12
+ ### [0.3.3](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.2...v0.3.3) (2025-02-06)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * fix build command in action ([090f190](https://github.com/lenneTech/nuxt-base-starter/commit/090f19019331e9d5b00754c8d0d502dfa60b765c))
18
+
19
+ ### [0.3.2](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.1...v0.3.2) (2025-02-06)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * adjust github action versions ([fd59c6d](https://github.com/lenneTech/nuxt-base-starter/commit/fd59c6d024196045f1c561cfd6d97ec78d5b2ff3))
25
+
26
+ ### [0.3.1](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.0...v0.3.1) (2025-02-06)
27
+
28
+
29
+ ### Features
30
+
31
+ * Update to tailwind v4 and change from npm to pnpm ([7457db9](https://github.com/lenneTech/nuxt-base-starter/commit/7457db9ac296ace89e39b4e7e916ee8d25c2eda7))
32
+
33
+ ## [0.3.0](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.10...v0.3.0) (2025-01-29)
34
+
35
+
36
+ ### Features
37
+
38
+ * **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))
39
+
40
+
41
+ ### Bug Fixes
42
+
43
+ * **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))
44
+
5
45
  ### [0.2.10](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.9...v0.2.10) (2024-10-22)
6
46
 
7
47
 
package/index.js CHANGED
@@ -58,7 +58,7 @@ async function create() {
58
58
  const npmInstall = spawn('npm', ['install'], { stdio: 'inherit' });
59
59
  await waitForSpawn(npmInstall);
60
60
 
61
- const removeGit = spawn('rm', ['-rf', '.git'], { stdio: 'inherit' });
61
+ const removeGit = spawn('npx', ['rimraf', '.git'], { stdio: 'inherit' });
62
62
  await waitForSpawn(removeGit);
63
63
 
64
64
  console.log('Success! Your new project is ready. 🎉');
@@ -0,0 +1,3 @@
1
+ import vue from '@lenne.tech/eslint-config-vue';
2
+
3
+ export default vue;
@@ -1,4 +1,6 @@
1
1
  // https://nuxt.com/docs/api/configuration/nuxt-config
2
+ import tailwindcss from '@tailwindcss/vite'
3
+
2
4
  export default defineNuxtConfig({
3
5
  ssr: true,
4
6
 
@@ -8,7 +10,6 @@ export default defineNuxtConfig({
8
10
 
9
11
  modules: [
10
12
  '@nuxt/test-utils/module',
11
- '@nuxtjs/tailwindcss',
12
13
  '@lenne.tech/nuxt-base',
13
14
  '@vueuse/nuxt',
14
15
  '@nuxtjs/google-fonts',
@@ -19,6 +20,12 @@ export default defineNuxtConfig({
19
20
  '@nuxtjs/plausible',
20
21
  ],
21
22
 
23
+ css: ['~/assets/css/tailwind.css'],
24
+
25
+ vite: {
26
+ plugins: [tailwindcss()],
27
+ },
28
+
22
29
  plausible: {
23
30
  apiHost: '',
24
31
  },
@@ -2,9 +2,13 @@
2
2
  "name": "nuxt-base-template",
3
3
  "private": true,
4
4
  "type": "module",
5
+ "engines": {
6
+ "node": ">=20",
7
+ "pnpm": ">=9"
8
+ },
5
9
  "scripts": {
6
10
  "init": "npm install",
7
- "reinit": "rm -rf node_modules && rm -rf package-lock.json && yes | npx nuxt cleanup && npm cache clean --force && npm i",
11
+ "reinit": "npx rimraf package-lock.json && npx nuxt cleanup && npx rimraf node_modules && npm cache clean --force && npm i",
8
12
  "build": "nuxt build",
9
13
  "app:build": "npm run build",
10
14
  "build:develop": "nuxt build",
@@ -14,62 +18,56 @@
14
18
  "start:test": "node .output/server/index.mjs",
15
19
  "start:prod": "node .output/server/index.mjs",
16
20
  "start:tunnel": "nuxt dev --tunnel",
17
- "start:extern": "HOST=0.0.0.0 nuxt dev",
18
- "generate-types": "rm -rf ./src/base && GENERATE_TYPES=1 nuxt dev",
21
+ "start:extern": "npx cross-env HOST=0.0.0.0 nuxt dev",
22
+ "generate-types": "npx rimraf ./src/base && npx cross-env GENERATE_TYPES=1 nuxt dev",
19
23
  "dev": "nuxt dev",
20
24
  "generate": "nuxt generate",
21
25
  "preview": "nuxt preview",
22
26
  "postinstall": "nuxt prepare",
23
27
  "app:e2e": "playwright test",
24
28
  "test": "echo 'No test specified' && exit 0",
25
- "lint": "eslint --ext .ts,.js,.vue .",
26
- "lint:fix": "eslint --ext .ts,.js,.vue . --fix",
27
- "postbuild": "cd .output/server/node_modules/tslib; npm pkg set 'exports[.].import.node'='./tslib.es6.mjs'"
29
+ "lint": "eslint 'src/**/*.{ts,js,vue}'",
30
+ "lint:fix": "eslint 'src/**/*.{ts,js,vue}' --fix",
31
+ "postbuild": "node postbuild.js"
28
32
  },
29
33
  "dependencies": {
30
- "@egoist/tailwindcss-icons": "1.8.1",
31
- "@iconify-json/bi": "1.2.1",
32
- "@lenne.tech/nuxt-base": "3.21.0",
33
- "@nuxt/image": "1.8.1",
34
- "@vee-validate/yup": "4.14.3",
35
- "@vueuse/core": "11.1.0",
36
- "@vueuse/integrations": "11.1.0",
37
- "@vueuse/nuxt": "11.1.0",
34
+ "@egoist/tailwindcss-icons": "1.9.0",
35
+ "@iconify-json/bi": "1.2.2",
36
+ "@lenne.tech/nuxt-base": "3.25.0",
37
+ "@nuxt/image": "1.9.0",
38
+ "@vee-validate/yup": "4.15.0",
39
+ "@vueuse/core": "12.5.0",
40
+ "@vueuse/integrations": "12.5.0",
41
+ "@vueuse/nuxt": "12.5.0",
38
42
  "ios-pwa-splash": "1.0.0",
39
- "pinia": "2.2.4",
40
- "tailwind-merge": "2.5.4",
41
- "vee-validate": "4.14.3"
43
+ "pinia": "2.3.1",
44
+ "rimraf": "6.0.1",
45
+ "tailwind-merge": "3.0.1",
46
+ "tailwindcss": "^4.0.3",
47
+ "vee-validate": "4.15.0"
42
48
  },
43
49
  "devDependencies": {
44
- "@lenne.tech/eslint-config-vue": "0.0.16",
45
- "@nuxt/devtools": "1.6.0",
46
- "@nuxt/test-utils": "3.14.4",
47
- "@nuxtjs/color-mode": "3.5.1",
50
+ "@lenne.tech/eslint-config-vue": "1.0.5",
51
+ "@nuxt/devtools": "2.0.0",
52
+ "@nuxt/test-utils": "3.15.4",
53
+ "@nuxtjs/color-mode": "3.5.2",
48
54
  "@nuxtjs/google-fonts": "3.2.0",
49
- "@nuxtjs/plausible": "1.0.3",
50
- "@nuxtjs/robots": "4.1.9",
51
- "@nuxtjs/sitemap": "6.1.2",
52
- "@nuxtjs/tailwindcss": "6.12.2",
53
- "@playwright/test": "1.48.1",
54
- "@tailwindcss/forms": "0.5.9",
55
- "@tailwindcss/typography": "0.5.15",
56
- "@types/node": "22.7.8",
57
- "@vitejs/plugin-vue": "5.1.4",
55
+ "@nuxtjs/plausible": "1.2.0",
56
+ "@nuxtjs/robots": "5.2.2",
57
+ "@nuxtjs/sitemap": "7.2.4",
58
+ "@nuxtjs/tailwindcss": "6.13.1",
59
+ "@playwright/test": "1.50.1",
60
+ "@tailwindcss/forms": "0.5.10",
61
+ "@tailwindcss/vite": "4.0.3",
62
+ "@tailwindcss/typography": "0.5.16",
63
+ "@types/node": "22.13.1",
64
+ "@vitejs/plugin-vue": "5.2.1",
58
65
  "@vue/test-utils": "2.4.6",
59
- "eslint": "8.57.1",
60
- "jsdom": "24.1.3",
61
- "nuxt": "3.13.2",
62
- "ts-loader": "9.5.1",
63
- "typescript": "5.6.3"
64
- },
65
- "overrides": {
66
- "vue": "latest",
67
- "@nuxt/test-utils": {
68
- "happy-dom": "13.0.0"
69
- },
70
- "@lenne.tech/eslint-config-vue": {
71
- "eslint": "$eslint"
72
- }
66
+ "eslint": "9.19.0",
67
+ "jsdom": "26.0.0",
68
+ "nuxt": "3.15.4",
69
+ "ts-loader": "9.5.2",
70
+ "typescript": "5.7.3"
73
71
  },
74
72
  "exports": {
75
73
  ".": {