@batijs/cli 0.0.188 → 0.0.190

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/dist/boilerplates/@batijs/biome/files/$package.json.js +83 -0
  2. package/dist/boilerplates/@batijs/biome/files/biome.json +15 -0
  3. package/dist/boilerplates/@batijs/edgedb/files/$package.json.js +1 -1
  4. package/dist/boilerplates/@batijs/express/files/$package.json.js +3 -3
  5. package/dist/boilerplates/@batijs/fastify/files/$package.json.js +3 -3
  6. package/dist/boilerplates/@batijs/h3/files/$package.json.js +3 -3
  7. package/dist/boilerplates/@batijs/hattip/files/$package.json.js +2 -2
  8. package/dist/boilerplates/@batijs/hono/files/$package.json.js +7 -7
  9. package/dist/boilerplates/@batijs/prettier/files/$.eslintrc.json.js +1 -2
  10. package/dist/boilerplates/@batijs/react/files/$.eslintrc.json.js +1 -2
  11. package/dist/boilerplates/@batijs/react/files/$package.json.js +2 -2
  12. package/dist/boilerplates/@batijs/react/files/pages/+onPageTransitionEnd.ts +1 -1
  13. package/dist/boilerplates/@batijs/react/files/pages/+onPageTransitionStart.ts +1 -1
  14. package/dist/boilerplates/@batijs/react/files/pages/_error/+Page.tsx +6 -7
  15. package/dist/boilerplates/@batijs/react/files/pages/star-wars/@id/+data.ts +2 -2
  16. package/dist/boilerplates/@batijs/react/types/pages/+config.d.ts +11 -0
  17. package/dist/boilerplates/@batijs/solid/files/$.eslintrc.json.js +1 -2
  18. package/dist/boilerplates/@batijs/solid/files/pages/+onPageTransitionEnd.ts +1 -1
  19. package/dist/boilerplates/@batijs/solid/files/pages/+onPageTransitionStart.ts +1 -1
  20. package/dist/boilerplates/@batijs/solid/files/pages/star-wars/@id/+data.ts +2 -2
  21. package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +1 -1
  22. package/dist/boilerplates/@batijs/vue/files/$.eslintrc.json.js +1 -2
  23. package/dist/boilerplates/@batijs/vue/files/$package.json.js +4 -4
  24. package/dist/boilerplates/@batijs/vue/files/pages/+onPageTransitionEnd.ts +1 -1
  25. package/dist/boilerplates/@batijs/vue/files/pages/+onPageTransitionStart.ts +1 -1
  26. package/dist/boilerplates/@batijs/vue/files/pages/star-wars/@id/+data.ts +2 -2
  27. package/dist/boilerplates/boilerplates.json +11 -0
  28. package/dist/index.js +3 -3
  29. package/package.json +7 -7
