@kevinmarrec/create-app 0.18.1 → 0.19.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/dist/index.mjs CHANGED
@@ -8,10 +8,10 @@ import { x } from "tinyexec";
8
8
  import fs from "node:fs/promises";
9
9
  import os from "node:os";
10
10
  //#region package.json
11
- var version = "0.18.1";
11
+ var version = "0.19.0";
12
12
  //#endregion
13
13
  //#region src/utils/fs.ts
14
- const IGNORED_FILES = new Set([".git"]);
14
+ const IGNORED_FILES = new Set([".git", "node_modules"]);
15
15
  const ignorePredicate = (filename) => IGNORED_FILES.has(filename);
16
16
  async function empty(dir) {
17
17
  const entries = await fs.readdir(dir);
@@ -84,7 +84,10 @@ async function scaffold(root, template) {
84
84
  force: true
85
85
  });
86
86
  }
87
- } else await fs_default.cp(join(import.meta.dirname, "../template"), root, { recursive: true });
87
+ } else await fs_default.cp(join(import.meta.dirname, "../template"), root, {
88
+ recursive: true,
89
+ filter: (src) => !ignorePredicate(basename(src))
90
+ });
88
91
  }
89
92
  //#endregion
90
93
  //#region src/run.ts
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@kevinmarrec/create-app",
3
3
  "type": "module",
4
- "version": "0.18.1",
5
- "packageManager": "bun@1.3.10",
4
+ "version": "0.19.0",
5
+ "packageManager": "bun@1.3.11",
6
6
  "description": "CLI that scaffolds an opinionated Bun & Vue fullstack application.",
7
7
  "author": "Kevin Marrec <kevin@marrec.io>",
8
8
  "license": "MIT",
@@ -47,22 +47,22 @@
47
47
  "@clack/prompts": "^1.1.0",
48
48
  "ansis": "^4.2.0",
49
49
  "pathe": "^2.0.3",
50
- "tinyexec": "^1.0.2"
50
+ "tinyexec": "^1.0.4"
51
51
  },
52
52
  "devDependencies": {
53
- "@faker-js/faker": "^10.3.0",
54
- "@kevinmarrec/eslint-config": "^1.13.0",
55
- "@kevinmarrec/stylelint-config": "^1.13.0",
56
- "@kevinmarrec/tsconfig": "^1.13.0",
57
- "@types/bun": "^1.3.10",
58
- "@vitest/coverage-v8": "^4.0.18",
59
- "bumpp": "^10.4.1",
60
- "eslint": "^9.39.4",
61
- "knip": "^5.86.0",
62
- "stylelint": "^17.4.0",
63
- "tsdown": "^0.21.0",
64
- "typescript": "^5.9.3",
65
- "vitest": "^4.0.18",
66
- "vue-tsc": "^3.2.5"
53
+ "@faker-js/faker": "^10.4.0",
54
+ "@kevinmarrec/eslint-config": "^1.14.0",
55
+ "@kevinmarrec/stylelint-config": "^1.14.0",
56
+ "@kevinmarrec/tsconfig": "^1.14.0",
57
+ "@types/bun": "^1.3.11",
58
+ "@vitest/coverage-v8": "^4.1.2",
59
+ "bumpp": "^11.0.1",
60
+ "eslint": "^10.1.0",
61
+ "knip": "^6.1.0",
62
+ "stylelint": "^17.6.0",
63
+ "tsdown": "^0.21.7",
64
+ "typescript": "^6.0.2",
65
+ "vitest": "^4.1.2",
66
+ "vue-tsc": "^3.2.6"
67
67
  }
68
68
  }
@@ -1,7 +1,7 @@
1
1
  services:
2
2
  mailpit:
3
3
  profiles: [mail]
4
- image: axllent/mailpit:v1.29.2
4
+ image: axllent/mailpit:v1.29.5
5
5
  container_name: mailpit
6
6
  depends_on:
7
7
  traefik:
