create-nuxt-base 0.3.0 → 0.3.5

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.
@@ -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,41 @@
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](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.4...v0.3.5) (2025-02-06)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **TEC-46:** Ensure .gitignore is copied during setup ([f579ce0](https://github.com/lenneTech/nuxt-base-starter/commit/f579ce0d59c7ffc2da8e4c50c3405fefaf181ede))
11
+
12
+ ### [0.3.4](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.3...v0.3.4) (2025-02-06)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * fix build command in action ([aad99db](https://github.com/lenneTech/nuxt-base-starter/commit/aad99dbd0381ab22b952d1238e5590124c2f212e))
18
+
19
+ ### [0.3.3](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.2...v0.3.3) (2025-02-06)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * fix build command in action ([090f190](https://github.com/lenneTech/nuxt-base-starter/commit/090f19019331e9d5b00754c8d0d502dfa60b765c))
25
+
26
+ ### [0.3.2](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.1...v0.3.2) (2025-02-06)
27
+
28
+
29
+ ### Bug Fixes
30
+
31
+ * adjust github action versions ([fd59c6d](https://github.com/lenneTech/nuxt-base-starter/commit/fd59c6d024196045f1c561cfd6d97ec78d5b2ff3))
32
+
33
+ ### [0.3.1](https://github.com/lenneTech/nuxt-base-starter/compare/v0.3.0...v0.3.1) (2025-02-06)
34
+
35
+
36
+ ### Features
37
+
38
+ * Update to tailwind v4 and change from npm to pnpm ([7457db9](https://github.com/lenneTech/nuxt-base-starter/commit/7457db9ac296ace89e39b4e7e916ee8d25c2eda7))
39
+
5
40
  ## [0.3.0](https://github.com/lenneTech/nuxt-base-starter/compare/v0.2.10...v0.3.0) (2025-01-29)
6
41
 
7
42
 
package/index.js CHANGED
@@ -39,6 +39,9 @@ async function create() {
39
39
 
40
40
  await copyFiles(__dirname + '/nuxt-base-template', projectDir);
41
41
 
42
+ // Copy .gitignore
43
+ await copyFiles(__dirname + '/nuxt-base-template/.gitignore', projectDir + '/.gitignore');
44
+
42
45
  // Copy .env
43
46
  await copyFiles(__dirname + '/nuxt-base-template/.env.example', projectDir + '/.env');
44
47
 
@@ -1,28 +1,47 @@
1
1
  // https://nuxt.com/docs/api/configuration/nuxt-config
2
+ import tailwindcss from '@tailwindcss/vite'
3
+
2
4
  export default defineNuxtConfig({
3
- app: {
4
- head: {
5
- title: 'Nuxt Base Starter',
6
- viewport: 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no',
7
- },
5
+ ssr: true,
6
+
7
+ spaLoadingTemplate: false,
8
+
9
+ srcDir: './src',
10
+
11
+ modules: [
12
+ '@nuxt/test-utils/module',
13
+ '@lenne.tech/nuxt-base',
14
+ '@vueuse/nuxt',
15
+ '@nuxtjs/google-fonts',
16
+ '@nuxtjs/color-mode',
17
+ '@nuxt/image',
18
+ '@nuxtjs/robots',
19
+ '@nuxtjs/sitemap',
20
+ '@nuxtjs/plausible',
21
+ ],
22
+
23
+ css: ['~/assets/css/tailwind.css'],
24
+
25
+ vite: {
26
+ plugins: [tailwindcss()],
8
27
  },
9
28
 
10
- colorMode: {
11
- classSuffix: '',
29
+ plausible: {
30
+ apiHost: '',
12
31
  },
13
32
 
14
33
  compatibilityDate: '2024-09-05',
15
34
 
16
- devServer: {
17
- port: 3001,
18
- },
19
-
20
35
  experimental: {
21
36
  asyncContext: true,
22
37
  renderJsonPayloads: false,
23
38
  typedPages: true,
24
39
  },
25
40
 
41
+ sitemap: {
42
+ exclude: ['/app/**'],
43
+ },
44
+
26
45
  image: {
27
46
  ipx: {
28
47
  maxAge: 2592000,
@@ -30,23 +49,6 @@ export default defineNuxtConfig({
30
49
  provider: 'ipx',
31
50
  },
32
51
 
33
- imports: {
34
- dirs: ['./states', './stores', './forms', './interfaces', './base', './plugins'],
35
- },
36
-
37
- modules: [
38
- '@nuxt/test-utils/module',
39
- '@nuxtjs/tailwindcss',
40
- '@lenne.tech/nuxt-base',
41
- '@vueuse/nuxt',
42
- '@nuxtjs/google-fonts',
43
- '@nuxtjs/color-mode',
44
- '@nuxt/image',
45
- '@nuxtjs/robots',
46
- '@nuxtjs/sitemap',
47
- '@nuxtjs/plausible',
48
- ],
49
-
50
52
  nuxtBase: {
51
53
  generateTypes: process.env['GENERATE_TYPES'] === '1',
52
54
  gqlHost: process.env.API_URL + '/graphql',
@@ -55,8 +57,11 @@ export default defineNuxtConfig({
55
57
  storagePrefix: process.env.STORAGE_PREFIX,
56
58
  },
57
59
 
58
- plausible: {
59
- apiHost: '',
60
+ app: {
61
+ head: {
62
+ title: 'Nuxt Base Starter',
63
+ viewport: 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no',
64
+ },
60
65
  },
61
66
 
62
67
  runtimeConfig: {
@@ -67,13 +72,13 @@ export default defineNuxtConfig({
67
72
  },
68
73
  },
69
74
 
70
- sitemap: {
71
- exclude: ['/app/**'],
75
+ devServer: {
76
+ port: 3001,
72
77
  },
73
78
 
74
- spaLoadingTemplate: false,
75
-
76
- srcDir: './src',
79
+ colorMode: {
80
+ classSuffix: '',
81
+ },
77
82
 
78
83
  // googleFonts: {
79
84
  // families: {
@@ -85,7 +90,9 @@ export default defineNuxtConfig({
85
90
  // stylePath: '~/assets/css/fonts.css',
86
91
  // },
87
92
 
88
- ssr: true,
93
+ imports: {
94
+ dirs: ['./states', './stores', './forms', './interfaces', './base', './plugins'],
95
+ },
89
96
 
90
97
  telemetry: false,
91
98
  });
@@ -2,6 +2,10 @@
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
11
  "reinit": "npx rimraf package-lock.json && npx nuxt cleanup && npx rimraf node_modules && npm cache clean --force && npm i",
@@ -22,55 +26,48 @@
22
26
  "postinstall": "nuxt prepare",
23
27
  "app:e2e": "playwright test",
24
28
  "test": "echo 'No test specified' && exit 0",
25
- "lint": "eslint '**/*.{ts,js,vue}'",
26
- "lint:fix": "eslint '**/*.{ts,js,vue}' --fix",
29
+ "lint": "eslint 'src/**/*.{ts,js,vue}'",
30
+ "lint:fix": "eslint 'src/**/*.{ts,js,vue}' --fix",
27
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",
43
+ "pinia": "2.3.1",
40
44
  "rimraf": "6.0.1",
41
- "tailwind-merge": "2.5.4",
42
- "vee-validate": "4.14.3"
45
+ "tailwind-merge": "3.0.1",
46
+ "tailwindcss": "^4.0.3",
47
+ "vee-validate": "4.15.0"
43
48
  },
44
49
  "devDependencies": {
45
- "@lenne.tech/eslint-config-vue": "1.0.3",
46
- "@nuxt/devtools": "1.6.0",
47
- "@nuxt/test-utils": "3.14.4",
48
- "@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",
49
54
  "@nuxtjs/google-fonts": "3.2.0",
50
- "@nuxtjs/plausible": "1.0.3",
51
- "@nuxtjs/robots": "4.1.9",
52
- "@nuxtjs/sitemap": "6.1.2",
53
- "@nuxtjs/tailwindcss": "6.12.2",
54
- "@playwright/test": "1.48.1",
55
- "@tailwindcss/forms": "0.5.9",
56
- "@tailwindcss/typography": "0.5.15",
57
- "@types/node": "22.7.8",
58
- "@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",
59
65
  "@vue/test-utils": "2.4.6",
60
- "eslint": "9.17.0",
61
- "jsdom": "24.1.3",
62
- "nuxt": "3.13.2",
63
- "ts-loader": "9.5.1",
64
- "typescript": "5.6.3"
65
- },
66
- "overrides": {
67
- "vue": "latest",
68
- "@nuxt/test-utils": {
69
- "happy-dom": "13.0.0"
70
- },
71
- "@lenne.tech/eslint-config-vue": {
72
- "eslint": "$eslint"
73
- }
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"
74
71
  },
75
72
  "exports": {
76
73
  ".": {