create-pb-tririga-react-app 1.0.1 → 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/index.js +1 -3
- package/package.json +1 -1
- package/template/README.md +5 -5
package/index.js
CHANGED
|
@@ -49,6 +49,4 @@ pkgJson.name = projectName;
|
|
|
49
49
|
fs.writeFileSync(pkgJsonPath, JSON.stringify(pkgJson, null, 2));
|
|
50
50
|
|
|
51
51
|
console.log(`Success! Created ${projectName}.`);
|
|
52
|
-
console.log(`
|
|
53
|
-
console.log(`npm install`);
|
|
54
|
-
console.log(`npm run dev`);
|
|
52
|
+
console.log(`See Readme.md in the project folder for instructions on how to get started.`);
|
package/package.json
CHANGED
package/template/README.md
CHANGED
|
@@ -5,18 +5,18 @@ This is a template for building IBM TRIRIGA UX applications using React, TypeScr
|
|
|
5
5
|
## Getting Started
|
|
6
6
|
|
|
7
7
|
1. **Install Dependencies**
|
|
8
|
-
```
|
|
8
|
+
```
|
|
9
9
|
npm install
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
2. **Configure Environment**
|
|
13
13
|
Copy `.env.example` to `.env` and update the values for your local development and deployment settings.
|
|
14
|
-
```
|
|
14
|
+
```
|
|
15
15
|
cp .env.example .env
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
3. **Run Locally**
|
|
19
|
-
```
|
|
19
|
+
```
|
|
20
20
|
npm run dev
|
|
21
21
|
```
|
|
22
22
|
Open [http://localhost:5173](http://localhost:5173) (or the port shown in terminal).
|
|
@@ -26,7 +26,7 @@ This is a template for building IBM TRIRIGA UX applications using React, TypeScr
|
|
|
26
26
|
To deploy to a TRIRIGA environment:
|
|
27
27
|
|
|
28
28
|
1. **Install Depoyment Tool** (If not already installed globally)
|
|
29
|
-
```
|
|
29
|
+
```
|
|
30
30
|
npm install -g @tririga/tri-deploy
|
|
31
31
|
```
|
|
32
32
|
*Note: If you prefer not to install globally, you can add `@tririga/tri-deploy` to your devDependencies.*
|
|
@@ -36,7 +36,7 @@ To deploy to a TRIRIGA environment:
|
|
|
36
36
|
|
|
37
37
|
3. **Run Deployment**
|
|
38
38
|
The view name will be taken from the `name` field in `package.json`.
|
|
39
|
-
```
|
|
39
|
+
```
|
|
40
40
|
npm run build:deploy
|
|
41
41
|
```
|
|
42
42
|
|