@thanhphi/create-360-miniapp 0.2.1 → 0.2.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 (2) hide show
  1. package/README.md +21 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -20,6 +20,19 @@ Project được tạo sẵn gồm TypeScript, navigation, đăng nhập qua hos
20
20
 
21
21
  ## Bắt đầu nhanh
22
22
 
23
+ Cú pháp tổng quát:
24
+
25
+ ```sh
26
+ npx @thanhphi/create-360-miniapp@latest <PROJECT_NAME> --module <MODULE_NAME> --app-code <APPCODE> --port <PORT>
27
+ ```
28
+
29
+ | Tham số | Ý nghĩa |
30
+ | --- | --- |
31
+ | `PROJECT_NAME` | Tên thư mục và npm package, viết thường và nối bằng dấu gạch ngang |
32
+ | `MODULE_NAME` | Tên thư mục nghiệp vụ trong `src/modules/` |
33
+ | `APPCODE` | Mã app trên backend, viết hoa |
34
+ | `PORT` | Cổng Re.Pack dev server, ví dụ `8085` |
35
+
23
36
  Ví dụ tạo mini app quản lý nghỉ phép:
24
37
 
25
38
  ```sh
@@ -34,6 +47,12 @@ Lệnh cuối mở Re.Pack dev server. Để xem giao diện, mở app đã đă
34
47
 
35
48
  Có thể tạo project bằng npm create thay cho npx:
36
49
 
50
+ ```sh
51
+ npm create @thanhphi/360-miniapp@latest <PROJECT_NAME> -- --module <MODULE_NAME> --app-code <APPCODE> --port <PORT>
52
+ ```
53
+
54
+ Ví dụ tương ứng:
55
+
37
56
  ```sh
38
57
  npm create @thanhphi/360-miniapp@latest leave-management -- --module leave --app-code LVE --port 8085
39
58
  ```
@@ -61,6 +80,8 @@ Bộ phiên bản của template:
61
80
 
62
81
  ## Các lựa chọn khi tạo app
63
82
 
83
+ Ví dụ cấu hình đầy đủ:
84
+
64
85
  ```sh
65
86
  npx @thanhphi/create-360-miniapp@latest leave-management --module leave --container LeaveManagement --app-code LVE --display-name "Quản lý nghỉ phép" --bundle-id com.sungroup.leave --port 8085 --env staging
66
87
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thanhphi/create-360-miniapp",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Create a MySGR Expo and Re.Pack mini app with modules, host auth and Azure pipelines",
5
5
  "license": "MIT",
6
6
  "bin": {