webjsdev 0.1.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/README.md +23 -0
- package/bin/webjsdev.js +16 -0
- package/package.json +38 -0
package/README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# webjsdev
|
|
2
|
+
|
|
3
|
+
The [webjs](https://webjs.dev) CLI, published unscoped on npm. Installs three commands from one package: the canonical `webjs`, the short `wjs`, and the package-name `webjsdev` itself, all pointing at the same script.
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
# one-shot via npx
|
|
7
|
+
npx webjsdev create my-app
|
|
8
|
+
cd my-app && npm run dev
|
|
9
|
+
|
|
10
|
+
# or globally install once, get all three commands on PATH
|
|
11
|
+
npm i -g webjsdev
|
|
12
|
+
webjs dev # canonical, matches docs / scaffold scripts
|
|
13
|
+
wjs dev # short alias, identical behavior
|
|
14
|
+
webjsdev dev # full package-name form, identical behavior
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
`webjsdev` exists because `@webjsdev/cli` is scoped, which means it can't power `npx <shortname>` without typing the scope. Publishing this thin unscoped shim gives users a `npx`-discoverable entry point for the CLI without changing the canonical scoped package they install long-term.
|
|
18
|
+
|
|
19
|
+
The full set of subcommands (`dev`, `start`, `create`, `test`, `check`, `db`, `ui`) lives in [`@webjsdev/cli`](https://www.npmjs.com/package/@webjsdev/cli), which `webjsdev` depends on. `webjsdev`'s entry script is a one-line re-export of `@webjsdev/cli/bin/webjs.js`, so all three command names run the same script with no behavior drift.
|
|
20
|
+
|
|
21
|
+
## License
|
|
22
|
+
|
|
23
|
+
MIT
|
package/bin/webjsdev.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* `wjs`: short alias for the `@webjsdev/cli` `webjs` binary.
|
|
4
|
+
*
|
|
5
|
+
* npx wjs create my-app
|
|
6
|
+
* npx wjs dev
|
|
7
|
+
* npx wjs start
|
|
8
|
+
* npx wjs check
|
|
9
|
+
* npx wjs db migrate init
|
|
10
|
+
*
|
|
11
|
+
* The CLI's entry script reads `process.argv` and runs at module load,
|
|
12
|
+
* so importing it transparently dispatches the same command. No argv
|
|
13
|
+
* manipulation, no spawn overhead, no behaviour drift between
|
|
14
|
+
* `webjs <cmd>` and `wjs <cmd>`.
|
|
15
|
+
*/
|
|
16
|
+
await import('@webjsdev/cli/bin/webjs.js');
|
package/package.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "webjsdev",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "The webjs CLI, published unscoped. Installs the `webjs`, `wjs`, and `webjsdev` commands.",
|
|
6
|
+
"bin": {
|
|
7
|
+
"webjsdev": "bin/webjsdev.js",
|
|
8
|
+
"webjs": "bin/webjsdev.js",
|
|
9
|
+
"wjs": "bin/webjsdev.js"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"bin",
|
|
13
|
+
"README.md"
|
|
14
|
+
],
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@webjsdev/cli": "^0.8.2"
|
|
17
|
+
},
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"access": "public"
|
|
20
|
+
},
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/webjsdev/webjs.git",
|
|
24
|
+
"directory": "packages/webjsdev"
|
|
25
|
+
},
|
|
26
|
+
"homepage": "https://github.com/webjsdev/webjs#readme",
|
|
27
|
+
"bugs": "https://github.com/webjsdev/webjs/issues",
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"keywords": [
|
|
30
|
+
"webjs",
|
|
31
|
+
"cli",
|
|
32
|
+
"alias",
|
|
33
|
+
"shorthand"
|
|
34
|
+
],
|
|
35
|
+
"engines": {
|
|
36
|
+
"node": ">=24.0.0"
|
|
37
|
+
}
|
|
38
|
+
}
|