@@ -1,7 +1,7 @@
1
1
  services:
2
2
  metabase:
3
3
  profiles: [metabase]
4
- image: metabase/metabase:v0.59.1
4
+ image: metabase/metabase:v0.59.4
5
5
  container_name: metabase
6
6
  depends_on:
7
7
  traefik:
@@ -1,6 +1,6 @@
1
1
  services:
2
2
  traefik:
3
- image: traefik:v3.6.10
3
+ image: traefik:v3.6.12
4
4
  container_name: traefik
5
5
  restart: unless-stopped
6
6
  security_opt:
@@ -14,7 +14,7 @@ jobs:
14
14
  runs-on: ubuntu-latest
15
15
  steps:
16
16
  - name: Setup Bun
17
- uses: kevinmarrec/workflows/setup-bun@e2dafbacb91d9e74b79980f8f5a63dd20bf96619 # main
17
+ uses: kevinmarrec/workflows/setup-bun@acf87d335f08bebc66def9aed5629ee08e459b95 # main
18
18
 
19
19
  - name: Lint
20
20
  run: bun run lint
@@ -32,12 +32,12 @@ jobs:
32
32
  pull-requests: write
33
33
  steps:
34
34
  - name: Setup Bun
35
- uses: kevinmarrec/workflows/setup-bun@e2dafbacb91d9e74b79980f8f5a63dd20bf96619 # main
35
+ uses: kevinmarrec/workflows/setup-bun@acf87d335f08bebc66def9aed5629ee08e459b95 # main
36
36
 
37
37
  - name: Build project
38
38
  run: bun run build
39
39
 
40
40
  - name: Analyze project build size differences
41
- uses: kevinmarrec/workflows/filesize-diff@e2dafbacb91d9e74b79980f8f5a63dd20bf96619 # main
41
+ uses: kevinmarrec/workflows/filesize-diff@acf87d335f08bebc66def9aed5629ee08e459b95 # main
42
42
  with:
43
43
  directories: app/dist,api/dist
@@ -1 +1 @@
1
- 24.14.0
1
+ 24.14.1
@@ -1,4 +1,4 @@
1
- FROM --platform=$BUILDPLATFORM oven/bun:1.3.10-slim AS build
1
+ FROM --platform=$BUILDPLATFORM oven/bun:1.3.11-slim AS build
2
2
 
3
3
  ARG TARGETARCH
4
4
 
@@ -9,20 +9,20 @@
9
9
  "db:migrate": "bun --bun run drizzle-kit migrate --config src/database/drizzle/config.ts"
10
10
  },
11
11
  "dependencies": {
12
- "@better-auth/drizzle-adapter": "^1.5.4",
13
- "@libsql/client": "^0.17.0",
14
- "@orpc/server": "^1.13.6",
15
- "better-auth": "^1.5.4",
16
- "drizzle-orm": "^0.45.1",
12
+ "@better-auth/drizzle-adapter": "^1.5.6",
13
+ "@libsql/client": "^0.17.2",
14
+ "@orpc/server": "^1.13.13",
15
+ "better-auth": "^1.5.6",
16
+ "drizzle-orm": "^0.45.2",
17
17
  "pino": "^10.3.1",
18
- "valibot": "^1.2.0"
18
+ "valibot": "^1.3.1"
19
19
  },
20
20
  "devDependencies": {
21
- "@kevinmarrec/tsconfig": "^1.13.0",
22
- "@types/bun": "^1.3.10",
23
- "drizzle-kit": "^0.31.9",
21
+ "@kevinmarrec/tsconfig": "^1.14.0",
22
+ "@types/bun": "^1.3.11",
23
+ "drizzle-kit": "^0.31.10",
24
24
  "pg": "^8.20.0",
25
25
  "pino-pretty": "^13.1.3",
26
- "typescript": "~5.9.3"
26
+ "typescript": "~6.0.2"
27
27
  }
28
28
  }
