@thanhphi/create-360-miniapp 0.2.1 → 0.2.2

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 +23 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -20,6 +20,21 @@ 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
+ Thay các giá trị trong `[...]` bằng thông tin của app, không giữ dấu ngoặc vuông khi chạy lệnh:
30
+
31
+ | Tham số | Ý nghĩa |
32
+ | --- | --- |
33
+ | `PROJECT_NAME` | Tên thư mục và npm package, viết thường và nối bằng dấu gạch ngang |
34
+ | `MODULE_NAME` | Tên thư mục nghiệp vụ trong `src/modules/` |
35
+ | `APPCODE` | Mã app trên backend, viết hoa |
36
+ | `PORT` | Cổng Re.Pack dev server, ví dụ `8085` |
37
+
23
38
  Ví dụ tạo mini app quản lý nghỉ phép:
24
39
 
25
40
  ```sh
@@ -34,6 +49,12 @@ Lệnh cuối mở Re.Pack dev server. Để xem giao diện, mở app đã đă
34
49
 
35
50
  Có thể tạo project bằng npm create thay cho npx:
36
51
 
52
+ ```sh
53
+ npm create @thanhphi/360-miniapp@latest [PROJECT_NAME] -- --module [MODULE_NAME] --app-code [APPCODE] --port [PORT]
54
+ ```
55
+
56
+ Ví dụ tương ứng:
57
+
37
58
  ```sh
38
59
  npm create @thanhphi/360-miniapp@latest leave-management -- --module leave --app-code LVE --port 8085
39
60
  ```
@@ -61,6 +82,8 @@ Bộ phiên bản của template:
61
82
 
62
83
  ## Các lựa chọn khi tạo app
63
84
 
85
+ Ví dụ cấu hình đầy đủ:
86
+
64
87
  ```sh
65
88
  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
89
  ```
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.2",
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": {