create-nuxt-base 2.6.6 → 2.7.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.
- package/.claude/agent-memory/lt-dev-npm-package-maintainer/MEMORY.md +1 -0
- package/.claude/agent-memory/lt-dev-npm-package-maintainer/feedback_postcss_override_breadth.md +11 -0
- package/CHANGELOG.md +9 -0
- package/nuxt-base-template/.env.example +19 -8
- package/nuxt-base-template/.nuxtrc +1 -1
- package/nuxt-base-template/CLAUDE.md +82 -30
- package/nuxt-base-template/app/middleware/admin.global.ts +7 -2
- package/nuxt-base-template/app/middleware/auth.global.ts +7 -2
- package/nuxt-base-template/app/middleware/guest.global.ts +7 -2
- package/nuxt-base-template/nuxt.config.ts +3 -3
- package/nuxt-base-template/package.json +26 -23
- package/nuxt-base-template/playwright.config.ts +3 -3
- package/nuxt-base-template/pnpm-lock.yaml +2431 -2131
- package/nuxt-base-template/tests/unit/lt-dev-env.test.ts +43 -0
- package/package.json +2 -2
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Verifies that the .env.example documents the lt-dev defaults the
|
|
3
|
+
* runtime expects. The starter must keep these in sync so a fresh
|
|
4
|
+
* `cp .env.example .env` reflects the lt-dev URL conventions.
|
|
5
|
+
*/
|
|
6
|
+
import { existsSync, readFileSync } from 'node:fs';
|
|
7
|
+
import { join } from 'node:path';
|
|
8
|
+
import { describe, expect, it } from 'vitest';
|
|
9
|
+
|
|
10
|
+
const envFile = join(__dirname, '..', '..', '.env.example');
|
|
11
|
+
|
|
12
|
+
describe('.env.example — lt dev keys', () => {
|
|
13
|
+
it('exists', () => {
|
|
14
|
+
expect(existsSync(envFile)).toBe(true);
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
const content = existsSync(envFile) ? readFileSync(envFile, 'utf8') : '';
|
|
18
|
+
|
|
19
|
+
it('documents NUXT_PUBLIC_SITE_URL with localhost default', () => {
|
|
20
|
+
expect(content).toMatch(/NUXT_PUBLIC_SITE_URL=http:\/\/localhost:3001/);
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
it('documents NUXT_PUBLIC_API_URL with localhost default', () => {
|
|
24
|
+
expect(content).toMatch(/NUXT_PUBLIC_API_URL=http:\/\/localhost:3000/);
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
it('documents NUXT_PUBLIC_STORAGE_PREFIX (cross-project namespacing)', () => {
|
|
28
|
+
expect(content).toMatch(/NUXT_PUBLIC_STORAGE_PREFIX=/);
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
it('documents NUXT_PUBLIC_API_PROXY (set to true for classic local dev)', () => {
|
|
32
|
+
expect(content).toMatch(/NUXT_PUBLIC_API_PROXY=true/);
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
it('explains that lt dev up sets NUXT_PUBLIC_API_PROXY=false', () => {
|
|
36
|
+
expect(content).toMatch(/lt dev up.*NUXT_PUBLIC_API_PROXY=false/s);
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
it('explains URLs are overridden under lt dev', () => {
|
|
40
|
+
expect(content).toMatch(/lt dev up/);
|
|
41
|
+
expect(content).toMatch(/<slug>\.localhost/);
|
|
42
|
+
});
|
|
43
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-nuxt-base",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"description": "Starter to generate a configured environment with VueJS, Nuxt, Tailwind, Linting, Unit Tests, Playwright etc.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "lenne.Tech GmbH",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"cross-spawn": "7.0.6",
|
|
29
|
-
"fs-extra": "11.3.
|
|
29
|
+
"fs-extra": "11.3.5"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"oxfmt": "latest",
|