webjsdev 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/README.md +5 -11
- package/bin/webjsdev.js +6 -9
- package/package.json +4 -6
package/README.md
CHANGED
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
# webjsdev
|
|
2
2
|
|
|
3
|
-
The [webjs](https://webjs.dev) CLI
|
|
3
|
+
The [webjs](https://webjs.dev) CLI under an unscoped npm name. Lets you `npm i -g webjsdev` (no scope prefix) and get the canonical `webjs` command on PATH.
|
|
4
4
|
|
|
5
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
6
|
npm i -g webjsdev
|
|
12
|
-
webjs
|
|
13
|
-
|
|
14
|
-
webjsdev dev # full package-name form, identical behavior
|
|
7
|
+
webjs create my-app
|
|
8
|
+
cd my-app && npm run dev
|
|
15
9
|
```
|
|
16
10
|
|
|
17
|
-
`webjsdev`
|
|
11
|
+
`webjsdev` is a thin one-line re-export of [`@webjsdev/cli`](https://www.npmjs.com/package/@webjsdev/cli)'s entry script. Either package installs the same `webjs` binary; the choice is purely about whether you'd rather type the scope or not.
|
|
18
12
|
|
|
19
|
-
The full set of subcommands (`dev`, `start`, `create`, `test`, `check`, `db`, `ui`) lives in
|
|
13
|
+
The full set of subcommands (`dev`, `start`, `create`, `test`, `check`, `db`, `ui`) lives in `@webjsdev/cli`. See its README for the surface.
|
|
20
14
|
|
|
21
15
|
## License
|
|
22
16
|
|
package/bin/webjsdev.js
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
|
-
* `
|
|
3
|
+
* `webjsdev` is the unscoped npm name for `@webjsdev/cli`. Both packages
|
|
4
|
+
* ship the same `webjs` binary; this file is a one-line ESM re-export
|
|
5
|
+
* of the canonical CLI entry script, so behaviour matches exactly.
|
|
4
6
|
*
|
|
5
|
-
*
|
|
6
|
-
* npx wjs dev
|
|
7
|
-
* npx wjs start
|
|
8
|
-
* npx wjs check
|
|
9
|
-
* npx wjs db migrate init
|
|
7
|
+
* npm i -g webjsdev && webjs create my-app
|
|
10
8
|
*
|
|
11
9
|
* The CLI's entry script reads `process.argv` and runs at module load,
|
|
12
|
-
* so
|
|
13
|
-
* manipulation, no spawn overhead
|
|
14
|
-
* `webjs <cmd>` and `wjs <cmd>`.
|
|
10
|
+
* so the import below transparently dispatches the same command. No
|
|
11
|
+
* argv manipulation, no spawn overhead.
|
|
15
12
|
*/
|
|
16
13
|
await import('@webjsdev/cli/bin/webjs.js');
|
package/package.json
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webjsdev",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "The webjs CLI, published unscoped. Installs the `webjs
|
|
5
|
+
"description": "The webjs CLI, published unscoped on npm. Unscoped alias for @webjsdev/cli. Installs the `webjs` command.",
|
|
6
6
|
"bin": {
|
|
7
|
-
"
|
|
8
|
-
"webjs": "bin/webjsdev.js",
|
|
9
|
-
"wjs": "bin/webjsdev.js"
|
|
7
|
+
"webjs": "bin/webjsdev.js"
|
|
10
8
|
},
|
|
11
9
|
"files": [
|
|
12
10
|
"bin",
|
|
@@ -30,7 +28,7 @@
|
|
|
30
28
|
"webjs",
|
|
31
29
|
"cli",
|
|
32
30
|
"alias",
|
|
33
|
-
"
|
|
31
|
+
"unscoped"
|
|
34
32
|
],
|
|
35
33
|
"engines": {
|
|
36
34
|
"node": ">=24.0.0"
|