Skip to content

Commit 1a5afa3

Browse files
authored
A 8.7 constellation from npm (#86)
* SDK-A 8.7 Get Constellation files from npm package * Add npmrc, update default to 8.7.2
1 parent 35c509b commit 1a5afa3

File tree

9 files changed

+834
-815
lines changed

9 files changed

+834
-815
lines changed

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Use default npmjs registry for the SDKs
2+
registry = https://registry.npmjs.org/

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ Future updates to the SDK will support more recent LTS versions of node as Const
5858
* The **serverConfig** section contains values related to the Pega Infinity server and SDK Content Server.
5959
<br><br>
6060
61-
3. Obtain the necessary Constellation files (ex: bootstrap-shell, lib_asset, constellation-core) that need to be installed to enable the SDK to connect to the Constellation UI Service. Licensed and authorized Pega clients can access these files from the SDK download at https://community.pega.com/marketplace/components/angular-sdk or from a Pega representative. Instructions for installing these files can be found in **constellation/__Install-constellation-files.md**
61+
3. Edit the **package.json** file's dependency for **[@pega/constellationjs](https://www.npmjs.com/package/@pega/constellationjs)** with the **tag name** that is appropriate for the Pega Infinity version that your application is running. For example, Infinity 8.7.1 uses the tag "**SDK-8.7.1**", Infinity 8.7.2 uses the tag "**SDK-8.7.2**", etc. You must **always** use the appropriate Constellation files that match your Infinity deployment. Please check your Infinity version and choose the correct version.
62+
<br><br>
6263
6364
6465
### **Run** the application

angular.json

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,28 @@
4040
"output": "./"
4141
},
4242
{
43-
"glob": "bootstrap-shell.js",
44-
"input": "./constellation/",
43+
"glob": "bootstrap-shell.*",
44+
"input": "./node_modules/@pega/constellationjs/dist/",
45+
"output": "./constellation"
46+
},
47+
{
48+
"glob": "bootstrap-shell.*.*",
49+
"input": "./node_modules/@pega/constellationjs/dist/",
4550
"output": "./constellation"
4651
},
4752
{
4853
"glob": "lib_asset.json",
49-
"input": "./constellation/",
54+
"input": "./node_modules/@pega/constellationjs/dist/",
5055
"output": "./constellation"
5156
},
57+
{
58+
"glob": "constellation-core.*",
59+
"input": "./node_modules/@pega/constellationjs/dist/",
60+
"output": "./constellation/prerequisite"
61+
},
5262
{
5363
"glob": "constellation-core.*.*",
54-
"input": "./constellation/",
64+
"input": "./node_modules/@pega/constellationjs/dist/",
5565
"output": "./constellation/prerequisite"
5666
},
5767
{

constellation/__Install-constellation-files.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22

33
The **Angular SDK** provides Pega customers with a bridge from the Pega **Constellation JavaScript Engine** (part of the Pega Infinity&trade; product) to the Angular bridge and components in this repository.
44

5-
However, the code is this repository does **not** include the necessary Constellation JS Engine code itself. That code is provided to authorized and licensed Pega clients via the Pega Marketplace or a Pega representative.
5+
However, the code is this repository does **not** include the necessary Constellation JS Engine code itself. That code is obtained via an npm dependency in this project's **package.json** file.
66

7-
The Constellation files that are obtained will include the following which need to be **copied into the constellation directory**:
8-
9-
* **bootstrap-shell.js** (minified, compressed version)
10-
* **<span style="display: inline">bootstrap-shell.js.br</span>** (Brotli compressed version)
11-
* **bootstrap-shell.js.gz** (GZip compressed version)
7+
In your project's **package.json** dependencies, specify the package name **and**
8+
the **tag** of the version of the ConstellationJS files that your project needs.
129

10+
For example:
1311
<br>
12+
* **"@pega/constellationjs": "SDK-8.7.1"** <br>
13+
will get the ConstellationJS files associated with Pega Infinity version
14+
8.7.1
1415

15-
* **lib_asset.json** (indicates which constellation-core file to use; the hash in the specified constellation-core file must match the hash of the *constellation-core.*.* files)
16-
16+
* **"@pega/constellationjs": "SDK-8.7.2"** <br>
17+
will get the ConstellationJS files associated with Pega Infinity version
18+
8.7.2
1719
<br>
1820

19-
* **constellation-core.xxxx.js** (compressed, minified version where xxxx is a hash)
20-
* **<span style="display: inline">constellation-core.xxxx.js.br</span>** (Brotli compressed version)
21-
* **constellation-core.xxxx.js.gz** (Gzip compressed version)
22-
* **constellation-core.xxxx.LICENSE-txt** (reference to license for these files)
21+
You must **always** use the appropriate Constellation files that match your Infinity deployment. Please check your Infinity version and choose the correct version.
2322

24-
The webpack build process will move these files into the correct destination directory.
23+
The webpack build process will move the necessary files from the dependency's **node_modules/@pega/constellationjs** directory
24+
into the **dist/constellation** and **dist/constellaton/prequisite** directories.

0 commit comments

Comments
 (0)