create-zenith 0.6.7 → 1.3.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/cli.js +12 -12
- package/dist/index.js +12 -12
- package/package.json +53 -53
package/dist/cli.js
CHANGED
|
@@ -17,7 +17,7 @@ var __toESM = (mod, isNodeMode, target) => {
|
|
|
17
17
|
};
|
|
18
18
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
19
19
|
|
|
20
|
-
// node_modules/picocolors/picocolors.js
|
|
20
|
+
// ../node_modules/.bun/picocolors@1.1.1/node_modules/picocolors/picocolors.js
|
|
21
21
|
var require_picocolors = __commonJS((exports, module) => {
|
|
22
22
|
var p = process || {};
|
|
23
23
|
var argv = p.argv || [];
|
|
@@ -87,7 +87,7 @@ var require_picocolors = __commonJS((exports, module) => {
|
|
|
87
87
|
module.exports.createColors = createColors;
|
|
88
88
|
});
|
|
89
89
|
|
|
90
|
-
// node_modules/tinycolor2/cjs/tinycolor.js
|
|
90
|
+
// ../node_modules/.bun/tinycolor2@1.6.0/node_modules/tinycolor2/cjs/tinycolor.js
|
|
91
91
|
var require_tinycolor = __commonJS((exports, module) => {
|
|
92
92
|
(function(global, factory) {
|
|
93
93
|
typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, global.tinycolor = factory());
|
|
@@ -1071,7 +1071,7 @@ var require_tinycolor = __commonJS((exports, module) => {
|
|
|
1071
1071
|
});
|
|
1072
1072
|
});
|
|
1073
1073
|
|
|
1074
|
-
// node_modules/tinygradient/index.js
|
|
1074
|
+
// ../node_modules/.bun/tinygradient@1.1.5/node_modules/tinygradient/index.js
|
|
1075
1075
|
var require_tinygradient = __commonJS((exports, module) => {
|
|
1076
1076
|
var tinycolor = require_tinycolor();
|
|
1077
1077
|
var RGBA_MAX = { r: 256, g: 256, b: 256, a: 1 };
|
|
@@ -1326,7 +1326,7 @@ var require_tinygradient = __commonJS((exports, module) => {
|
|
|
1326
1326
|
};
|
|
1327
1327
|
});
|
|
1328
1328
|
|
|
1329
|
-
// node_modules/sisteransi/src/index.js
|
|
1329
|
+
// ../node_modules/.bun/sisteransi@1.0.5/node_modules/sisteransi/src/index.js
|
|
1330
1330
|
var require_src = __commonJS((exports, module) => {
|
|
1331
1331
|
var ESC = "\x1B";
|
|
1332
1332
|
var CSI = `${ESC}[`;
|
|
@@ -1393,7 +1393,7 @@ import { execSync } from "node:child_process";
|
|
|
1393
1393
|
// src/branding.ts
|
|
1394
1394
|
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
1395
1395
|
|
|
1396
|
-
// node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
1396
|
+
// ../node_modules/.bun/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
1397
1397
|
var ANSI_BACKGROUND_OFFSET = 10;
|
|
1398
1398
|
var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
|
|
1399
1399
|
var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
|
|
@@ -1570,7 +1570,7 @@ function assembleStyles() {
|
|
|
1570
1570
|
var ansiStyles = assembleStyles();
|
|
1571
1571
|
var ansi_styles_default = ansiStyles;
|
|
1572
1572
|
|
|
1573
|
-
// node_modules/chalk/source/vendor/supports-color/index.js
|
|
1573
|
+
// ../node_modules/.bun/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.js
|
|
1574
1574
|
import process2 from "node:process";
|
|
1575
1575
|
import os from "node:os";
|
|
1576
1576
|
import tty from "node:tty";
|
|
@@ -1702,7 +1702,7 @@ var supportsColor = {
|
|
|
1702
1702
|
};
|
|
1703
1703
|
var supports_color_default = supportsColor;
|
|
1704
1704
|
|
|
1705
|
-
// node_modules/chalk/source/utilities.js
|
|
1705
|
+
// ../node_modules/.bun/chalk@5.6.2/node_modules/chalk/source/utilities.js
|
|
1706
1706
|
function stringReplaceAll(string, substring, replacer) {
|
|
1707
1707
|
let index = string.indexOf(substring);
|
|
1708
1708
|
if (index === -1) {
|
|
@@ -1735,7 +1735,7 @@ function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
|
1735
1735
|
return returnValue;
|
|
1736
1736
|
}
|
|
1737
1737
|
|
|
1738
|
-
// node_modules/chalk/source/index.js
|
|
1738
|
+
// ../node_modules/.bun/chalk@5.6.2/node_modules/chalk/source/index.js
|
|
1739
1739
|
var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;
|
|
1740
1740
|
var GENERATOR = Symbol("GENERATOR");
|
|
1741
1741
|
var STYLER = Symbol("STYLER");
|
|
@@ -1882,7 +1882,7 @@ var chalk = createChalk();
|
|
|
1882
1882
|
var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
1883
1883
|
var source_default = chalk;
|
|
1884
1884
|
|
|
1885
|
-
// node_modules/gradient-string/dist/index.js
|
|
1885
|
+
// ../node_modules/.bun/gradient-string@3.0.0/node_modules/gradient-string/dist/index.js
|
|
1886
1886
|
var import_tinygradient = __toESM(require_tinygradient(), 1);
|
|
1887
1887
|
var gradient = (...colors) => {
|
|
1888
1888
|
let gradient2;
|
|
@@ -2124,7 +2124,7 @@ ${import_picocolors.default.cyan("└" + "─".repeat(50) + "┘")}
|
|
|
2124
2124
|
`);
|
|
2125
2125
|
}
|
|
2126
2126
|
|
|
2127
|
-
// node_modules/@clack/core/dist/index.mjs
|
|
2127
|
+
// ../node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
|
|
2128
2128
|
var import_sisteransi = __toESM(require_src(), 1);
|
|
2129
2129
|
var import_picocolors2 = __toESM(require_picocolors(), 1);
|
|
2130
2130
|
import { stdin as j, stdout as M } from "node:process";
|
|
@@ -2520,7 +2520,7 @@ class RD extends x {
|
|
|
2520
2520
|
}
|
|
2521
2521
|
}
|
|
2522
2522
|
|
|
2523
|
-
// node_modules/@clack/prompts/dist/index.mjs
|
|
2523
|
+
// ../node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/dist/index.mjs
|
|
2524
2524
|
var import_picocolors3 = __toESM(require_picocolors(), 1);
|
|
2525
2525
|
var import_sisteransi2 = __toESM(require_src(), 1);
|
|
2526
2526
|
import y2 from "node:process";
|
|
@@ -2739,7 +2739,7 @@ var log = {
|
|
|
2739
2739
|
};
|
|
2740
2740
|
|
|
2741
2741
|
// src/index.ts
|
|
2742
|
-
var VERSION = "
|
|
2742
|
+
var VERSION = "1.3.0";
|
|
2743
2743
|
var GITHUB_REPO = "zenithbuild/create-zenith";
|
|
2744
2744
|
var DEFAULT_TEMPLATE = "examples/starter";
|
|
2745
2745
|
var TAILWIND_TEMPLATE = "examples/starter-tailwindcss";
|
package/dist/index.js
CHANGED
|
@@ -16,7 +16,7 @@ var __toESM = (mod, isNodeMode, target) => {
|
|
|
16
16
|
};
|
|
17
17
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
18
18
|
|
|
19
|
-
// node_modules/picocolors/picocolors.js
|
|
19
|
+
// ../node_modules/.bun/picocolors@1.1.1/node_modules/picocolors/picocolors.js
|
|
20
20
|
var require_picocolors = __commonJS((exports, module) => {
|
|
21
21
|
var p = process || {};
|
|
22
22
|
var argv = p.argv || [];
|
|
@@ -86,7 +86,7 @@ var require_picocolors = __commonJS((exports, module) => {
|
|
|
86
86
|
module.exports.createColors = createColors;
|
|
87
87
|
});
|
|
88
88
|
|
|
89
|
-
// node_modules/tinycolor2/cjs/tinycolor.js
|
|
89
|
+
// ../node_modules/.bun/tinycolor2@1.6.0/node_modules/tinycolor2/cjs/tinycolor.js
|
|
90
90
|
var require_tinycolor = __commonJS((exports, module) => {
|
|
91
91
|
(function(global, factory) {
|
|
92
92
|
typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, global.tinycolor = factory());
|
|
@@ -1070,7 +1070,7 @@ var require_tinycolor = __commonJS((exports, module) => {
|
|
|
1070
1070
|
});
|
|
1071
1071
|
});
|
|
1072
1072
|
|
|
1073
|
-
// node_modules/tinygradient/index.js
|
|
1073
|
+
// ../node_modules/.bun/tinygradient@1.1.5/node_modules/tinygradient/index.js
|
|
1074
1074
|
var require_tinygradient = __commonJS((exports, module) => {
|
|
1075
1075
|
var tinycolor = require_tinycolor();
|
|
1076
1076
|
var RGBA_MAX = { r: 256, g: 256, b: 256, a: 1 };
|
|
@@ -1325,7 +1325,7 @@ var require_tinygradient = __commonJS((exports, module) => {
|
|
|
1325
1325
|
};
|
|
1326
1326
|
});
|
|
1327
1327
|
|
|
1328
|
-
// node_modules/sisteransi/src/index.js
|
|
1328
|
+
// ../node_modules/.bun/sisteransi@1.0.5/node_modules/sisteransi/src/index.js
|
|
1329
1329
|
var require_src = __commonJS((exports, module) => {
|
|
1330
1330
|
var ESC = "\x1B";
|
|
1331
1331
|
var CSI = `${ESC}[`;
|
|
@@ -1392,7 +1392,7 @@ import { execSync } from "node:child_process";
|
|
|
1392
1392
|
// src/branding.ts
|
|
1393
1393
|
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
1394
1394
|
|
|
1395
|
-
// node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
1395
|
+
// ../node_modules/.bun/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
1396
1396
|
var ANSI_BACKGROUND_OFFSET = 10;
|
|
1397
1397
|
var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
|
|
1398
1398
|
var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
|
|
@@ -1569,7 +1569,7 @@ function assembleStyles() {
|
|
|
1569
1569
|
var ansiStyles = assembleStyles();
|
|
1570
1570
|
var ansi_styles_default = ansiStyles;
|
|
1571
1571
|
|
|
1572
|
-
// node_modules/chalk/source/vendor/supports-color/index.js
|
|
1572
|
+
// ../node_modules/.bun/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.js
|
|
1573
1573
|
import process2 from "node:process";
|
|
1574
1574
|
import os from "node:os";
|
|
1575
1575
|
import tty from "node:tty";
|
|
@@ -1701,7 +1701,7 @@ var supportsColor = {
|
|
|
1701
1701
|
};
|
|
1702
1702
|
var supports_color_default = supportsColor;
|
|
1703
1703
|
|
|
1704
|
-
// node_modules/chalk/source/utilities.js
|
|
1704
|
+
// ../node_modules/.bun/chalk@5.6.2/node_modules/chalk/source/utilities.js
|
|
1705
1705
|
function stringReplaceAll(string, substring, replacer) {
|
|
1706
1706
|
let index = string.indexOf(substring);
|
|
1707
1707
|
if (index === -1) {
|
|
@@ -1734,7 +1734,7 @@ function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
|
1734
1734
|
return returnValue;
|
|
1735
1735
|
}
|
|
1736
1736
|
|
|
1737
|
-
// node_modules/chalk/source/index.js
|
|
1737
|
+
// ../node_modules/.bun/chalk@5.6.2/node_modules/chalk/source/index.js
|
|
1738
1738
|
var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;
|
|
1739
1739
|
var GENERATOR = Symbol("GENERATOR");
|
|
1740
1740
|
var STYLER = Symbol("STYLER");
|
|
@@ -1881,7 +1881,7 @@ var chalk = createChalk();
|
|
|
1881
1881
|
var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
1882
1882
|
var source_default = chalk;
|
|
1883
1883
|
|
|
1884
|
-
// node_modules/gradient-string/dist/index.js
|
|
1884
|
+
// ../node_modules/.bun/gradient-string@3.0.0/node_modules/gradient-string/dist/index.js
|
|
1885
1885
|
var import_tinygradient = __toESM(require_tinygradient(), 1);
|
|
1886
1886
|
var gradient = (...colors) => {
|
|
1887
1887
|
let gradient2;
|
|
@@ -2123,7 +2123,7 @@ ${import_picocolors.default.cyan("└" + "─".repeat(50) + "┘")}
|
|
|
2123
2123
|
`);
|
|
2124
2124
|
}
|
|
2125
2125
|
|
|
2126
|
-
// node_modules/@clack/core/dist/index.mjs
|
|
2126
|
+
// ../node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
|
|
2127
2127
|
var import_sisteransi = __toESM(require_src(), 1);
|
|
2128
2128
|
var import_picocolors2 = __toESM(require_picocolors(), 1);
|
|
2129
2129
|
import { stdin as j, stdout as M } from "node:process";
|
|
@@ -2519,7 +2519,7 @@ class RD extends x {
|
|
|
2519
2519
|
}
|
|
2520
2520
|
}
|
|
2521
2521
|
|
|
2522
|
-
// node_modules/@clack/prompts/dist/index.mjs
|
|
2522
|
+
// ../node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/dist/index.mjs
|
|
2523
2523
|
var import_picocolors3 = __toESM(require_picocolors(), 1);
|
|
2524
2524
|
var import_sisteransi2 = __toESM(require_src(), 1);
|
|
2525
2525
|
import y2 from "node:process";
|
|
@@ -2738,7 +2738,7 @@ var log = {
|
|
|
2738
2738
|
};
|
|
2739
2739
|
|
|
2740
2740
|
// src/index.ts
|
|
2741
|
-
var VERSION = "
|
|
2741
|
+
var VERSION = "1.3.0";
|
|
2742
2742
|
var GITHUB_REPO = "zenithbuild/create-zenith";
|
|
2743
2743
|
var DEFAULT_TEMPLATE = "examples/starter";
|
|
2744
2744
|
var TAILWIND_TEMPLATE = "examples/starter-tailwindcss";
|
package/package.json
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
2
|
+
"name": "create-zenith",
|
|
3
|
+
"version": "1.3.0",
|
|
4
|
+
"description": "Create a new Zenith application - the modern reactive web framework",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"create-zenith": "./dist/cli.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "bun build src/index.ts --outdir dist --target node --format esm && node -e \"const fs=require('fs');const c=fs.readFileSync('dist/index.js','utf8');fs.writeFileSync('dist/cli.js','#!/usr/bin/env node\\n'+c);fs.chmodSync('dist/cli.js','755')\"",
|
|
14
|
+
"prepublishOnly": "npm run build",
|
|
15
|
+
"create": "bun src/index.ts",
|
|
16
|
+
"example": "rm -rf examples/test-template && bun src/index.ts test-template && mv test-template examples/",
|
|
17
|
+
"test": "node dist/cli.js --help",
|
|
18
|
+
"release": "bun run scripts/release.ts",
|
|
19
|
+
"release:dry": "bun run scripts/release.ts --dry-run",
|
|
20
|
+
"release:patch": "bun run scripts/release.ts --bump=patch",
|
|
21
|
+
"release:minor": "bun run scripts/release.ts --bump=minor",
|
|
22
|
+
"release:major": "bun run scripts/release.ts --bump=major"
|
|
23
|
+
},
|
|
24
|
+
"keywords": [
|
|
25
|
+
"zenith",
|
|
26
|
+
"create",
|
|
27
|
+
"scaffold",
|
|
28
|
+
"cli",
|
|
29
|
+
"framework",
|
|
30
|
+
"reactive"
|
|
31
|
+
],
|
|
32
|
+
"author": "Zenith Team",
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "git+ssh://git@github.com/zenithbuild/create-zenith.git"
|
|
37
|
+
},
|
|
38
|
+
"engines": {
|
|
39
|
+
"node": ">=18.0.0"
|
|
40
|
+
},
|
|
41
|
+
"publishConfig": {
|
|
42
|
+
"access": "public"
|
|
43
|
+
},
|
|
44
|
+
"private": false,
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"@clack/prompts": "^0.11.0",
|
|
47
|
+
"gradient-string": "^3.0.0",
|
|
48
|
+
"picocolors": "^1.1.1"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@types/gradient-string": "^1.1.6",
|
|
52
|
+
"@types/node": "^20.0.0"
|
|
53
|
+
}
|
|
54
|
+
}
|