@nimbus-sh/cli 0.1.0 → 0.1.1
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/commands/scaffold.d.ts.map +1 -1
- package/dist/commands/scaffold.js +14 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../src/commands/scaffold.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAKH;;;;;;;GAOG;AACH,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../src/commands/scaffold.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAKH;;;;;;;GAOG;AACH,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAiF9D"}
|
|
@@ -26,6 +26,20 @@ import { resolve, join, basename } from 'node:path';
|
|
|
26
26
|
* `--force` overwrite existing files.
|
|
27
27
|
*/
|
|
28
28
|
export async function scaffold(args) {
|
|
29
|
+
if (args[0] === '--help' || args[0] === '-h') {
|
|
30
|
+
process.stdout.write(`create-nimbus-app
|
|
31
|
+
|
|
32
|
+
Usage:
|
|
33
|
+
create-nimbus-app <project-name> [--name <worker-name>] [--force]
|
|
34
|
+
create-nimbus-app . --name <worker-name>
|
|
35
|
+
|
|
36
|
+
Options:
|
|
37
|
+
--name <worker-name> Deployed Cloudflare Worker name. Defaults to project name.
|
|
38
|
+
--template <name> Template to use. Only worker-only ships in v0.1.
|
|
39
|
+
--force Overwrite existing files.
|
|
40
|
+
`);
|
|
41
|
+
return 0;
|
|
42
|
+
}
|
|
29
43
|
const rawProjectName = args[0];
|
|
30
44
|
const projectName = rawProjectName === '.'
|
|
31
45
|
? basename(process.cwd())
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @nimbus-sh/cli — Programmatic surface.
|
|
3
3
|
*
|
|
4
|
-
* The CLI's `bin` entries (`nimbus`, `create-nimbus-app`) call these
|
|
4
|
+
* The CLI's `bin` entries (`nimbus`, `cli`, `create-nimbus-app`) call these
|
|
5
5
|
* functions. Embedders building custom dev tooling can import them
|
|
6
6
|
* directly:
|
|
7
7
|
*
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @nimbus-sh/cli — Programmatic surface.
|
|
3
3
|
*
|
|
4
|
-
* The CLI's `bin` entries (`nimbus`, `create-nimbus-app`) call these
|
|
4
|
+
* The CLI's `bin` entries (`nimbus`, `cli`, `create-nimbus-app`) call these
|
|
5
5
|
* functions. Embedders building custom dev tooling can import them
|
|
6
6
|
* directly:
|
|
7
7
|
*
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nimbus-sh/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Nimbus CLI — `create-nimbus-app` scaffolder + `token mint` + `runtime sync`.",
|
|
5
5
|
"homepage": "https://github.com/AshishKumar4/Nimbus",
|
|
6
6
|
"repository": {
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"type": "module",
|
|
14
14
|
"bin": {
|
|
15
|
+
"cli": "./dist/bin.js",
|
|
15
16
|
"nimbus": "./dist/bin.js",
|
|
16
17
|
"create-nimbus-app": "./dist/scaffold-bin.js"
|
|
17
18
|
},
|