@@ -0,0 +1,83 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __commonJS = (cb, mod) => function __require() {
8
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
19
+ // If the importer is in node compatibility mode or this is not an ESM
20
+ // file that has been converted to a CommonJS file using a Babel-
21
+ // compatible transform (i.e. "__esModule" has not been set), then set
22
+ // "default" to the CommonJS "module.exports" for node compatibility.
23
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
24
+ mod
25
+ ));
26
+
27
+ // package.json
28
+ var require_package = __commonJS({
29
+ "package.json"(exports, module) {
30
+ module.exports = {
31
+ name: "@batijs/biome",
32
+ private: true,
33
+ version: "0.0.1",
34
+ description: "",
35
+ type: "module",
36
+ scripts: {
37
+ "check-types": "tsc --noEmit",
38
+ build: "bati-compile-boilerplate"
39
+ },
40
+ keywords: [],
41
+ author: "",
42
+ license: "MIT",
43
+ devDependencies: {
44
+ "@batijs/compile": "workspace:*",
45
+ "@biomejs/biome": "1.7.3",
46
+ "@types/node": "^18.19.14"
47
+ },
48
+ dependencies: {
49
+ "@batijs/core": "workspace:*"
50
+ },
51
+ files: [
52
+ "dist/"
53
+ ],
54
+ bati: {
55
+ if: {
56
+ flag: "biome"
57
+ }
58
+ }
59
+ };
60
+ }
61
+ });
62
+
63
+ // files/$package.json.ts
64
+ import { addDependency, loadAsJson, setScripts } from "@batijs/core";
65
+ async function getPackageJson(props) {
66
+ const packageJson = await loadAsJson(props);
67
+ setScripts(packageJson, {
68
+ lint: {
69
+ value: "biome lint --apply .",
70
+ precedence: 0
71
+ },
72
+ format: {
73
+ value: "biome format --write .",
74
+ precedence: 0
75
+ }
76
+ });
77
+ return addDependency(packageJson, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default), {
78
+ devDependencies: ["@biomejs/biome"]
79
+ });
80
+ }
81
+ export {
82
+ getPackageJson as default
83
+ };
@@ -0,0 +1,15 @@
1
+ {
2
+ "$schema": "https://biomejs.dev/schemas/1.7.3/schema.json",
3
+ "organizeImports": {
4
+ "enabled": true
5
+ },
6
+ "linter": {
7
+ "enabled": true,
8
+ "rules": {
9
+ "recommended": true
10
+ }
11
+ },
12
+ "files": {
13
+ "ignore": ["dist/**", "*.js", "*.cjs", "*.mjs", "*.spec.ts"]
14
+ }
15
+ }
@@ -46,7 +46,7 @@ var require_package = __commonJS({
46
46
  "@prisma/client": "^5.13.0",
47
47
  "@types/node": "^18.19.14",
48
48
  colorette: "^2.0.20",
49
- edgedb: "^1.5.5"
49
+ edgedb: "^1.5.6"
50
50
  },
51
51
  dependencies: {
52
52
  "@batijs/core": "workspace:*"
@@ -41,7 +41,7 @@ var require_package = __commonJS({
41
41
  author: "",
42
42
  license: "MIT",
43
43
  devDependencies: {
44
- "@auth/core": "^0.30.0",
44
+ "@auth/core": "^0.31.0",
45
45
  "@batijs/compile": "workspace:*",
46
46
  "@batijs/firebase-auth": "workspace:*",
47
47
  "@batijs/trpc": "workspace:*",
@@ -56,9 +56,9 @@ var require_package = __commonJS({
56
56
  "express-openid-connect": "^2.17.1",
57
57
  "firebase-admin": "^12.1.0",
58
58
  telefunc: "^0.1.72",
59
- tsx: "^4.9.3",
59
+ tsx: "^4.10.2",
60
60
  vike: "^0.4.171",
61
- "vike-authjs": "^0.1.5",
61
+ "vike-authjs": "^0.1.6",
62
62
  vite: "^5.2.11"
63
63
  },
64
64
  dependencies: {
@@ -41,7 +41,7 @@ var require_package = __commonJS({
41
41
  author: "",
42
42
  license: "MIT",
43
43
  devDependencies: {
44
- "@auth/core": "^0.29.0",
44
+ "@auth/core": "^0.31.0",
45
45
  "@batijs/compile": "workspace:*",
46
46
  "@batijs/firebase-auth": "workspace:*",
47
47
  "@batijs/trpc": "workspace:^",
@@ -59,9 +59,9 @@ var require_package = __commonJS({
59
59
  fastify: "^4.27.0",
60
60
  "firebase-admin": "^12.1.0",
61
61
  telefunc: "^0.1.72",
62
- tsx: "^4.9.3",
62
+ tsx: "^4.10.2",
63
63
  vike: "^0.4.171",
64
- "vike-authjs": "^0.1.5",
64
+ "vike-authjs": "^0.1.6",
65
65
  vite: "^5.2.11"
66
66
  },
67
67
  dependencies: {
@@ -41,7 +41,7 @@ var require_package = __commonJS({
41
41
  author: "",
42
42
  license: "MIT",
43
43
  devDependencies: {
44
- "@auth/core": "^0.30.0",
44
+ "@auth/core": "^0.31.0",
45
45
  "@batijs/compile": "workspace:*",
46
46
  "@batijs/firebase-auth": "workspace:*",
47
47
  "@batijs/trpc": "workspace:^",
@@ -57,9 +57,9 @@ var require_package = __commonJS({
57
57
  h3: "~1.11.1",
58
58
  "serve-static": "^1.15.0",
59
59
  telefunc: "^0.1.72",
60
- tsx: "^4.9.3",
60
+ tsx: "^4.10.2",
61
61
  vike: "^0.4.171",
62
- "vike-authjs": "^0.1.5",
62
+ "vike-authjs": "^0.1.6",
63
63
  vite: "^5.2.11"
64
64
  },
65
65
  dependencies: {
@@ -41,7 +41,7 @@ var require_package = __commonJS({
41
41
  author: "",
42
42
  license: "MIT",
43
43
  devDependencies: {
44
- "@auth/core": "^0.30.0",
44
+ "@auth/core": "^0.31.0",
45
45
  "@batijs/compile": "workspace:*",
46
46
  "@batijs/trpc": "workspace:^",
47
47
  "@hattip/adapter-node": "^0.0.45",
@@ -53,7 +53,7 @@ var require_package = __commonJS({
53
53
  hattip: "^0.0.33",
54
54
  telefunc: "^0.1.72",
55
55
  vike: "^0.4.171",
56
- "vike-authjs": "^0.1.5",
56
+ "vike-authjs": "^0.1.6",
57
57
  vite: "^5.2.11"
58
58
  },
59
59
  dependencies: {
@@ -41,21 +41,21 @@ var require_package = __commonJS({
41
41
  author: "",
42
42
  license: "MIT",
43
43
  devDependencies: {
44
- "@auth/core": "^0.29.0",
44
+ "@auth/core": "^0.31.0",
45
45
  "@batijs/compile": "workspace:*",
46
46
  "@batijs/firebase-auth": "workspace:*",
47
47
  "@batijs/trpc": "workspace:^",
48
48
  "@hono/node-server": "^1.11.1",
49
- "@hono/vite-dev-server": "^0.12.0",
49
+ "@hono/vite-dev-server": "^0.12.1",
50
50
  "@trpc/server": "^10.45.2",
51
51
  "@types/node": "^18.19.14",
52
52
  "firebase-admin": "^12.1.0",
53
- hono: "^4.2.9",
53
+ hono: "^4.3.6",
54
54
  telefunc: "^0.1.72",
55
- tsx: "^4.7.2",
56
- vike: "^0.4.168",
57
- "vike-authjs": "^0.1.5",
58
- vite: "^5.2.8"
55
+ tsx: "^4.10.2",
56
+ vike: "^0.4.171",
57
+ "vike-authjs": "^0.1.6",
58
+ vite: "^5.2.11"
59
59
  },
60
60
  dependencies: {
61
61
  "@batijs/core": "workspace:*"
@@ -1,8 +1,7 @@
1
1
  // files/$.eslintrc.json.ts
2
2
  import { loadAsJson } from "@batijs/core";
3
3
  async function getEslintConfig(props) {
4
- if (!props.meta.BATI.has("eslint"))
5
- return;
4
+ if (!props.meta.BATI.has("eslint")) return;
6
5
  const eslintConfig = await loadAsJson(props);
7
6
  eslintConfig.extends.push("prettier");
8
7
  return eslintConfig;
@@ -1,8 +1,7 @@
1
1
  // files/$.eslintrc.json.ts
2
2
  import { loadAsJson } from "@batijs/core";
3
3
  async function getEslintConfig(props) {
4
- if (!props.meta.BATI.has("eslint"))
5
- return;
4
+ if (!props.meta.BATI.has("eslint")) return;
6
5
  const eslintConfig = await loadAsJson(props);
7
6
  eslintConfig.extends = eslintConfig.extends.filter(
8
7
  (p) => p !== "eslint:recommended" && p !== "plugin:@typescript-eslint/recommended"
@@ -46,7 +46,7 @@ var require_package = __commonJS({
46
46
  "@babel/plugin-transform-react-jsx": "^7.23.4",
47
47
  "@batijs/compile": "workspace:*",
48
48
  "@types/node": "^18.19.14",
49
- "@types/react": "^18.3.1",
49
+ "@types/react": "^18.3.2",
50
50
  "@types/react-dom": "^18.3.0",
51
51
  "@vitejs/plugin-react": "^4.2.1",
52
52
  "cross-fetch": "^4.0.0",
@@ -56,7 +56,7 @@ var require_package = __commonJS({
56
56
  tailwindcss: "^3.4.3",
57
57
  typescript: "^5.4.5",
58
58
  vike: "^0.4.171",
59
- "vike-react": "^0.4.8",
59
+ "vike-react": "^0.4.9",
60
60
  vite: "^5.2.11"
61
61
  },
62
62
  dependencies: {
@@ -2,5 +2,5 @@ import type { OnPageTransitionEndAsync } from "vike/types";
2
2
 
3
3
  export const onPageTransitionEnd: OnPageTransitionEndAsync = async () => {
4
4
  console.log("Page transition end");
5
- document.querySelector("body")!.classList.remove("page-is-transitioning");
5
+ document.querySelector("body")?.classList.remove("page-is-transitioning");
6
6
  };
@@ -2,5 +2,5 @@ import type { OnPageTransitionStartAsync } from "vike/types";
2
2
 
3
3
  export const onPageTransitionStart: OnPageTransitionStartAsync = async () => {
4
4
  console.log("Page transition start");
5
- document.querySelector("body")!.classList.add("page-is-transitioning");
5
+ document.querySelector("body")?.classList.add("page-is-transitioning");
6
6
  };
@@ -10,12 +10,11 @@ export default function Page() {
10
10
  <p>This page could not be found.</p>
11
11
  </>
12
12
  );
13
- } else {
14
- return (
15
- <>
16
- <h1>500 Internal Server Error</h1>
17
- <p>Something went wrong.</p>
18
- </>
19
- );
20
13
  }
14
+ return (
15
+ <>
16
+ <h1>500 Internal Server Error</h1>
17
+ <p>Something went wrong.</p>
18
+ </>
19
+ );
21
20
  }
@@ -17,6 +17,6 @@ export const data = async (pageContext: PageContextServer) => {
17
17
 
18
18
  function minimize(movie: MovieDetails): MovieDetails {
19
19
  const { id, title, release_date, director, producer } = movie;
20
- movie = { id, title, release_date, director, producer };
21
- return movie;
20
+ const minimizedMovie = { id, title, release_date, director, producer };
21
+ return minimizedMovie;
22
22
  }
@@ -58,6 +58,11 @@ declare const _default: {
58
58
  server: true;
59
59
  };
60
60
  };
61
+ onBeforeRenderClient: {
62
+ env: {
63
+ client: true;
64
+ };
65
+ };
61
66
  onAfterRenderClient: {
62
67
  env: {
63
68
  client: true;
@@ -80,6 +85,12 @@ declare const _default: {
80
85
  config: true;
81
86
  };
82
87
  };
88
+ reactStrictMode: {
89
+ env: {
90
+ client: true;
91
+ server: true;
92
+ };
93
+ };
83
94
  };
84
95
  };
85
96
  meta: {
@@ -1,8 +1,7 @@
1
1
  // files/$.eslintrc.json.ts
2
2
  import { loadAsJson } from "@batijs/core";
3
3
  async function getEslintConfig(props) {
4
- if (!props.meta.BATI.has("eslint"))
5
- return;
4
+ if (!props.meta.BATI.has("eslint")) return;
6
5
  const eslintConfig = await loadAsJson(props);
7
6
  eslintConfig.extends.push("plugin:solid/typescript");
8
7
  eslintConfig.plugins.push("solid");
@@ -2,5 +2,5 @@ import type { OnPageTransitionEndAsync } from "vike/types";
2
2
 
3
3
  export const onPageTransitionEnd: OnPageTransitionEndAsync = async () => {
4
4
  console.log("Page transition end");
5
- document.querySelector("body")!.classList.remove("page-is-transitioning");
5
+ document.querySelector("body")?.classList.remove("page-is-transitioning");
6
6
  };
@@ -2,5 +2,5 @@ import type { OnPageTransitionStartAsync } from "vike/types";
2
2
 
3
3
  export const onPageTransitionStart: OnPageTransitionStartAsync = async () => {
4
4
  console.log("Page transition start");
5
- document.querySelector("body")!.classList.add("page-is-transitioning");
5
+ document.querySelector("body")?.classList.add("page-is-transitioning");
6
6
  };
@@ -17,6 +17,6 @@ export const data = async (pageContext: PageContextServer) => {
17
17
 
18
18
  function minimize(movie: MovieDetails): MovieDetails {
19
19
  const { id, title, release_date, director, producer } = movie;
20
- movie = { id, title, release_date, director, producer };
21
- return movie;
20
+ const minimizedMovie = { id, title, release_date, director, producer };
21
+ return minimizedMovie;
22
22
  }
@@ -44,7 +44,7 @@ var require_package = __commonJS({
44
44
  "@batijs/compile": "workspace:*",
45
45
  "@types/node": "^18.19.14",
46
46
  autoprefixer: "^10.4.19",
47
- daisyui: "^4.10.5",
47
+ daisyui: "^4.11.1",
48
48
  postcss: "^8.4.38",
49
49
  tailwindcss: "^3.4.3",
50
50
  vike: "^0.4.171",
@@ -1,8 +1,7 @@
1
1
  // files/$.eslintrc.json.ts
2
2
  import { loadAsJson } from "@batijs/core";
3
3
  async function getEslintConfig(props) {
4
- if (!props.meta.BATI.has("eslint"))
5
- return;
4
+ if (!props.meta.BATI.has("eslint")) return;
6
5
  const eslintConfig = await loadAsJson(props);
7
6
  eslintConfig.extends.push("plugin:vue/vue3-recommended");
8
7
  eslintConfig.parser = "vue-eslint-parser";
@@ -44,17 +44,17 @@ var require_package = __commonJS({
44
44
  "@batijs/compile": "workspace:*",
45
45
  "@types/node": "^18.19.14",
46
46
  "@vitejs/plugin-vue": "^5.0.4",
47
- "@vue/compiler-sfc": "^3.4.26",
48
- "@vue/server-renderer": "^3.4.26",
47
+ "@vue/compiler-sfc": "^3.4.27",
48
+ "@vue/server-renderer": "^3.4.27",
49
49
  "cross-fetch": "^4.0.0",
50
- "eslint-plugin-vue": "^9.25.0",
50
+ "eslint-plugin-vue": "^9.26.0",
51
51
  tailwindcss: "^3.4.3",
52
52
  typescript: "^5.4.5",
53
53
  "unplugin-vue-markdown": "^0.26.2",
54
54
  vike: "^0.4.171",
55
55
  "vike-vue": "^0.6.5",
56
56
  vite: "^5.2.11",
57
- vue: "^3.4.26",
57
+ vue: "^3.4.27",
58
58
  "vue-gtag": "^2.0.1"
59
59
  },
60
60
  dependencies: {
@@ -2,5 +2,5 @@ import type { OnPageTransitionEndAsync } from "vike/types";
2
2
 
3
3
  export const onPageTransitionEnd: OnPageTransitionEndAsync = async () => {
4
4
  console.log("Page transition end");
5
- document.querySelector("body")!.classList.remove("page-is-transitioning");
5
+ document.querySelector("body")?.classList.remove("page-is-transitioning");
6
6
  };
@@ -2,5 +2,5 @@ import type { OnPageTransitionStartAsync } from "vike/types";
2
2
 
3
3
  export const onPageTransitionStart: OnPageTransitionStartAsync = async () => {
4
4
  console.log("Page transition start");
5
- document.querySelector("body")!.classList.add("page-is-transitioning");
5
+ document.querySelector("body")?.classList.add("page-is-transitioning");
6
6
  };
@@ -17,6 +17,6 @@ export const data = async (pageContext: PageContextServer) => {
17
17
 
18
18
  function minimize(movie: MovieDetails): MovieDetails {
19
19
  const { id, title, release_date, director, producer } = movie;
20
- movie = { id, title, release_date, director, producer };
21
- return movie;
20
+ const minimizedMovie = { id, title, release_date, director, producer };
21
+ return minimizedMovie;
22
22
  }
@@ -10,6 +10,17 @@
10
10
  "files"
11
11
  ]
12
12
  },
13
+ {
14
+ "config": {
15
+ "if": {
16
+ "flag": "biome"
17
+ }
18
+ },
19
+ "folder": "@batijs/biome",
20
+ "subfolders": [
21
+ "files"
22
+ ]
23
+ },
13
24
  {
14
25
  "config": {
15
26
  "if": {
package/dist/index.js CHANGED
@@ -1537,7 +1537,7 @@ var createDefaultQueryTester = function(query, options) {
1537
1537
  // package.json
1538
1538
  var package_default = {
1539
1539
  name: "@batijs/cli",
1540
- version: "0.0.188",
1540
+ version: "0.0.190",
1541
1541
  type: "module",
1542
1542
  scripts: {
1543
1543
  "check-types": "tsc --noEmit",
@@ -1557,9 +1557,9 @@ var package_default = {
1557
1557
  "@types/which": "^3.0.3",
1558
1558
  citty: "^0.1.6",
1559
1559
  colorette: "^2.0.20",
1560
- esbuild: "^0.20.2",
1560
+ esbuild: "^0.21.2",
1561
1561
  execa: "^8.0.1",
1562
- rimraf: "^5.0.5",
1562
+ rimraf: "^5.0.7",
1563
1563
  sift: "^17.1.3",
1564
1564
  tsup: "^8.0.2",
1565
1565
  typescript: "^5.4.5",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@batijs/cli",
3
- "version": "0.0.188",
3
+ "version": "0.0.190",
4
4
  "type": "module",
5
5
  "keywords": [],
6
6
  "description": "Next-gen scaffolder. Get started with fully-functional apps, and choose any tool you want",
@@ -12,19 +12,19 @@
12
12
  "@types/which": "^3.0.3",
13
13
  "citty": "^0.1.6",
14
14
  "colorette": "^2.0.20",
15
- "esbuild": "^0.20.2",
15
+ "esbuild": "^0.21.2",
16
16
  "execa": "^8.0.1",
17
- "rimraf": "^5.0.5",
17
+ "rimraf": "^5.0.7",
18
18
  "sift": "^17.1.3",
19
19
  "tsup": "^8.0.2",
20
20
  "typescript": "^5.4.5",
21
21
  "vite": "^5.2.11",
22
- "@batijs/compile": "0.0.188",
23
- "@batijs/build": "0.0.188"
22
+ "@batijs/compile": "0.0.190",
23
+ "@batijs/build": "0.0.190"
24
24
  },
25
25
  "dependencies": {
26
- "@batijs/core": "0.0.188",
27
- "@batijs/features": "0.0.188"
26
+ "@batijs/features": "0.0.190",
27
+ "@batijs/core": "0.0.190"
28
28
  },
29
29
  "bin": "./dist/index.js",
30
30
  "exports": {