create-zfb 0.1.0-next.2
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/CHANGELOG.md +7 -0
- package/LICENSE +21 -0
- package/README.md +13 -0
- package/bin/create-zfb.mjs +13 -0
- package/package.json +37 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.1.0-next.1
|
|
4
|
+
|
|
5
|
+
Initial public prerelease on npm.
|
|
6
|
+
|
|
7
|
+
- npm-create scaffolding entry point for zfb: `npm create zfb@latest my-site` resolves this package and delegates to `zfb new my-site`, bootstrapping a new project from the built-in `basic-blog` template.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Takeshi Takatsudo
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# create-zfb
|
|
2
|
+
|
|
3
|
+
Scaffold a new [zfb](https://takazudomodular.com/pj/zudo-front-builder/) static-site project with a single command. When you run `npm create zfb@latest my-site`, npm resolves this package and invokes `zfb new my-site` via the `@takazudo/zfb` CLI — no global install required.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm create zfb@latest my-site
|
|
9
|
+
# or: pnpm create zfb@latest my-site
|
|
10
|
+
# or: yarn create zfb@latest my-site
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
This creates a new project directory `my-site/` bootstrapped from the built-in `basic-blog` template. For full documentation, configuration options, and CLI reference, see the [`@takazudo/zfb` docs](https://takazudomodular.com/pj/zudo-front-builder/).
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { spawnSync } from "node:child_process";
|
|
3
|
+
import { createRequire } from "node:module";
|
|
4
|
+
import { dirname, join } from "node:path";
|
|
5
|
+
|
|
6
|
+
const require = createRequire(import.meta.url);
|
|
7
|
+
|
|
8
|
+
const zfbPkgJson = require.resolve("@takazudo/zfb/package.json");
|
|
9
|
+
const zfbBin = join(dirname(zfbPkgJson), "bin", "zfb.mjs");
|
|
10
|
+
|
|
11
|
+
const args = ["new", ...process.argv.slice(2)];
|
|
12
|
+
const result = spawnSync(process.execPath, [zfbBin, ...args], { stdio: "inherit" });
|
|
13
|
+
process.exit(result.status ?? 1);
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "create-zfb",
|
|
3
|
+
"version": "0.1.0-next.2",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"description": "Scaffold a new zfb static-site project: `npm create zfb@latest my-site`",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"author": "Takeshi Takatsudo <takazudo@gmail.com> (https://github.com/Takazudo)",
|
|
9
|
+
"homepage": "https://takazudomodular.com/pj/zudo-front-builder/",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/Takazudo/zudo-front-builder.git",
|
|
13
|
+
"directory": "packages/create-zfb"
|
|
14
|
+
},
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/Takazudo/zudo-front-builder/issues"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"zfb",
|
|
20
|
+
"scaffold",
|
|
21
|
+
"create",
|
|
22
|
+
"init",
|
|
23
|
+
"static-site-generator"
|
|
24
|
+
],
|
|
25
|
+
"bin": {
|
|
26
|
+
"create-zfb": "./bin/create-zfb.mjs"
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"bin",
|
|
30
|
+
"README.md",
|
|
31
|
+
"CHANGELOG.md",
|
|
32
|
+
"LICENSE"
|
|
33
|
+
],
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@takazudo/zfb": "0.1.0-next.2"
|
|
36
|
+
}
|
|
37
|
+
}
|