create-zengin 0.1.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/README.md +10 -0
- package/bin.js +8 -0
- package/package.json +40 -0
package/README.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# create-zengin
|
|
2
|
+
|
|
3
|
+
`npm create zengin` is the way to start: a project on Zengin UI that owns its components, with the engine, the MCP server, the hook and Storybook wired.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npm create zengin@latest acme -- --template saas
|
|
7
|
+
cd acme && npm install && npm run dev
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
The word `create` is what this package adds; everything else is [`@zenginui/cli`](../cli), which the new project has as a dev dependency, so inside it the commands are `npx zengin check`, `npx zengin theme brutal`, `npx zengin upgrade`, and so on.
|
package/bin.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// `npm create zengin my-app -- --template saas` runs this as `create-zengin my-app --template saas`.
|
|
3
|
+
// The command line itself lives in @zenginui/cli; this adds the `create` word the npm convention leaves out.
|
|
4
|
+
// Any other zengin command still works through it: `npx create-zengin check` is `zengin check`.
|
|
5
|
+
const COMMANDS = new Set(["check", "explain", "init", "report", "rollup", "create", "add", "upgrade", "tokens", "registry", "theme", "fonts", "icons", "brand", "figma", "mock", "help"]);
|
|
6
|
+
const first = process.argv[2];
|
|
7
|
+
if (first === undefined || (!first.startsWith("-") && !COMMANDS.has(first))) process.argv.splice(2, 0, "create");
|
|
8
|
+
await import("@zenginui/cli/dist/index.js");
|
package/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "create-zengin",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "npm create zengin: a new project on Zengin UI that owns its components. Runs @zenginui/cli create.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"design-system",
|
|
9
|
+
"create",
|
|
10
|
+
"scaffold",
|
|
11
|
+
"zengin"
|
|
12
|
+
],
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/Timurtek/zengin.git",
|
|
16
|
+
"directory": "packages/create-zengin"
|
|
17
|
+
},
|
|
18
|
+
"homepage": "https://github.com/Timurtek/zengin#readme",
|
|
19
|
+
"bugs": "https://github.com/Timurtek/zengin/issues",
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=20"
|
|
22
|
+
},
|
|
23
|
+
"bin": {
|
|
24
|
+
"create-zengin": "./bin.js"
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"bin.js"
|
|
28
|
+
],
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"access": "public"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@zenginui/cli": "0.1.0"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "node -e \"process.exit(0)\"",
|
|
37
|
+
"typecheck": "node -e \"process.exit(0)\"",
|
|
38
|
+
"test": "node bin.js --help"
|
|
39
|
+
}
|
|
40
|
+
}
|