create-liferay-react-cx 1.0.2 → 1.0.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.
- package/README.md +80 -267
- package/bin/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,267 +1,80 @@
|
|
|
1
|
-
# create-liferay-react-cx
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
[ first to discuss any significant changes.
|
|
253
|
-
|
|
254
|
-
---
|
|
255
|
-
|
|
256
|
-
## License
|
|
257
|
-
|
|
258
|
-
[MIT](./LICENSE) © [Laxit Khanpara](https://github.com/laxitkhanpara)
|
|
259
|
-
|
|
260
|
-
---
|
|
261
|
-
|
|
262
|
-
## Links
|
|
263
|
-
|
|
264
|
-
- 📦 [npm package](https://www.npmjs.com/package/create-liferay-react-cx)
|
|
265
|
-
- 🐛 [Report a bug](https://github.com/laxitkhanpara/liferay-react-ce/issues)
|
|
266
|
-
- 📖 [Liferay Client Extensions docs](https://learn.liferay.com/dxp/latest/en/building-applications/client-extensions.html)
|
|
267
|
-
- 🏗️ [Liferay Workspace docs](https://learn.liferay.com/dxp/latest/en/building-applications/tooling/liferay-workspace/what-is-liferay-workspace.html)
|
|
1
|
+
# create-liferay-react-cx
|
|
2
|
+
|
|
3
|
+
⚡ **Zero-config CLI** to scaffold **Liferay React Client Extensions** in seconds.
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/create-liferay-react-cx)
|
|
6
|
+
[](https://github.com/laxitkhanpara/create-liferay-react-cx/blob/main/LICENSE)
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Quick Start
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npx create-liferay-react-cx my-widget
|
|
14
|
+
cd my-widget
|
|
15
|
+
../../gradlew deploy
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## What You Get
|
|
19
|
+
|
|
20
|
+
- ✅ **Vite-powered** React project (fast builds, HMR)
|
|
21
|
+
- ✅ **client-extension.yaml** pre-configured
|
|
22
|
+
- ✅ **Shadow DOM** isolated styles
|
|
23
|
+
- ✅ **Ready to deploy** to Liferay 7.4+ / DXP
|
|
24
|
+
|
|
25
|
+
## Usage
|
|
26
|
+
|
|
27
|
+
### Interactive Mode
|
|
28
|
+
```bash
|
|
29
|
+
npx create-liferay-react-cx
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### With Arguments
|
|
33
|
+
```bash
|
|
34
|
+
npx create-liferay-react-cx my-widget --react-version 18.2.0
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Using npm create
|
|
38
|
+
```bash
|
|
39
|
+
npm create liferay-react-cx my-widget
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Options
|
|
43
|
+
|
|
44
|
+
| Flag | Description | Default |
|
|
45
|
+
|------|-------------|---------|
|
|
46
|
+
| `--name, -n` | App name (kebab-case) | _(prompted)_ |
|
|
47
|
+
| `--react-version, -r` | React version | `16.12.0` |
|
|
48
|
+
| `--help, -h` | Show help | — |
|
|
49
|
+
| `--version, -v` | Show version | — |
|
|
50
|
+
|
|
51
|
+
## Requirements
|
|
52
|
+
|
|
53
|
+
- **Node.js** ≥ 18.0.0
|
|
54
|
+
- **npm** ≥ 9.0.0
|
|
55
|
+
- **Liferay Workspace** (for deployment)
|
|
56
|
+
|
|
57
|
+
## React Version Guide
|
|
58
|
+
|
|
59
|
+
- **16.12.0** → Liferay 7.4 GA / DXP classic
|
|
60
|
+
- **18.2.0** → Liferay 7.4 U45+ / DXP 2024.Q1+
|
|
61
|
+
|
|
62
|
+
## After Scaffolding
|
|
63
|
+
|
|
64
|
+
1. Navigate into your project: `cd my-widget`
|
|
65
|
+
2. Deploy to Liferay: `../../gradlew deploy`
|
|
66
|
+
3. Add widget to a page in **Liferay Admin → Client Extensions**
|
|
67
|
+
|
|
68
|
+
## Documentation
|
|
69
|
+
|
|
70
|
+
📖 Full documentation: [GitHub Repository](https://github.com/laxitkhanpara/create-liferay-react-cx)
|
|
71
|
+
|
|
72
|
+
## Links
|
|
73
|
+
|
|
74
|
+
- [GitHub](https://github.com/laxitkhanpara/create-liferay-react-cx)
|
|
75
|
+
- [Issues](https://github.com/laxitkhanpara/create-liferay-react-cx/issues)
|
|
76
|
+
- [Liferay Docs](https://learn.liferay.com/dxp/latest/en/building-applications/client-extensions.html)
|
|
77
|
+
|
|
78
|
+
## License
|
|
79
|
+
|
|
80
|
+
MIT © [Laxit Khanpara](https://github.com/laxitkhanpara)
|
package/bin/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-liferay-react-cx",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Zero-config CLI to scaffold Liferay React Client Extensions (custom element) — Vite-powered, shadow DOM isolated, ready to deploy.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./bin/index.js",
|