create-brustjs 0.1.0-alpha.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/README.md +13 -0
- package/index.ts +7 -0
- package/package.json +35 -0
package/README.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# create-brustjs
|
|
2
|
+
|
|
3
|
+
Scaffold a [Brust](https://github.com/AssetsArt/brust) app:
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
bun create brustjs my-app
|
|
7
|
+
cd my-app
|
|
8
|
+
bun install
|
|
9
|
+
bun run dev
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Thin wrapper around `brustjs new` — the templates live in the
|
|
13
|
+
[`brustjs`](https://www.npmjs.com/package/brustjs) package.
|
package/index.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
// `bun create brustjs <dir>` → Bun runs this bin with the dest dir (and any
|
|
3
|
+
// flags) as argv. We forward them straight to brust's own scaffolder, so the
|
|
4
|
+
// templates and the brustjs-version pinning stay owned by the brustjs package.
|
|
5
|
+
import { runNew } from 'brustjs/create'
|
|
6
|
+
|
|
7
|
+
await runNew(process.argv.slice(2))
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "create-brustjs",
|
|
3
|
+
"version": "0.1.0-alpha.1",
|
|
4
|
+
"description": "Scaffold a Brust app — `bun create brustjs <dir>`.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/AssetsArt/brust.git",
|
|
9
|
+
"directory": "create-brustjs"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://github.com/AssetsArt/brust#readme",
|
|
12
|
+
"bugs": "https://github.com/AssetsArt/brust/issues",
|
|
13
|
+
"keywords": [
|
|
14
|
+
"bun",
|
|
15
|
+
"rust",
|
|
16
|
+
"ssr",
|
|
17
|
+
"react",
|
|
18
|
+
"brust",
|
|
19
|
+
"create"
|
|
20
|
+
],
|
|
21
|
+
"type": "module",
|
|
22
|
+
"bin": {
|
|
23
|
+
"create-brustjs": "./index.ts"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"index.ts",
|
|
27
|
+
"README.md"
|
|
28
|
+
],
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"brustjs": "^0.1.0-alpha"
|
|
31
|
+
},
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public"
|
|
34
|
+
}
|
|
35
|
+
}
|