create-pb-tririga-react-app 1.0.2 → 1.0.4

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 CHANGED
@@ -23,6 +23,7 @@ npx create-pb-tririga-react-app my-tririga-app
23
23
  Once created:
24
24
 
25
25
  1. `cd my-tririga-app`
26
- 2. `npm install`
27
- 3. Update configuration files (see `README.md`)
28
- 4. `npm run build:deploy`
26
+ 2. `npm install -g pnpm`
27
+ 2. `pnpm install`
28
+ 3. Update configuration files (see `README.md`)
29
+ 4. `pnpm run build:deploy`
package/index.js CHANGED
@@ -49,4 +49,6 @@ 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(`See Readme.md in the project folder for instructions on how to get started.`);
52
+ console.log(`cd ${projectName}`);
53
+ console.log(`pnpm install`);
54
+ console.log(`pnpm run dev`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-pb-tririga-react-app",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Scaffold a TRIRIGA React app with Vite and TypeScript",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -11,7 +11,12 @@
11
11
  "template",
12
12
  "README.md"
13
13
  ],
14
- "keywords": ["tririga", "react", "vite", "scaffold"],
14
+ "keywords": [
15
+ "tririga",
16
+ "react",
17
+ "vite",
18
+ "scaffold"
19
+ ],
15
20
  "author": "Your Name",
16
21
  "license": "ISC"
17
22
  }
@@ -4,19 +4,24 @@ This is a template for building IBM TRIRIGA UX applications using React, TypeScr
4
4
 
5
5
  ## Getting Started
6
6
 
7
- 1. **Install Dependencies**
8
- ```bash
9
- npm install
7
+ 1. **Install pnpm** (If not already installed)
8
+ ```
9
+ npm install -g pnpm
10
+ ```
11
+
12
+ 2. **Install Dependencies**
13
+ ```
14
+ pnpm install
10
15
  ```
11
16
 
12
- 2. **Configure Environment**
13
- Copy `.env.example` to `.env` and update the values for your local development and deployment settings.
14
- ```bash
15
- cp .env.example .env
17
+ 3. **Configure Environment**
18
+ 4. **Run Locally**
19
+ ```
20
+ pcp .env.example .env
16
21
  ```
17
22
 
18
23
  3. **Run Locally**
19
- ```bash
24
+ ```
20
25
  npm run dev
21
26
  ```
22
27
  Open [http://localhost:5173](http://localhost:5173) (or the port shown in terminal).
@@ -26,8 +31,8 @@ This is a template for building IBM TRIRIGA UX applications using React, TypeScr
26
31
  To deploy to a TRIRIGA environment:
27
32
 
28
33
  1. **Install Depoyment Tool** (If not already installed globally)
29
- ```bash
30
- npm install -g @tririga/tri-deploy
34
+ ```
35
+ pnpm install -g @tririga/tri-deploy
31
36
  ```
32
37
  *Note: If you prefer not to install globally, you can add `@tririga/tri-deploy` to your devDependencies.*
33
38
 
@@ -36,8 +41,8 @@ To deploy to a TRIRIGA environment:
36
41
 
37
42
  3. **Run Deployment**
38
43
  The view name will be taken from the `name` field in `package.json`.
39
- ```bash
40
- npm run build:deploy
44
+ ```
45
+ pnpm run build:deploy
41
46
  ```
42
47
 
43
48
  ## Browser Support & Polyfills
@@ -9,7 +9,7 @@
9
9
  "lint": "eslint .",
10
10
  "preview": "vite preview",
11
11
  "deploy": "dotenv -- cross-var tri-deploy -t %TRI_URL% -u %TRI_USER% -p %TRI_PASSWORD% -v \"$npm_package_name\" -d dist -w",
12
- "build:deploy": "npm run build && npm run deploy"
12
+ "build:deploy": "pnpm run build && pnpm run deploy"
13
13
  },
14
14
  "dependencies": {
15
15
  "@babel/runtime": "^7.26.0",