@@ -36,54 +36,56 @@ stages:
3636 inputs :
3737 versionSource : ' spec'
3838 versionSpec : ' 16.x'
39+
3940 - task : Npm@1
4041 displayName : ' Register licensed npm registry in .npmrc'
4142 inputs :
4243 command : ' custom'
4344 workingDir : ' $(Build.SourcesDirectory)'
44- customCommand : ' config -L project set @infragistics:registry=http ://proget .infragistics.local:81 /npm/IgniteUILicensed /'
45- customEndpoint : ' internal licensed proget'
45+ customCommand : ' config -L project set @infragistics:registry=https ://packages .infragistics.com /npm/js-licensed /'
46+ customEndpoint : ' public proget'
4647
4748 - task : Npm@1
4849 displayName : ' npm ci --legacy-peer-deps'
4950 inputs :
5051 command : custom
5152 workingDir : ' $(Build.SourcesDirectory)'
5253 customCommand : ' ci --legacy-peer-deps'
53- customEndpoint : ' internal licensed proget'
54-
55- - task : Npm@1
56- displayName : ' Register licensed npm registry in .npmrc'
57- inputs :
58- command : ' custom'
59- workingDir : ' $(Build.SourcesDirectory)'
60- customCommand : ' config -L project set @infragistics:registry=https://packages.infragistics.com/npm/js-licensed/'
6154 customEndpoint : ' public proget'
55+
56+ # - task: Npm@1
57+ # displayName: 'Register licensed npm registry in .npmrc'
58+ # inputs:
59+ # command: 'custom'
60+ # workingDir: '$(Build.SourcesDirectory)'
61+ # customCommand: 'config -L project set @infragistics:registry=http://proget.infragistics.local:81/npm/IgniteUILicensed/'
62+ # customEndpoint: 'internal licensed proget'
63+
64+ # - task: PowerShell@2
65+ # displayName: 'Uninstall all IG trial packages & re-install their licensed variations'
66+ # inputs:
67+ # failOnStderr: true
68+ # showWarnings: true
69+ # workingDirectory: '$(Build.SourcesDirectory)'
70+ # targetType: 'inline'
71+ # script: |
72+ # Get-Content -Path .\.npmrc
73+ # $packageJson = Get-Content -Raw .\package.json | ConvertFrom-Json
74+ # $npmUninstallPackages = "npm uninstall --save "
75+ # $npmInstallPackages = "npm install --legacy-peer-deps "
76+ # $packageJson.dependencies.PSObject.Properties | `
77+ # Where-Object {
78+ # $_.Name.StartsWith("igniteui-webcomponents-") -or $_.Name.StartsWith("igniteui-dockmanager") `
79+ # } | `
80+ # ForEach-Object { `
81+ # $npmUninstallPackages += $_.Name + " "
82+ # $npmInstallPackages += "@infragistics/" + $_.Name + "@" + $_.Value + " "
83+ # }
84+ # Write-Host $npmUninstallPackages
85+ # Write-Host $npmInstallPackages
86+ # Invoke-Expression -Command “$npmUninstallPackages”
87+ # Invoke-Expression -Command “$npmInstallPackages”
6288
63- - task : PowerShell@2
64- displayName : ' Uninstall all IG trial packages & re-install their licensed variations'
65- inputs :
66- failOnStderr : true
67- showWarnings : true
68- workingDirectory : ' $(Build.SourcesDirectory)'
69- targetType : ' inline'
70- script : |
71- Get-Content -Path .\.npmrc
72- $packageJson = Get-Content -Raw .\package.json | ConvertFrom-Json
73- $npmUninstallPackages = "npm uninstall --save "
74- $npmInstallPackages = "npm install --legacy-peer-deps "
75- $packageJson.dependencies.PSObject.Properties | `
76- Where-Object {
77- $_.Name.StartsWith("igniteui-webcomponents-") -or $_.Name.StartsWith("igniteui-dockmanager") `
78- } | `
79- ForEach-Object { `
80- $npmUninstallPackages += $_.Name + " "
81- $npmInstallPackages += "@infragistics/" + $_.Name + "@" + $_.Value + " "
82- }
83- Write-Host $npmUninstallPackages
84- Write-Host $npmInstallPackages
85- Invoke-Expression -Command “$npmUninstallPackages”
86- Invoke-Expression -Command “$npmInstallPackages”
8789 - task : Npm@1
8890 displayName : ' npm run build'
8991 inputs :
0 commit comments