create-nuxt-base 0.1.23 → 0.2.0

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 (72) hide show
  1. package/.eslintignore +14 -0
  2. package/.eslintrc +3 -0
  3. package/.github/workflows/release.yml +1 -1
  4. package/.prettierignore +5 -0
  5. package/.prettierrc +6 -0
  6. package/.vscode/settings.json +10 -10
  7. package/CHANGELOG.md +20 -33
  8. package/README.md +1 -0
  9. package/index.js +30 -29
  10. package/nuxt-base-template/.env.example +8 -0
  11. package/nuxt-base-template/.eslintrc +1 -1
  12. package/nuxt-base-template/.vscode/settings.json +6 -16
  13. package/nuxt-base-template/nuxt.config.ts +27 -12
  14. package/nuxt-base-template/package-lock.json +5772 -4389
  15. package/nuxt-base-template/package.json +45 -29
  16. package/nuxt-base-template/src/app.vue +4 -4
  17. package/nuxt-base-template/src/assets/css/tailwind.css +42 -33
  18. package/nuxt-base-template/src/components/SocialMediaBubble.vue +1 -1
  19. package/nuxt-base-template/src/components/base/BaseAccordion.vue +16 -13
  20. package/nuxt-base-template/src/components/base/BaseButton.vue +10 -13
  21. package/nuxt-base-template/src/components/base/BaseContainer.vue +1 -1
  22. package/nuxt-base-template/src/components/base/BaseContextMenuContainer.vue +61 -0
  23. package/nuxt-base-template/src/components/base/BaseInfinityList.vue +1 -1
  24. package/nuxt-base-template/src/components/base/BaseProgressbar.vue +28 -30
  25. package/nuxt-base-template/src/components/base/BaseToggle.vue +17 -10
  26. package/nuxt-base-template/src/components/form/FormInput.vue +34 -0
  27. package/nuxt-base-template/src/components/form/FormPassword.vue +47 -0
  28. package/nuxt-base-template/src/components/form/FormSelect.vue +40 -0
  29. package/nuxt-base-template/src/components/form/FormSubmit.vue +18 -0
  30. package/nuxt-base-template/src/components/form/FormTextarea.vue +36 -0
  31. package/nuxt-base-template/src/components/form/FormToggle.vue +27 -0
  32. package/nuxt-base-template/src/components/modal/Modal.vue +48 -0
  33. package/nuxt-base-template/src/components/modal/ModalConfirm.vue +38 -0
  34. package/nuxt-base-template/src/components/{base/BaseModalContainer.vue → modal/ModalContainer.vue} +1 -1
  35. package/nuxt-base-template/src/components/modal/ModalInfo.vue +22 -0
  36. package/nuxt-base-template/src/components/{ModalShare.vue → modal/ModalShare.vue} +7 -11
  37. package/nuxt-base-template/src/components/{base/BaseNotification.vue → notification/Notification.vue} +8 -7
  38. package/nuxt-base-template/src/components/{base/BaseNotificationContainer.vue → notification/NotificationContainer.vue} +11 -5
  39. package/nuxt-base-template/src/components/pwa/pwa-install-banner.vue +224 -0
  40. package/nuxt-base-template/src/components/transition/TransitionFade.vue +10 -7
  41. package/nuxt-base-template/src/components/transition/TransitionFadeScale.vue +10 -7
  42. package/nuxt-base-template/src/composables/use-auth-fetch.ts +22 -8
  43. package/nuxt-base-template/src/composables/use-context-menu.ts +19 -0
  44. package/nuxt-base-template/src/composables/use-file.ts +1 -2
  45. package/nuxt-base-template/src/composables/use-modal.ts +1 -1
  46. package/nuxt-base-template/src/composables/use-notification.ts +2 -2
  47. package/nuxt-base-template/src/composables/use-share.ts +3 -3
  48. package/nuxt-base-template/src/error.vue +10 -14
  49. package/nuxt-base-template/src/layouts/default.vue +13 -0
  50. package/nuxt-base-template/src/middleware/auth.global.ts +2 -2
  51. package/nuxt-base-template/src/pages/index.vue +31 -6
  52. package/nuxt-base-template/src/plugins/auth.server.ts +72 -0
  53. package/nuxt-base-template/src/plugins/form.plugin.ts +21 -0
  54. package/nuxt-base-template/src/plugins/pwa.plugin.ts +110 -0
  55. package/nuxt-base-template/src/tests/init.test.ts +1 -1
  56. package/nuxt-base-template/tailwind.config.js +33 -23
  57. package/nuxt-base-template/vitest.config.js +3 -3
  58. package/package.json +3 -1
  59. package/nuxt-base-template/formkit-theme.js +0 -137
  60. package/nuxt-base-template/formkit.config.js +0 -33
  61. package/nuxt-base-template/src/components/hello-world.vue +0 -10
  62. package/nuxt-base-template/src/composables/use-form-helper.ts +0 -100
  63. package/nuxt-base-template/src/composables/use-helper.ts +0 -52
  64. package/nuxt-base-template/src/forms/inputs/InputCheckbox.vue +0 -29
  65. package/nuxt-base-template/src/forms/inputs/InputFreeTags.vue +0 -98
  66. package/nuxt-base-template/src/forms/inputs/InputImage.vue +0 -65
  67. package/nuxt-base-template/src/forms/inputs/InputTags.vue +0 -112
  68. package/nuxt-base-template/src/forms/inputs/InputToggle.vue +0 -18
  69. package/nuxt-base-template/src/forms/plugins/asterisk-plugin.ts +0 -29
  70. package/nuxt-base-template/src/forms/plugins/scroll-error-plugin.ts +0 -36
  71. package/nuxt-base-template/src/forms/plugins/value-changes-plugin.ts +0 -13
  72. package/nuxt-base-template/src/plugins/4.auth.server.ts +0 -70
