@bull-js/create 0.0.0-stage → 0.3.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/LICENSE +21 -0
- package/README.md +19 -2
- package/dist/index.js +17 -0
- package/package.json +41 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Bull contributors
|
|
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
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @bull-js/create
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Creates a new [Bull](https://github.com/nicolasandradedesarrollosit/bull.js) project, the opinionated
|
|
4
|
+
React framework that refuses to build unless you respect MVVM.
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
npm create @bull-js@latest my-app
|
|
8
|
+
pnpm create @bull-js my-app
|
|
9
|
+
yarn create @bull-js my-app
|
|
10
|
+
bun create @bull-js my-app
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Without a name it asks for the details. It installs the dependencies with the package manager you
|
|
14
|
+
ran it with and initializes a git repository; skip either with `--no-install` or `--no-git`.
|
|
15
|
+
|
|
16
|
+
It is the same command as `bull create`, from [`@bull-js/cli`](https://www.npmjs.com/package/@bull-js/cli).
|
|
17
|
+
|
|
18
|
+
## License
|
|
19
|
+
|
|
20
|
+
MIT
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// src/index.ts
|
|
4
|
+
import { createCommand } from "@bull-js/cli/create";
|
|
5
|
+
import { cac } from "cac";
|
|
6
|
+
var cli = cac("create-bull");
|
|
7
|
+
cli.command("[name]", "Creates a new Bull project (asks for the details without a name)").option("--template <template>", "Template", { default: "default" }).option("--pm <pm>", "Package manager: npm | pnpm | yarn | bun (defaults to the one running the command)").option("--no-install", "Do not install the dependencies").option("--no-git", "Do not initialize a git repository").example(" npm create @bull-js@latest my-app").example(" pnpm create @bull-js my-app --no-git").action((name, options) => createCommand(name, options));
|
|
8
|
+
cli.help();
|
|
9
|
+
try {
|
|
10
|
+
cli.parse(process.argv, { run: false });
|
|
11
|
+
await cli.runMatchedCommand();
|
|
12
|
+
} catch (error) {
|
|
13
|
+
console.error(`
|
|
14
|
+
\u2717 ${error.message}
|
|
15
|
+
`);
|
|
16
|
+
process.exitCode = 1;
|
|
17
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bull-js/create",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "Creates a new Bull project: npm create @bull-js@latest my-app",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"homepage": "https://github.com/nicolasandradedesarrollosit/bull.js#readme",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/nicolasandradedesarrollosit/bull.js.git",
|
|
11
|
+
"directory": "packages/create"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/nicolasandradedesarrollosit/bull.js/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"bull",
|
|
18
|
+
"create",
|
|
19
|
+
"scaffold",
|
|
20
|
+
"react",
|
|
21
|
+
"mvvm",
|
|
22
|
+
"vite"
|
|
23
|
+
],
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=20"
|
|
26
|
+
},
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public"
|
|
29
|
+
},
|
|
30
|
+
"bin": {
|
|
31
|
+
"create-bull": "./dist/index.js"
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"dist"
|
|
35
|
+
],
|
|
36
|
+
"scripts": {
|
|
37
|
+
"build": "tsup src/index.ts --format esm --clean --external @bull-js/cli"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@bull-js/cli": "^0.3.0",
|
|
41
|
+
"cac": "^6.7.14"
|
|
42
|
+
}
|
|
43
|
+
}
|