@batijs/cli 0.0.489 → 0.0.491
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/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-J6FBWRF2.js → chunk-S47BAUBM.js} +1 -1
- package/dist/index.js +76 -14
- package/package.json +5 -5
|
@@ -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.491", 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
|
@@ -3,13 +3,14 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
+
IBs,
|
|
6
7
|
Pit,
|
|
7
8
|
Sme,
|
|
8
9
|
Tir,
|
|
9
10
|
export_which,
|
|
10
11
|
gfs,
|
|
11
12
|
mfs
|
|
12
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-S47BAUBM.js";
|
|
13
14
|
import "./chunk-IAWYWZSL.js";
|
|
14
15
|
import {
|
|
15
16
|
__commonJS,
|
|
@@ -11006,7 +11007,7 @@ var require_lib3 = __commonJS({
|
|
|
11006
11007
|
|
|
11007
11008
|
// index.ts
|
|
11008
11009
|
import { execSync } from "child_process";
|
|
11009
|
-
import { existsSync as existsSync2,
|
|
11010
|
+
import { existsSync as existsSync2, rmSync } from "fs";
|
|
11010
11011
|
import { access, constants, lstat, readdir, readFile as readFile2 } from "fs/promises";
|
|
11011
11012
|
import { dirname, join, parse as parse2 } from "path";
|
|
11012
11013
|
import { fileURLToPath } from "url";
|
|
@@ -16903,7 +16904,7 @@ var createDefaultQueryTester = function(query, options) {
|
|
|
16903
16904
|
// package.json
|
|
16904
16905
|
var package_default = {
|
|
16905
16906
|
name: "@batijs/cli",
|
|
16906
|
-
version: "0.0.
|
|
16907
|
+
version: "0.0.491",
|
|
16907
16908
|
type: "module",
|
|
16908
16909
|
scripts: {
|
|
16909
16910
|
"check-types": "tsc --noEmit",
|
|
@@ -17031,17 +17032,78 @@ function findDescription(key) {
|
|
|
17031
17032
|
return `Include ${feat.label}`;
|
|
17032
17033
|
}
|
|
17033
17034
|
}
|
|
17034
|
-
|
|
17035
|
-
|
|
17036
|
-
|
|
17037
|
-
|
|
17038
|
-
|
|
17039
|
-
|
|
17040
|
-
|
|
17041
|
-
|
|
17035
|
+
var hasAdditionalSteps = {
|
|
17036
|
+
// UI Frameworks - work out of the box
|
|
17037
|
+
react: false,
|
|
17038
|
+
vue: false,
|
|
17039
|
+
solid: false,
|
|
17040
|
+
vike: false,
|
|
17041
|
+
// Always included, invisible in CLI
|
|
17042
|
+
// CSS - work out of the box
|
|
17043
|
+
tailwindcss: false,
|
|
17044
|
+
"compiled-css": false,
|
|
17045
|
+
// UI Component Libraries - work out of the box or minimal setup
|
|
17046
|
+
daisyui: false,
|
|
17047
|
+
// Works with Tailwind out of the box
|
|
17048
|
+
"shadcn-ui": false,
|
|
17049
|
+
// Components can be added via CLI but not required
|
|
17050
|
+
mantine: false,
|
|
17051
|
+
// Theme is pre-configured, minimal setup
|
|
17052
|
+
// Auth - require configuration
|
|
17053
|
+
auth0: true,
|
|
17054
|
+
// Requires Auth0 account, client ID/secret, callback URLs
|
|
17055
|
+
authjs: true,
|
|
17056
|
+
// Requires provider configuration and secret setup
|
|
17057
|
+
// Data fetching - work out of the box
|
|
17058
|
+
telefunc: false,
|
|
17059
|
+
trpc: false,
|
|
17060
|
+
"ts-rest": false,
|
|
17061
|
+
// Server frameworks - work out of the box
|
|
17062
|
+
hono: false,
|
|
17063
|
+
h3: false,
|
|
17064
|
+
express: false,
|
|
17065
|
+
fastify: false,
|
|
17066
|
+
// Database - require setup
|
|
17067
|
+
drizzle: true,
|
|
17068
|
+
// Requires DATABASE_URL and migration commands
|
|
17069
|
+
sqlite: true,
|
|
17070
|
+
// Requires DATABASE_URL and migration setup
|
|
17071
|
+
prisma: true,
|
|
17072
|
+
// Requires prisma init and schema setup
|
|
17073
|
+
// Deployment platforms - work out of the box
|
|
17074
|
+
cloudflare: false,
|
|
17075
|
+
vercel: false,
|
|
17076
|
+
aws: true,
|
|
17077
|
+
// Requires AWS CDK deployment setup
|
|
17078
|
+
// Analytics - minimal setup (just domain update)
|
|
17079
|
+
"google-analytics": false,
|
|
17080
|
+
"plausible.io": false,
|
|
17081
|
+
// Just needs domain update in script tag
|
|
17082
|
+
segment: false,
|
|
17083
|
+
// Error tracking - requires configuration
|
|
17084
|
+
sentry: true,
|
|
17085
|
+
// Requires Sentry DSN and build plugin configuration
|
|
17086
|
+
// Development tools - work out of the box
|
|
17087
|
+
eslint: false,
|
|
17088
|
+
biome: false,
|
|
17089
|
+
prettier: false,
|
|
17090
|
+
// Disabled features
|
|
17091
|
+
logrocket: false,
|
|
17092
|
+
// Currently disabled
|
|
17093
|
+
netlify: false
|
|
17094
|
+
// Deployment platform
|
|
17095
|
+
};
|
|
17096
|
+
function hasRemainingSteps(flags2) {
|
|
17097
|
+
assert(features.every((f2) => f2.flag in hasAdditionalSteps));
|
|
17098
|
+
return flags2.some((flag) => hasAdditionalSteps[flag] === true);
|
|
17042
17099
|
}
|
|
17043
17100
|
function printInit() {
|
|
17044
|
-
|
|
17101
|
+
const v = IBs();
|
|
17102
|
+
const version = v.semver.at(-1);
|
|
17103
|
+
assert(version);
|
|
17104
|
+
console.log(`
|
|
17105
|
+
\u{1F528} ${cyan("Vike Scaffolder")} \u{1F528} ${gray(`v${version}`)}
|
|
17106
|
+
`);
|
|
17045
17107
|
}
|
|
17046
17108
|
function printOK(dist, flags2) {
|
|
17047
17109
|
const indent = 1;
|
|
@@ -17079,7 +17141,7 @@ ${bold("Next steps:")}`);
|
|
|
17079
17141
|
break;
|
|
17080
17142
|
}
|
|
17081
17143
|
}
|
|
17082
|
-
if (hasRemainingSteps(flags2
|
|
17144
|
+
if (hasRemainingSteps(flags2)) {
|
|
17083
17145
|
console.log(Tir("-", gray, indent)(`Check README.md for remaining steps`));
|
|
17084
17146
|
}
|
|
17085
17147
|
console.log("\nHappy coding! \u{1F680}\n");
|
|
@@ -17192,7 +17254,7 @@ async function checkFlagsIncludesUiFramework(flags2) {
|
|
|
17192
17254
|
const isBarebones = flags2.filter((f2) => !uiFlags.includes(f2)).length > 0;
|
|
17193
17255
|
if (!isBarebones) {
|
|
17194
17256
|
console.warn(
|
|
17195
|
-
`${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,
|
|
17257
|
+
`${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.
|
|
17196
17258
|
`
|
|
17197
17259
|
);
|
|
17198
17260
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@batijs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.491",
|
|
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/
|
|
24
|
-
"@batijs/
|
|
23
|
+
"@batijs/compile": "0.0.491",
|
|
24
|
+
"@batijs/build": "0.0.491"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@batijs/
|
|
28
|
-
"@batijs/
|
|
27
|
+
"@batijs/core": "0.0.491",
|
|
28
|
+
"@batijs/features": "0.0.491"
|
|
29
29
|
},
|
|
30
30
|
"bin": "./cli.js",
|
|
31
31
|
"exports": {
|