package/.eslintignore ADDED
@@ -0,0 +1,14 @@
1
+ *.md
2
+ .gitignore
3
+ .eslintrc
4
+ package.json
5
+ package-lock.json
6
+ README.md
7
+ vitest.config.js
8
+ tailwind.config.js
9
+ .lintstagedrc
10
+ .husky
11
+ yarn.lock
12
+ .gitlab-ci.yml
13
+ lerna.json
14
+ assets/**
package/.eslintrc ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "@lenne.tech/vue"
3
+ }
@@ -19,4 +19,4 @@ jobs:
19
19
  - uses: ncipollo/release-action@v1
20
20
  with:
21
21
  bodyFile: 'RELEASE_NOTES.md'
22
- token: ${{ secrets.GITHUB_TOKEN }}
22
+ token: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,5 @@
1
+ .nuxt
2
+ .output
3
+ node_modules
4
+ dist
5
+ .env
package/.prettierrc ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "arrowParens": "always",
3
+ "printWidth": 180,
4
+ "semi": true,
5
+ "singleQuote": true
6
+ }
@@ -1,11 +1,11 @@
1
1
  {
2
- "files.exclude": {
3
- "**/.git": true,
4
- "**/.svn": true,
5
- "**/.hg": true,
6
- "**/CVS": true,
7
- "**/.DS_Store": true,
8
- "**/Thumbs.db": true
9
- },
10
- "hide-files.files": []
11
- }
2
+ "files.exclude": {
3
+ "**/.git": true,
4
+ "**/.svn": true,
5
+ "**/.hg": true,
6
+ "**/CVS": true,
7
+ "**/.DS_Store": true,
8
+ "**/Thumbs.db": true
9
+ },
10
+ "hide-files.files": []
11
+ }
package/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
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.2.0](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.23...v0.2.0) (2024-02-02)
6
+
5
7
  ### [0.1.23](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.22...v0.1.23) (2023-10-21)
6
8
 
7
9
  ### [0.1.22](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.21...v0.1.22) (2023-10-21)
