@batijs/cli 0.0.488 → 0.0.490
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/boilerplates/@batijs/auth0/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/auth0/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/authjs/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/aws/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/aws/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/biome/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/compiled/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/d1/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/d1/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/drizzle/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/drizzle/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/eslint/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/express/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/fastify/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/mantine/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/mantine/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/photon/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/photon/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/pnpm/files/$pnpm-workspace.yaml.js +1 -1
- package/dist/boilerplates/@batijs/prettier/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/prisma/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/prisma/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/prisma/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/shared/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/sqlite/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/sqlite/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +1 -1
- package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vercel/files/pages/$+config.ts.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +1 -1
- package/dist/{chunk-OTNEROWC.js → chunk-7ILSXZV6.js} +1 -1
- package/dist/index.js +89 -17
- package/package.json +5 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const trpc: import("@trpc/client").TRPCClient<import("@trpc/server").TRPCBuiltRouter<{
|
|
2
2
|
ctx: object & {
|
|
3
|
-
db: ReturnType<
|
|
3
|
+
db: ReturnType<any>;
|
|
4
4
|
} & {
|
|
5
5
|
db: ReturnType<typeof import("@batijs/drizzle/database/drizzle/db").dbSqlite>;
|
|
6
6
|
} & {
|
|
@@ -210440,7 +210440,7 @@ async function mfs(t2, e, n2) {
|
|
|
210440
210440
|
}
|
|
210441
210441
|
return { code: f ? await Pit(c, n2) : c, context: p2 };
|
|
210442
210442
|
}
|
|
210443
|
-
var kxt = { name: "@batijs/core", version: "0.0.
|
|
210443
|
+
var kxt = { name: "@batijs/core", version: "0.0.490", description: "", type: "module", types: "./dist/index.d.ts", scripts: { "check-types": "tsc --noEmit", vue: "tsx src/parse/linters/vue.ts", test: "vitest run", "test:ci": "vitest run", build: "tsup" }, keywords: [], author: "Jo\xEBl Charles <joel.charles91@gmail.com>", repository: "https://github.com/vikejs/bati", license: "MIT", devDependencies: { "@batijs/features": "workspace:*", "@types/eslint": "^9.6.1", "@types/estree": "^1.0.8", "@types/node": "^20.19.21", "@types/which": "^3.0.4", "@typescript-eslint/parser": "^8.46.2", "@typescript-eslint/utils": "^8.46.2", "attributes-parser": "^2.2.3", colorette: "^2.0.20", esbuild: "^0.25.12", eslint: "^9.39.0", "eslint-plugin-solid": "^0.14.5", "eslint-rule-composer": "^0.3.0", espree: "^10.4.0", magicast: "^0.5.1", "mdast-builder": "^1.1.1", "mdast-util-from-markdown": "^2.0.2", "mdast-util-to-markdown": "^2.1.2", "mdast-util-to-string": "^4.0.0", "mdast-util-toc": "^7.1.0", prettier: "^3.6.2", squirrelly: "^9.1.0", tsup: "^8.5.0", tsx: "^4.20.6", typescript: "^5.9.3", "unplugin-purge-polyfills": "^0.1.0", vitest: "^4.0.6", "vue-eslint-parser": "^10.2.0", which: "^5.0.0", yaml: "^2.8.1" }, exports: { ".": "./dist/index.js", "./types": { types: "./global.d.ts" } }, typesVersions: { "*": { types: ["./global.d.ts"] } }, files: ["dist/"] };
|
|
210444
210444
|
function gfs() {
|
|
210445
210445
|
if (process.env.npm_config_user_agent) return yfs(process.env.npm_config_user_agent);
|
|
210446
210446
|
}
|
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
export_which,
|
|
10
10
|
gfs,
|
|
11
11
|
mfs
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-7ILSXZV6.js";
|
|
13
13
|
import "./chunk-IAWYWZSL.js";
|
|
14
14
|
import {
|
|
15
15
|
__commonJS,
|
|
@@ -16903,7 +16903,7 @@ var createDefaultQueryTester = function(query, options) {
|
|
|
16903
16903
|
// package.json
|
|
16904
16904
|
var package_default = {
|
|
16905
16905
|
name: "@batijs/cli",
|
|
16906
|
-
version: "0.0.
|
|
16906
|
+
version: "0.0.490",
|
|
16907
16907
|
type: "module",
|
|
16908
16908
|
scripts: {
|
|
16909
16909
|
"check-types": "tsc --noEmit",
|
|
@@ -17031,46 +17031,113 @@ function findDescription(key) {
|
|
|
17031
17031
|
return `Include ${feat.label}`;
|
|
17032
17032
|
}
|
|
17033
17033
|
}
|
|
17034
|
+
var hasAdditionalSteps = {
|
|
17035
|
+
// UI Frameworks - work out of the box
|
|
17036
|
+
react: false,
|
|
17037
|
+
vue: false,
|
|
17038
|
+
solid: false,
|
|
17039
|
+
vike: false,
|
|
17040
|
+
// Always included, invisible in CLI
|
|
17041
|
+
// CSS - work out of the box
|
|
17042
|
+
tailwindcss: false,
|
|
17043
|
+
"compiled-css": false,
|
|
17044
|
+
// UI Component Libraries - work out of the box or minimal setup
|
|
17045
|
+
daisyui: false,
|
|
17046
|
+
// Works with Tailwind out of the box
|
|
17047
|
+
"shadcn-ui": false,
|
|
17048
|
+
// Components can be added via CLI but not required
|
|
17049
|
+
mantine: false,
|
|
17050
|
+
// Theme is pre-configured, minimal setup
|
|
17051
|
+
// Auth - require configuration
|
|
17052
|
+
auth0: true,
|
|
17053
|
+
// Requires Auth0 account, client ID/secret, callback URLs
|
|
17054
|
+
authjs: true,
|
|
17055
|
+
// Requires provider configuration and secret setup
|
|
17056
|
+
// Data fetching - work out of the box
|
|
17057
|
+
telefunc: false,
|
|
17058
|
+
trpc: false,
|
|
17059
|
+
"ts-rest": false,
|
|
17060
|
+
// Server frameworks - work out of the box
|
|
17061
|
+
hono: false,
|
|
17062
|
+
h3: false,
|
|
17063
|
+
express: false,
|
|
17064
|
+
fastify: false,
|
|
17065
|
+
// Database - require setup
|
|
17066
|
+
drizzle: true,
|
|
17067
|
+
// Requires DATABASE_URL and migration commands
|
|
17068
|
+
sqlite: true,
|
|
17069
|
+
// Requires DATABASE_URL and migration setup
|
|
17070
|
+
prisma: true,
|
|
17071
|
+
// Requires prisma init and schema setup
|
|
17072
|
+
// Deployment platforms - work out of the box
|
|
17073
|
+
cloudflare: false,
|
|
17074
|
+
vercel: false,
|
|
17075
|
+
aws: true,
|
|
17076
|
+
// Requires AWS CDK deployment setup
|
|
17077
|
+
// Analytics - minimal setup (just domain update)
|
|
17078
|
+
"google-analytics": false,
|
|
17079
|
+
"plausible.io": false,
|
|
17080
|
+
// Just needs domain update in script tag
|
|
17081
|
+
segment: false,
|
|
17082
|
+
// Error tracking - requires configuration
|
|
17083
|
+
sentry: true,
|
|
17084
|
+
// Requires Sentry DSN and build plugin configuration
|
|
17085
|
+
// Development tools - work out of the box
|
|
17086
|
+
eslint: false,
|
|
17087
|
+
biome: false,
|
|
17088
|
+
prettier: false,
|
|
17089
|
+
// Disabled features
|
|
17090
|
+
logrocket: false,
|
|
17091
|
+
// Currently disabled
|
|
17092
|
+
netlify: false
|
|
17093
|
+
// Deployment platform
|
|
17094
|
+
};
|
|
17095
|
+
function hasRemainingSteps(flags2) {
|
|
17096
|
+
assert(features.every((f2) => f2.flag in hasAdditionalSteps));
|
|
17097
|
+
return flags2.some((flag) => hasAdditionalSteps[flag] === true);
|
|
17098
|
+
}
|
|
17034
17099
|
function printInit() {
|
|
17035
17100
|
console.log(cyan("\n\u{1F528} Vike Scaffolder \u{1F528}\n"));
|
|
17036
17101
|
}
|
|
17037
17102
|
function printOK(dist, flags2) {
|
|
17038
17103
|
const indent = 1;
|
|
17039
|
-
const
|
|
17040
|
-
const
|
|
17104
|
+
const list = Tir("-", gray, indent);
|
|
17105
|
+
const cmd = Tir("$", gray, indent);
|
|
17041
17106
|
console.log(`${green(`${bold("\u2713")} Project created: ${bold(dist)}`)}`);
|
|
17042
|
-
console.log(
|
|
17107
|
+
console.log(list("Vike"));
|
|
17043
17108
|
for (const key of flags2) {
|
|
17044
17109
|
const feature = features.find((f2) => f2.flag === key);
|
|
17045
17110
|
if (!feature || !feature.label) continue;
|
|
17046
|
-
console.log(
|
|
17111
|
+
console.log(list(feature.label));
|
|
17047
17112
|
}
|
|
17048
17113
|
console.log(`
|
|
17049
17114
|
${bold("Next steps:")}`);
|
|
17050
|
-
console.log(
|
|
17115
|
+
console.log(cmd(`cd ${dist}`));
|
|
17051
17116
|
switch (pm?.name) {
|
|
17052
17117
|
case "bun": {
|
|
17053
|
-
console.log(
|
|
17054
|
-
console.log(
|
|
17118
|
+
console.log(cmd("bun install"));
|
|
17119
|
+
console.log(cmd("bun run dev"));
|
|
17055
17120
|
break;
|
|
17056
17121
|
}
|
|
17057
17122
|
case "yarn": {
|
|
17058
|
-
console.log(
|
|
17059
|
-
console.log(
|
|
17123
|
+
console.log(cmd("yarn install"));
|
|
17124
|
+
console.log(cmd("yarn run dev"));
|
|
17060
17125
|
break;
|
|
17061
17126
|
}
|
|
17062
17127
|
case "npm": {
|
|
17063
|
-
console.log(
|
|
17064
|
-
console.log(
|
|
17128
|
+
console.log(cmd("npm install"));
|
|
17129
|
+
console.log(cmd("npm run dev"));
|
|
17065
17130
|
break;
|
|
17066
17131
|
}
|
|
17067
17132
|
default: {
|
|
17068
|
-
console.log(
|
|
17069
|
-
console.log(
|
|
17133
|
+
console.log(cmd("pnpm install"));
|
|
17134
|
+
console.log(cmd("pnpm run dev"));
|
|
17070
17135
|
break;
|
|
17071
17136
|
}
|
|
17072
17137
|
}
|
|
17073
|
-
|
|
17138
|
+
if (hasRemainingSteps(flags2)) {
|
|
17139
|
+
console.log(Tir("-", gray, indent)(`Check README.md for remaining steps`));
|
|
17140
|
+
}
|
|
17074
17141
|
console.log("\nHappy coding! \u{1F680}\n");
|
|
17075
17142
|
}
|
|
17076
17143
|
var defaultDef = {
|
|
@@ -17181,7 +17248,7 @@ async function checkFlagsIncludesUiFramework(flags2) {
|
|
|
17181
17248
|
const isBarebones = flags2.filter((f2) => !uiFlags.includes(f2)).length > 0;
|
|
17182
17249
|
if (!isBarebones) {
|
|
17183
17250
|
console.warn(
|
|
17184
|
-
`${yellow("\u{1F6C8} Scaffolding bare-bones app")} \u27A1\uFE0F Go to ${underline("https://vike.dev/new")} to scaffold full-fledged apps with Tailwind, authentication, database, deployment,
|
|
17251
|
+
`${yellow("\u{1F6C8} Scaffolding a bare-bones app")} \u27A1\uFE0F Go to ${underline("https://vike.dev/new")} to scaffold full-fledged apps with Tailwind, authentication, database, deployment, and more.
|
|
17185
17252
|
`
|
|
17186
17253
|
);
|
|
17187
17254
|
}
|
|
@@ -17375,6 +17442,11 @@ run().then(() => {
|
|
|
17375
17442
|
console.error(e);
|
|
17376
17443
|
process.exit(1);
|
|
17377
17444
|
});
|
|
17445
|
+
function assert(condition) {
|
|
17446
|
+
if (!condition) {
|
|
17447
|
+
throw new Error("You hit a scaffolder bug \u2014 reach out on GitHub");
|
|
17448
|
+
}
|
|
17449
|
+
}
|
|
17378
17450
|
export {
|
|
17379
17451
|
yn as default
|
|
17380
17452
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@batijs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.490",
|
|
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",
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"typescript": "^5.9.3",
|
|
21
21
|
"unplugin-purge-polyfills": "^0.1.0",
|
|
22
22
|
"vite": "^7.1.12",
|
|
23
|
-
"@batijs/build": "0.0.
|
|
24
|
-
"@batijs/compile": "0.0.
|
|
23
|
+
"@batijs/build": "0.0.490",
|
|
24
|
+
"@batijs/compile": "0.0.490"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@batijs/core": "0.0.
|
|
28
|
-
"@batijs/features": "0.0.
|
|
27
|
+
"@batijs/core": "0.0.490",
|
|
28
|
+
"@batijs/features": "0.0.490"
|
|
29
29
|
},
|
|
30
30
|
"bin": "./cli.js",
|
|
31
31
|
"exports": {
|