Skip to content

Commit

Permalink
chore(webapps): use HeroDev libraries
Browse files Browse the repository at this point in the history
related to: #4549
  • Loading branch information
venetrius committed Oct 18, 2024
1 parent 80b9a35 commit ece30df
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pipeline {
}
withVault([vaultSecrets: [
[
path : 'secret/products/cambpm/ci/xlts.dev',
path : 'secret/products/cambpm/ci/hero-dev',
secretValues: [
[envVar: 'XLTS_REGISTRY', vaultKey: 'registry'],
[envVar: 'XLTS_AUTH_TOKEN', vaultKey: 'authToken']]
Expand Down
2 changes: 1 addition & 1 deletion webapps/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"webpack-merge": "5.10.0"
},
"xlts": {
"xltsVersion": "1.9.3",
"xltsVersion": "1.9.7",
"dependencies": [
"angular",
"angular-animate",
Expand Down
11 changes: 6 additions & 5 deletions webapps/frontend/scripts/xlts.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

const scope = 'xlts.dev';
const scope = 'neverendingsupport';

const {execSync} = require('child_process');

Expand Down Expand Up @@ -54,12 +54,13 @@ if (
process.argv[2] === 'install'
) {
const {xltsVersion, dependencies} = require('../package.json').xlts;

const getNpmPackages = dependencies =>
dependencies
.map(
npmPackage => `${npmPackage}@npm:@${scope}/${npmPackage}@${xltsVersion}`
)
.map(npmPackage => {
let versionPostfix = npmPackage.split('-')[1] || '';
versionPostfix = versionPostfix ? '-' + versionPostfix : '';
return `${npmPackage}@npm:@${scope}/angularjs@${xltsVersion}${versionPostfix}`;
})
.join(' ');

exec(`npm i --save-exact ${getNpmPackages(dependencies)}`);
Expand Down

0 comments on commit ece30df

Please sign in to comment.