create-mercury-agent 0.25.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/CHANGELOG.md +7 -0
- package/README.md +11 -0
- package/index.ts +9 -0
- package/package.json +35 -0
package/CHANGELOG.md
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# create-mercury-agent
|
|
2
|
+
|
|
3
|
+
Scaffolds a [Mercury](https://github.com/lucabro81/mercury-fw) app:
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
bun create mercury-agent my-agent
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
It runs `mfw create` from [`@mercury-fw/cli`](https://www.npmjs.com/package/@mercury-fw/cli) with the same arguments, so every flag documented there works here too.
|
|
10
|
+
|
|
11
|
+
MIT
|
package/index.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
/**
|
|
3
|
+
* `create-mercury-agent`: what `bun create mercury-agent <folder>` runs. It is
|
|
4
|
+
* `mfw create` under the name the `create` convention looks for, with the same
|
|
5
|
+
* arguments and the same result.
|
|
6
|
+
*/
|
|
7
|
+
import { main } from "@mercury-fw/cli";
|
|
8
|
+
|
|
9
|
+
process.exit(await main(["create", ...process.argv.slice(2)]));
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "create-mercury-agent",
|
|
3
|
+
"version": "0.25.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/lucabro81/mercury-fw.git",
|
|
9
|
+
"directory": "apps/create-mercury-agent"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"*.ts",
|
|
13
|
+
"CHANGELOG.md",
|
|
14
|
+
"!**/*.test.ts"
|
|
15
|
+
],
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "public"
|
|
18
|
+
},
|
|
19
|
+
"bin": {
|
|
20
|
+
"create-mercury-agent": "./index.ts"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"typecheck": "tsc --noEmit",
|
|
24
|
+
"test": "bun test"
|
|
25
|
+
},
|
|
26
|
+
"comment:shape": "What `bun create mercury-agent <dir>` (or `npm create mercury-agent`) runs: `mfw create` from @mercury-fw/cli, nothing of its own.",
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@mercury-fw/cli": "0.25.0"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@mercury-fw/typescript-config": "*",
|
|
32
|
+
"@types/bun": "^1.4.0",
|
|
33
|
+
"typescript": "^6.0.3"
|
|
34
|
+
}
|
|
35
|
+
}
|