@@ -10,114 +12,99 @@ All notable changes to this project will be documented in this file. See [standa
10
12
 
11
13
  ### [0.1.20](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.19...v0.1.20) (2023-07-03)
12
14
 
13
-
14
15
  ### Features
15
16
 
16
- * Add package-lock and remove auto-start ([500a7ee](https://github.com/lenneTech/nuxt-base-starter/commit/500a7eeca81de331929d314e7dfebeb19fc0b0c4))
17
+ - Add package-lock and remove auto-start ([500a7ee](https://github.com/lenneTech/nuxt-base-starter/commit/500a7eeca81de331929d314e7dfebeb19fc0b0c4))
17
18
 
18
19
  ### [0.1.19](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.18...v0.1.19) (2023-07-02)
19
20
 
20
-
21
21
  ### Features
22
22
 
23
- * added eslint-config ([d0f9146](https://github.com/lenneTech/nuxt-base-starter/commit/d0f9146eba44a72c839be8996357a9f2a55e8737))
24
- * updated eslint-config version ([2f1ef56](https://github.com/lenneTech/nuxt-base-starter/commit/2f1ef56b67eb4866908753f67e9b27b98a174543))
23
+ - added eslint-config ([d0f9146](https://github.com/lenneTech/nuxt-base-starter/commit/d0f9146eba44a72c839be8996357a9f2a55e8737))
24
+ - updated eslint-config version ([2f1ef56](https://github.com/lenneTech/nuxt-base-starter/commit/2f1ef56b67eb4866908753f67e9b27b98a174543))
25
25
 
26
26
  ### [0.1.18](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.17...v0.1.18) (2023-06-26)
27
27
 
28
-
29
28
  ### Features
30
29
 
31
- * add init command ([defa0a4](https://github.com/lenneTech/nuxt-base-starter/commit/defa0a46b4d9d0fa0448afddcb2db25d41252159))
30
+ - add init command ([defa0a4](https://github.com/lenneTech/nuxt-base-starter/commit/defa0a46b4d9d0fa0448afddcb2db25d41252159))
32
31
 
33
32
  ### [0.1.17](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.16...v0.1.17) (2023-06-26)
34
33
 
35
34
  ### [0.1.16](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.15...v0.1.16) (2023-06-12)
36
35
 
37
-
38
36
  ### Bug Fixes
39
37
 
40
- * fix vueuse integration ([0fdc1ee](https://github.com/lenneTech/nuxt-base-starter/commit/0fdc1ee1365bade6157620c307c7efe6080a4f4f))
38
+ - fix vueuse integration ([0fdc1ee](https://github.com/lenneTech/nuxt-base-starter/commit/0fdc1ee1365bade6157620c307c7efe6080a4f4f))
41
39
 
42
40
  ### [0.1.15](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.14...v0.1.15) (2023-06-12)
43
41
 
44
-
45
42
  ### Bug Fixes
46
43
 
47
- * fix install ([8159d1c](https://github.com/lenneTech/nuxt-base-starter/commit/8159d1cfb7c7ad03ac563d2744857c6a21e9fda5))
44
+ - fix install ([8159d1c](https://github.com/lenneTech/nuxt-base-starter/commit/8159d1cfb7c7ad03ac563d2744857c6a21e9fda5))
48
45
 
49
46
  ### [0.1.14](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.13...v0.1.14) (2023-06-12)
50
47
 
51
-
52
48
  ### Features
53
49
 
54
- * remove storybook and add updates ([af33d31](https://github.com/lenneTech/nuxt-base-starter/commit/af33d317717ee0c3109b1730708ebd863293485a))
50
+ - remove storybook and add updates ([af33d31](https://github.com/lenneTech/nuxt-base-starter/commit/af33d317717ee0c3109b1730708ebd863293485a))
55
51
 
56
52
  ### [0.1.13](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.12...v0.1.13) (2023-04-23)
57
53
 
58
54
  ### [0.1.12](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.11...v0.1.12) (2023-04-01)
59
55
 
60
-
61
56
  ### Features
62
57
 
63
- * Add some usefull scripts ([05102f9](https://github.com/lenneTech/nuxt-base-starter/commit/05102f91fcf098aef211db9c15b583bb7fd0aacf))
64
- * Set nuxt-base watch prop default to false ([48189ea](https://github.com/lenneTech/nuxt-base-starter/commit/48189ea30501b698e2edb7d4cdfc56006964839f))
58
+ - Add some usefull scripts ([05102f9](https://github.com/lenneTech/nuxt-base-starter/commit/05102f91fcf098aef211db9c15b583bb7fd0aacf))
59
+ - Set nuxt-base watch prop default to false ([48189ea](https://github.com/lenneTech/nuxt-base-starter/commit/48189ea30501b698e2edb7d4cdfc56006964839f))
65
60
 
66
61
  ### [0.1.11](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.10...v0.1.11) (2023-04-01)
67
62
 
68
-
69
63
  ### Features
70
64
 
71
- * Add default formatter in vscode ([b9a98b5](https://github.com/lenneTech/nuxt-base-starter/commit/b9a98b58ddd6f08136e3c46a1cfe4a6f7ec1e0e0))
65
+ - Add default formatter in vscode ([b9a98b5](https://github.com/lenneTech/nuxt-base-starter/commit/b9a98b58ddd6f08136e3c46a1cfe4a6f7ec1e0e0))
72
66
 
73
67
  ### [0.1.10](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.9...v0.1.10) (2023-04-01)
74
68
 
75
-
76
69
  ### Bug Fixes
77
70
 
78
- * fix package.json ([d277732](https://github.com/lenneTech/nuxt-base-starter/commit/d277732b5c2af1c8dd6d5eed7f10875016ddebe2))
71
+ - fix package.json ([d277732](https://github.com/lenneTech/nuxt-base-starter/commit/d277732b5c2af1c8dd6d5eed7f10875016ddebe2))
79
72
 
80
73
  ### [0.1.9](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.8...v0.1.9) (2023-04-01)
81
74
 
82
-
83
75
  ### Features
84
76
 
85
- * Add pinia ([230246a](https://github.com/lenneTech/nuxt-base-starter/commit/230246ab16c16122255ad697dfc506fc417a2649))
77
+ - Add pinia ([230246a](https://github.com/lenneTech/nuxt-base-starter/commit/230246ab16c16122255ad697dfc506fc417a2649))
86
78
 
87
79
  ### [0.1.8](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.7...v0.1.8) (2023-03-31)
88
80
 
89
-
90
81
  ### Features
91
82
 
92
- * Add version check ([fe85709](https://github.com/lenneTech/nuxt-base-starter/commit/fe857099af96fa3fda0e06faecbd483e59f279fd))
93
- * Remove package-lock.json ([149a88a](https://github.com/lenneTech/nuxt-base-starter/commit/149a88ab9917a9738ed5916a3604dd50557405d8))
83
+ - Add version check ([fe85709](https://github.com/lenneTech/nuxt-base-starter/commit/fe857099af96fa3fda0e06faecbd483e59f279fd))
84
+ - Remove package-lock.json ([149a88a](https://github.com/lenneTech/nuxt-base-starter/commit/149a88ab9917a9738ed5916a3604dd50557405d8))
94
85
 
95
86
  ### [0.1.7](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.6...v0.1.7) (2023-03-31)
96
87
 
97
-
98
88
  ### Features
99
89
 
100
- * Add webhook url secret ([5719919](https://github.com/lenneTech/nuxt-base-starter/commit/57199194d95aa15783d1f04a2216db1580f493d4))
90
+ - Add webhook url secret ([5719919](https://github.com/lenneTech/nuxt-base-starter/commit/57199194d95aa15783d1f04a2216db1580f493d4))
101
91
 
102
92
  ### [0.1.6](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.5...v0.1.6) (2023-03-31)
103
93
 
104
-
105
94
  ### Features
106
95
 
107
- * Change default host ([b026fed](https://github.com/lenneTech/nuxt-base-starter/commit/b026fed7eaf8c5964bac5cc4a5c37074878a8d30))
96
+ - Change default host ([b026fed](https://github.com/lenneTech/nuxt-base-starter/commit/b026fed7eaf8c5964bac5cc4a5c37074878a8d30))
108
97
 
109
98
  ### [0.1.5](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.4...v0.1.5) (2023-03-31)
110
99
 
111
-
112
100
  ### Features
113
101
 
114
- * Add release workflow ([fd3720c](https://github.com/lenneTech/nuxt-base-starter/commit/fd3720c62454cd16ca92b8614e9225af2149b547))
102
+ - Add release workflow ([fd3720c](https://github.com/lenneTech/nuxt-base-starter/commit/fd3720c62454cd16ca92b8614e9225af2149b547))
115
103
 
116
104
  ### [0.1.4](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.3...v0.1.4) (2023-03-31)
117
105
 
118
106
  ### [0.1.3](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.2...v0.1.3) (2023-03-31)
119
107
 
120
-
121
108
  ### Features
122
109
 
123
- * Add standard version ([08ec915](https://github.com/lenneTech/nuxt-base-starter/commit/08ec9159dd831a76714a7677500dce20ce4347fa))
110
+ - Add standard version ([08ec915](https://github.com/lenneTech/nuxt-base-starter/commit/08ec9159dd831a76714a7677500dce20ce4347fa))
package/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # Nuxt Starter
2
+
2
3
  This is a starter template to create a Nuxt 3 development environment including Tailwind, Pinia, VueUse, Nuxt Base, Eslint, Cypress with Cucumber, Unit Tests.
3
4
 
4
5
  Just run the following command to create your Nuxt environment:
package/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  async function create() {
4
- const spawn = require("cross-spawn");
5
- const fs = require("fs");
6
- const path = require("path");
7
- const childProcess = require("child_process");
4
+ const spawn = require('cross-spawn');
5
+ const fs = require('fs');
6
+ const path = require('path');
7
+ const childProcess = require('child_process');
8
8
  const pjson = require('./package.json');
9
9
 
10
10
  console.log('ℹ️ create-nuxt-base started in version ', pjson.version);
@@ -25,7 +25,7 @@ async function create() {
25
25
  const autoStart = process.argv[3] === 'auto-start';
26
26
 
27
27
  if (!projectName) {
28
- console.error("Please provide a valid project name.");
28
+ console.error('Please provide a valid project name.');
29
29
  process.exit(-1);
30
30
  }
31
31
 
@@ -37,37 +37,39 @@ async function create() {
37
37
  process.exit(-1);
38
38
  }
39
39
 
40
- await copyFiles(__dirname + "/nuxt-base-template", projectDir);
40
+ await copyFiles(__dirname + '/nuxt-base-template', projectDir);
41
41
 
42
- const projectPackageJson = require(path.join(projectDir, "package.json"));
42
+ // Copy .env
43
+ await copyFiles(__dirname + '/nuxt-base-template/.env.example', projectDir + '/.env');
44
+
45
+ const projectPackageJson = require(path.join(projectDir, 'package.json'));
43
46
 
44
47
  // Update the project's package.json with the new project name
45
48
  projectPackageJson.name = projectName;
46
49
 
47
- fs.writeFileSync(
48
- path.join(projectDir, "package.json"),
49
- JSON.stringify(projectPackageJson, null, 2)
50
- );
50
+ fs.writeFileSync(path.join(projectDir, 'package.json'), JSON.stringify(projectPackageJson, null, 2));
51
51
 
52
52
  process.chdir(projectName);
53
53
 
54
- const gitInit = childProcess.exec("git init");
54
+ const gitInit = childProcess.exec('git init');
55
55
  await waitForChildProcess(gitInit);
56
56
 
57
- console.log("Installing dependencies ...");
58
- const npmInstall = spawn("npm", ["install"], { stdio: "inherit" });
57
+ console.log('Installing dependencies ...');
58
+ const npmInstall = spawn('npm', ['install'], { stdio: 'inherit' });
59
59
  await waitForSpawn(npmInstall);
60
60
 
61
- console.log("Success! Your new project is ready. 🎉");
61
+ const removeGit = spawn('rm', ['-rf', '.git'], { stdio: 'inherit' });
62
+ await waitForSpawn(removeGit);
63
+
64
+ console.log('Success! Your new project is ready. 🎉');
62
65
 
63
66
  if (autoStart) {
64
- console.log("Building Project ...");
65
- const npmRunBuild = spawn("npm", ["run", "build"], { stdio: "inherit" });
67
+ console.log('Building Project ...');
68
+ const npmRunBuild = spawn('npm', ['run', 'build'], { stdio: 'inherit' });
66
69
  await waitForSpawn(npmRunBuild)
67
- .then(() => console.log("✅ Project was successfully built"))
68
- .catch(() => console.log("❌ Error while building the project"));
69
-
70
-
70
+ .then(() => console.log('✅ Project was successfully built'))
71
+ .catch(() => console.log('❌ Error while building the project'));
72
+
71
73
  console.log(`Created ${projectName} at ${projectDir} 💾`);
72
74
  console.log(`Launching ${projectName} in: 3 💥`);
73
75
  await waitForMS(1000);
@@ -77,16 +79,15 @@ async function create() {
77
79
  await waitForMS(1000);
78
80
  console.log(`Launching ${projectName} ... 🚀`);
79
81
  await waitForMS(1000);
80
- const npmRunDev = spawn("npm", ["run", "start"], { stdio: "inherit" });
82
+ const npmRunDev = spawn('npm', ['run', 'start'], { stdio: 'inherit' });
81
83
  await waitForSpawn(npmRunDev);
82
84
  }
83
-
84
85
  }
85
86
 
86
87
  function waitForSpawn(spawn) {
87
88
  return new Promise((resolve, reject) => {
88
- spawn.on("exit", () => resolve(true));
89
- spawn.on("error", () => reject());
89
+ spawn.on('exit', () => resolve(true));
90
+ spawn.on('error', () => reject());
90
91
  });
91
92
  }
92
93
 
@@ -100,20 +101,20 @@ function waitForMS(ms) {
100
101
 
101
102
  function waitForChildProcess(process) {
102
103
  return new Promise((resolve, reject) => {
103
- process.stdout.on("data", (data) => {
104
+ process.stdout.on('data', (data) => {
104
105
  resolve(data);
105
106
  });
106
- process.stdout.on("error", (err) => {
107
+ process.stdout.on('error', (err) => {
107
108
  reject(err);
108
109
  });
109
110
  });
110
111
  }
111
112
 
112
113
  async function copyFiles(from, to) {
113
- const fse = require("fs-extra");
114
+ const fse = require('fs-extra');
114
115
  try {
115
116
  await fse.copy(from, to);
116
- console.log("Copied nuxt base template successfully!");
117
+ console.log('Copied nuxt base template successfully!');
117
118
  } catch (err) {
118
119
  console.error(err);
119
120
  process.exit(-1);
@@ -0,0 +1,8 @@
1
+ SITE_URL=http://localhost:3001
2
+ NODE_ENV=development
3
+ API_URL=http://localhost:3000
4
+ WEB_PUSH_KEY=
5
+ API_SCHEMA=../api/schema.gql
6
+ STORAGE_PREFIX=base-dev
7
+ GENERATE_TYPES=0
8
+
@@ -1,3 +1,3 @@
1
1
  {
2
- "extends": "@lenne.tech/vue"
2
+ "extends": "@lenne.tech/vue"
3
3
  }
@@ -3,26 +3,16 @@
3
3
  "editor.formatOnSave": true,
4
4
  "eslint.alwaysShowStatus": true,
5
5
  "eslint.options": {
6
- "extensions": [
7
- ".html",
8
- ".js",
9
- ".vue",
10
- ".jsx"
11
- ]
6
+ "extensions": [".html", ".js", ".vue", ".jsx"]
12
7
  },
13
- "eslint.validate": [
14
- "html",
15
- "vue",
16
- "javascript",
17
- "javascriptreact",
18
- ],
8
+ "eslint.validate": ["html", "vue", "javascript", "javascriptreact"],
19
9
  "editor.codeActionsOnSave": {
20
- "source.fixAll.eslint": true
10
+ "source.fixAll.eslint": true
21
11
  },
22
12
  "[javascript]": {
23
- "editor.formatOnSave": false
13
+ "editor.formatOnSave": false
24
14
  },
25
15
  "eslint.format.enable": true,
26
16
  "css.validate": false,
27
- "editor.defaultFormatter": "dbaeumer.vscode-eslint",
28
- }
17
+ "editor.defaultFormatter": "dbaeumer.vscode-eslint"
18
+ }
@@ -7,26 +7,35 @@ export default defineNuxtConfig({
7
7
  '@nuxtjs/tailwindcss',
8
8
  '@lenne.tech/nuxt-base',
9
9
  '@vueuse/nuxt',
10
- '@formkit/nuxt',
11
- '@kevinmarrec/nuxt-pwa',
12
10
  '@nuxtjs/google-fonts',
13
11
  '@nuxtjs/color-mode',
12
+ '@nuxt/image',
13
+ 'nuxt-simple-robots',
14
+ '@nuxtjs/sitemap',
15
+ '@nuxtjs/plausible',
14
16
  ],
17
+ plausible: {
18
+ apiHost: '',
19
+ },
15
20
  experimental: {
16
- typedPages: true,
21
+ asyncContext: true,
17
22
  renderJsonPayloads: false,
23
+ typedPages: true,
24
+ },
25
+ sitemap: {
26
+ exclude: ['/app/**'],
27
+ },
28
+ image: {
29
+ ipx: {
30
+ maxAge: 2592000,
31
+ },
32
+ provider: 'ipx',
18
33
  },
19
34
  nuxtBase: {
20
- host: 'http://localhost:3000/graphql',
21
- schema: '../api/schema.gql',
22
- storagePrefix: 'rk',
23
35
  generateTypes: process.env['GENERATE_TYPES'] === '1',
24
- apollo: {
25
- authType: 'Bearer',
26
- authHeader: 'Authorization',
27
- tokenStorage: 'cookie',
28
- proxyCookies: true,
29
- },
36
+ host: process.env.API_URL + '/graphql',
37
+ schema: process.env.API_SCHEMA,
38
+ storagePrefix: process.env.STORAGE_PREFIX,
30
39
  },
31
40
  app: {
32
41
  head: {
@@ -34,6 +43,12 @@ export default defineNuxtConfig({
34
43
  viewport: 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no',
35
44
  },
36
45
  },
46
+ runtimeConfig: {
47
+ public: {
48
+ apiUrl: process.env.API_URL,
49
+ webPushKey: process.env.WEB_PUSH_KEY,
50
+ },
51
+ },
37
52
  devServer: {
38
53
  port: 3001,
39
54
  },