@@ -1,4 +1,4 @@
1
- FROM --platform=$BUILDPLATFORM imbios/bun-node:1.3.10-24.14.0-alpine AS build
1
+ FROM --platform=$BUILDPLATFORM imbios/bun-node:1.3.11-24.14.0-alpine AS build
2
2
 
3
3
  ARG TARGETARCH
4
4
 
@@ -14,7 +14,7 @@ COPY app/ ./app/
14
14
 
15
15
  RUN bun -F ./app build
16
16
 
17
- FROM nginx:1.29.5-alpine AS serve
17
+ FROM nginx:1.29.7-alpine AS serve
18
18
 
19
19
  COPY --from=build --chown=nonroot:nonroot /build/app/dist/ /usr/share/nginx/html
20
20
 
@@ -9,32 +9,31 @@
9
9
  "preview": "vite preview --open"
10
10
  },
11
11
  "dependencies": {
12
- "@kevinmarrec/vue-i18n": "^1.2.3",
13
- "@orpc/client": "^1.13.6",
14
- "@orpc/vue-colada": "^1.13.6",
12
+ "@kevinmarrec/vue-i18n": "^1.5.0",
13
+ "@orpc/client": "^1.13.13",
14
+ "@orpc/vue-colada": "^1.13.13",
15
15
  "@pinia/colada": "^1.0.0",
16
- "@unhead/vue": "^2.1.10",
16
+ "@unhead/vue": "^2.1.12",
17
17
  "@vueuse/core": "^14.2.1",
18
- "better-auth": "^1.5.4",
18
+ "better-auth": "^1.5.6",
19
19
  "pinia": "^3.0.4",
20
- "unocss": "^66.6.6",
21
- "vue": "^3.5.29"
20
+ "unocss": "^66.6.7",
21
+ "vue": "^3.5.31"
22
22
  },
23
23
  "devDependencies": {
24
- "@kevinmarrec/tsconfig": "^1.13.0",
25
- "@kevinmarrec/unocss-config": "^1.13.0",
26
- "@kevinmarrec/vite-plugin-dark-mode": "^1.2.2",
24
+ "@kevinmarrec/tsconfig": "^1.14.0",
25
+ "@kevinmarrec/unocss-config": "^1.14.0",
26
+ "@kevinmarrec/vite-plugin-dark-mode": "^1.4.0",
27
27
  "@modyfi/vite-plugin-yaml": "^1.1.1",
28
- "@unhead/addons": "^2.1.10",
29
- "@vitejs/plugin-vue": "^6.0.4",
28
+ "@unhead/addons": "^2.1.12",
29
+ "@vitejs/plugin-vue": "^6.0.5",
30
30
  "beasties": "^0.4.1",
31
- "rollup-plugin-visualizer": "^7.0.1",
32
- "typescript": "~5.9.3",
33
- "valibot": "^1.2.0",
34
- "vite": "^7.3.1",
35
- "vite-plugin-valibot-env": "^1.0.1",
36
- "vite-plugin-vue-devtools": "^8.0.7",
37
- "vite-ssg": "^28.3.0",
38
- "vite-tsconfig-paths": "^6.1.1"
31
+ "sonda": "^0.11.1",
32
+ "typescript": "~6.0.2",
33
+ "valibot": "^1.3.1",
34
+ "vite": "^8.0.3",
35
+ "vite-plugin-valibot-env": "^1.0.2",
36
+ "vite-plugin-vue-devtools": "^8.1.1",
37
+ "vite-ssg": "^28.3.0"
39
38
  }
40
39
  }
@@ -4,13 +4,12 @@ import darkMode from '@kevinmarrec/vite-plugin-dark-mode'
4
4
  import yaml from '@modyfi/vite-plugin-yaml'
5
5
  import unhead from '@unhead/addons/vite'
6
6
  import vue from '@vitejs/plugin-vue'
7
- import { visualizer } from 'rollup-plugin-visualizer'
7
+ import sonda from 'sonda/vite'
8
8
  import unocss from 'unocss/vite'
