create-resuxjs 0.2.13 → 0.3.3

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.
Files changed (3) hide show
  1. package/README.md +76 -3
  2. package/index.js +1 -3
  3. package/package.json +8 -2
package/README.md CHANGED
@@ -1,9 +1,82 @@
1
1
  # create-resuxjs
2
2
 
3
- Create a Resux app with the published `resuxjs` CLI:
3
+ > Official scaffolding CLI to quickly create new [Resux](https://github.com/MahmoudAbdalrhmanMohamed/resux) applications.
4
+
5
+ 📖 **Official Documentation**: [https://mahmoudabdalrhmanmohamed.github.io/resux-docs/](https://mahmoudabdalrhmanmohamed.github.io/resux-docs/)
6
+
7
+ ---
8
+
9
+ ## Quickstart
10
+
11
+ Run the initializer using your package manager of choice:
12
+
13
+ ```sh
14
+ # npm
15
+ npm create resuxjs@latest
16
+
17
+ # npx
18
+ npx create-resuxjs@latest
19
+
20
+ # pnpm
21
+ pnpm create resuxjs@latest
22
+
23
+ # yarn
24
+ yarn create resuxjs
25
+
26
+ # bun
27
+ bun create resuxjs@latest
28
+ ```
29
+
30
+ ### Specifying a Project Name
31
+
32
+ ```sh
33
+ npx create-resuxjs@latest my-resux-app
34
+ ```
35
+
36
+ ---
37
+
38
+ ## Command Options
39
+
40
+ | Option | Description | Example |
41
+ | :--- | :--- | :--- |
42
+ | `[dir]` | Target directory for the new app | `npx create-resuxjs my-app` |
43
+ | `--features` | Comma-separated list of optional features (`i18n`, `pwa`) | `--features i18n,pwa` |
44
+ | `--hreflang` | Enable i18n `hreflang` alternate links | `--features i18n --hreflang` |
45
+ | `--no-install` | Skip automatic dependency installation | `--no-install` |
46
+
47
+ ---
48
+
49
+ ## What Gets Scaffolds?
50
+
51
+ Each generated Resux app comes pre-configured with:
52
+ - **Resumable SSR Runtime**: Fine-grained server rendering with minimal client JS overhead.
53
+ - **Vue-like SFC Routing**: File-based routing in `pages/` using familiar `.vue` single-file components.
54
+ - **Built-in Dev Server & Nitro Engine**: Instant HMR dev server powered by Vite & multi-target server engine powered by Nitro.
55
+ - **TypeScript Support**: Full type checking and auto-generated globals out of the box.
56
+
57
+ ---
58
+
59
+ ## Next Steps
60
+
61
+ Once your project is created:
4
62
 
5
63
  ```sh
6
- npx resuxjs@latest init my-app
64
+ cd my-resux-app
65
+ npm run dev
7
66
  ```
8
67
 
9
- This package is a compatibility wrapper for the Resux app scaffolder.
68
+ Open `http://localhost:3000` to start developing!
69
+
70
+ ---
71
+
72
+ ## Resources
73
+
74
+ - 📖 **Documentation**: [https://mahmoudabdalrhmanmohamed.github.io/resux-docs/](https://mahmoudabdalrhmanmohamed.github.io/resux-docs/)
75
+ - 📦 **NPM Package**: [https://www.npmjs.com/package/create-resuxjs](https://www.npmjs.com/package/create-resuxjs)
76
+ - 🐙 **GitHub Repository**: [https://github.com/MahmoudAbdalrhmanMohamed/resux](https://github.com/MahmoudAbdalrhmanMohamed/resux)
77
+ - 🐞 **Report Issues**: [https://github.com/MahmoudAbdalrhmanMohamed/resux/issues](https://github.com/MahmoudAbdalrhmanMohamed/resux/issues)
78
+
79
+ ---
80
+
81
+ License: [MIT](https://github.com/MahmoudAbdalrhmanMohamed/resux/blob/main/LICENSE)
82
+
package/index.js CHANGED
@@ -1,11 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from "node:module";
3
- import path from "node:path";
4
3
  import { pathToFileURL } from "node:url";
5
4
 
6
5
  const require = createRequire(import.meta.url);
7
- const resuxEntry = require.resolve("resuxjs");
8
- const createEntry = path.join(path.dirname(resuxEntry), "create.js");
6
+ const createEntry = require.resolve("resuxjs/create");
9
7
  const { runCreateResux } = await import(pathToFileURL(createEntry).href);
10
8
 
11
9
  await runCreateResux(process.argv.slice(2));
package/package.json CHANGED
@@ -1,9 +1,15 @@
1
1
  {
2
2
  "name": "create-resuxjs",
3
- "version": "0.2.13",
3
+ "version": "0.3.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Create a Resux app.",
7
+ "license": "MIT",
8
+ "keywords": [
9
+ "resux",
10
+ "create-resux",
11
+ "scaffolder"
12
+ ],
7
13
  "repository": {
8
14
  "type": "git",
9
15
  "url": "git+https://github.com/MahmoudAbdalrhmanMohamed/resux.git",
@@ -21,7 +27,7 @@
21
27
  "create-resuxjs": "index.js"
22
28
  },
23
29
  "dependencies": {
24
- "resuxjs": "^0.2.13"
30
+ "resuxjs": "^0.3.3"
25
31
  },
26
32
  "engines": {
27
33
  "node": ">=20.19.0"