Skip to content

Commit 51e42ec

Browse files
authored
Merge pull request #196 from sboldyreva/js
Update AngularJS steps
2 parents b25fbaf + b5bee67 commit 51e42ec

File tree

1 file changed

+78
-69
lines changed

1 file changed

+78
-69
lines changed

docs/els-for-languages/angularjs/README.md

Lines changed: 78 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ TuxCare provides technical support according to the [support policy](https://tux
5959

6060
Please contact [sales@tuxcare.com](mailto:sales@tuxcare.com) for instructions.
6161

62-
<!--
63-
6462
This guide outlines the steps needed to integrate the TuxCare ELS for AngularJS repository.
6563

6664
## Step 1: Get user credentials
@@ -71,106 +69,116 @@ You need a username, password, and token in order to use TuxCare ELS AngularJS r
7169

7270
TuxCare provides ELS for AngularJS as an NPM package, hosted on a secure internal registry. Follow the steps below to add it to your project and get started.
7371

74-
* Navigate to the root directory of your AngularJS project.
75-
* Create a `.npmrc` file or update it if it already exists.
72+
1. Navigate to the root directory of your AngularJS project.
73+
2. Create a `.npmrc` file or update it if it already exists.
74+
75+
**Example:**
76+
77+
```text
78+
my-angularjs-project/
79+
├── node_modules/
80+
├── package.json
81+
├── .npmrc ⚠️ ← Create it here
82+
└── package-lock.json
83+
```
7684

77-
**Example:**
85+
3. Use an editor of your choice (e.g., VS Code) to add the following registry address line:
7886

79-
```text
80-
my-angularjs-project/
81-
├── node_modules/
82-
├── package.json
83-
├── .npmrc ⚠️ ← Create it here
84-
└── package-lock.json
85-
```
87+
<CodeWithCopy>
8688

87-
* Use an editor of your choice (e.g., VS Code) to add the following registry address line:
89+
```text
90+
registry=https://registry.npmjs.org/
91+
@els-js:registry=https://nexus.repo.tuxcare.com/repository/els_js/
92+
//nexus.repo.tuxcare.com/repository/els_js/:_auth=${TOKEN}
93+
```
8894

89-
<CodeWithCopy>
95+
</CodeWithCopy>
9096

91-
```text
92-
registry=https://registry.npmjs.org/
93-
@els-js:registry=https://nexus.repo.tuxcare.com/repository/els-js/
94-
//nexus.repo.tuxcare.com/repository/els-js/:_auth=${TOKEN}
95-
```
97+
:::warning
98+
Replace ${TOKEN} with the token you received from [sales@tuxcare.com](mailto:sales@tuxcare.com).
99+
:::
96100

97-
</CodeWithCopy>
101+
4. Update your `package.json` file to replace your AngularJS dependencies with the TuxCare packages:
98102

99-
:::warning
100-
Replace ${TOKEN} with the token you received from [sales@tuxcare.com](mailto:sales@tuxcare.com).
101-
:::
103+
<TableTabs label="Choose AngularJS version: " >
102104

103-
* Update your `package.json` file to replace your AngularJS dependencies with the TuxCare packages:
105+
<template #AngularJS_1.5>
104106

105-
**AngularJS 1.5**
107+
<CodeWithCopy>
106108

107-
<CodeWithCopy>
109+
```text
110+
"dependencies": {
111+
"angular": "npm:@els-js/angular@1.5.11-tuxcare.1"
112+
}
113+
```
108114
109-
```text
110-
"dependencies": {
111-
"angular": "npm:@els-js/angularjs-1.5"
112-
}
113-
```
115+
</CodeWithCopy>
114116
115-
</CodeWithCopy>
117+
</template>
116118
117-
**AngularJS 1.6**
119+
<template #AngularJS_1.6>
118120
119-
<CodeWithCopy>
121+
<CodeWithCopy>
120122
121-
```text
122-
"dependencies": {
123-
"angular": "npm:@els-js/angularjs-1.6"
124-
}
125-
```
123+
```text
124+
"dependencies": {
125+
"angular": "npm:@els-js/angular@1.6.10-tuxcare.1"
126+
}
127+
```
126128
127-
</CodeWithCopy>
129+
</CodeWithCopy>
128130
129-
**AngularJS 1.7**
131+
</template>
130132
131-
<CodeWithCopy>
133+
<template #AngularJS_1.7>
132134
133-
```text
134-
"dependencies": {
135-
"angular": "npm:@els-js/angularjs-1.7"
136-
}
137-
```
135+
<CodeWithCopy>
136+
137+
```text
138+
"dependencies": {
139+
"angular": "npm:@els-js/angular@1.7.9-tuxcare.1"
140+
}
141+
```
138142
139-
</CodeWithCopy>
143+
</CodeWithCopy>
140144
141-
**AngularJS 1.8**
145+
</template>
142146
143-
<CodeWithCopy>
147+
<template #AngularJS_1.8>
144148
145-
```text
146-
"dependencies": {
147-
"angular": "npm:@els-js/angularjs-1.8"
148-
}
149-
```
149+
<CodeWithCopy>
150150
151-
</CodeWithCopy>
151+
```text
152+
"dependencies": {
153+
"angular": "npm:@els-js/angular@1.8.3-tuxcare.1"
154+
}
155+
```
152156
153-
* In your terminal, run the following command to install ELS for AngularJS dependencies:
157+
</CodeWithCopy>
154158
155-
<CodeWithCopy>
159+
</template>
156160
157-
```text
158-
npm install --userconfig .npmrc
159-
```
161+
</TableTabs>
160162
161-
</CodeWithCopy>
163+
5. In your terminal, run the following command to install ELS for AngularJS dependencies:
162164
163-
You will see an output like:
165+
<CodeWithCopy>
164166
165-
```text
166-
changed 1 package, and audited 5 packages in 892ms
167+
```text
168+
npm install --userconfig .npmrc
169+
```
167170

168-
2 vulnerabilities (1 moderate, 1 high)
169-
```
171+
</CodeWithCopy>
170172

171-
* You've successfully integrated the TuxCare ELS for AngularJS repository into your project.
173+
You will see an output like:
172174

173-
-->
175+
```text
176+
added 1 package, and audited 2 packages in 796ms
177+
178+
found 0 vulnerabilities
179+
```
180+
181+
6. You've successfully integrated the TuxCare ELS for AngularJS repository into your project.
174182

175183
## Resolved CVEs
176184

@@ -188,3 +196,4 @@ Fixes for the following vulnerabilities are available in ELS for AngularJS from
188196
| CVE-2020-7676 | Medium | <1.8.0 | 1.5.11, 1.6.10, 1.7.9 |
189197

190198
If you are interested in the TuxCare Endless Lifecycle Support, contact [sales@tuxcare.com](mailto:sales@tuxcare.com).
199+

0 commit comments

Comments
 (0)