9
9
  import * as v from 'valibot'
10
10
  import { defineConfig, type PluginOption } from 'vite'
11
11
  import valibot from 'vite-plugin-valibot-env'
12
12
  import devtools from 'vite-plugin-vue-devtools'
13
- import tsconfigPaths from 'vite-tsconfig-paths'
14
13
 
15
14
  export const envSchema = v.object({
16
15
  VITE_API_URL: v.pipe(v.string(), v.nonEmpty(), v.readonly()),
@@ -30,7 +29,6 @@ export default defineConfig(({ command, mode }) => {
30
29
  toggleComboKey: 'alt-s',
31
30
  },
32
31
  }),
33
- tsconfigPaths(),
34
32
  unhead(),
35
33
  unocss(`${import.meta.dirname}/uno.config.ts`),
36
34
  valibot(envSchema),
@@ -43,13 +41,12 @@ export default defineConfig(({ command, mode }) => {
43
41
  ]
44
42
 
45
43
  if (mode === 'analyze') {
46
- plugins.push(visualizer({
44
+ plugins.push(sonda({
47
45
  filename: 'node_modules/.vite/stats.html',
48
- template: 'flamegraph',
49
- brotliSize: true,
50
- gzipSize: true,
46
+ brotli: true,
47
+ gzip: true,
51
48
  open: true,
52
- sourcemap: true,
49
+
53
50
  }))
54
51
  }
55
52
 
@@ -72,6 +69,9 @@ export default defineConfig(({ command, mode }) => {
72
69
  },
73
70
  },
74
71
  plugins,
72
+ resolve: {
73
+ tsconfigPaths: true,
74
+ },
75
75
  ssgOptions: {
76
76
  script: 'async',
77
77
  formatting: 'minify',
@@ -16,7 +16,7 @@ services:
16
16
 
17
17
  api:
18
18
  <<: *common
19
- image: oven/bun:1.3.10-alpine
19
+ image: oven/bun:1.3.11-alpine
20
20
  container_name: api
21
21
  init: true
22
22
  depends_on:
@@ -36,7 +36,7 @@ services:
36
36
 
37
37
  app:
38
38
  <<: *common
39
- image: imbios/bun-node:1.3.10-24.14.0-alpine
39
+ image: imbios/bun-node:1.3.11-24.14.0-alpine
40
40
  container_name: app
41
41
  init: true
42
42
  depends_on:
@@ -2,9 +2,9 @@
2
2
  "name": "project",
3
3
  "type": "module",
4
4
  "private": true,
5
- "packageManager": "bun@1.3.10",
5
+ "packageManager": "bun@1.3.11",
6
6
  "engines": {
7
- "node": ">=24.14.0"
7
+ "node": ">=24.14.1"
8
8
  },
9
9
  "workspaces": [
10
10
  "api",
@@ -23,13 +23,13 @@
23
23
  "update": "bunx taze -I -rwi"
24
24
  },
25
25
  "devDependencies": {
26
- "@kevinmarrec/eslint-config": "^1.13.0",
27
- "@kevinmarrec/stylelint-config": "^1.13.0",
28
- "@kevinmarrec/tsconfig": "^1.13.0",
29
- "eslint": "^9.39.4",
30
- "knip": "^5.86.0",
31
- "stylelint": "^17.4.0",
32
- "typescript": "~5.9.3",
33
- "vue-tsc": "^3.2.5"
26
+ "@kevinmarrec/eslint-config": "^1.14.0",
27
+ "@kevinmarrec/stylelint-config": "^1.14.0",
28
+ "@kevinmarrec/tsconfig": "^1.14.0",
29
+ "eslint": "^10.1.0",
30
+ "knip": "^6.1.0",
31
+ "stylelint": "^17.6.0",
32
+ "typescript": "~6.0.2",
33
+ "vue-tsc": "^3.2.6"
34
34
  }
35
35
  }