Skip to content

Commit

Permalink
Publish samples to prod (#881)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkamburov authored Nov 19, 2024
1 parent 4014645 commit 4b41c12
Show file tree
Hide file tree
Showing 1,024 changed files with 21,586 additions and 22,771 deletions.
68 changes: 34 additions & 34 deletions azure-pipelines/build-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ stages:
displayName: 'Install Node'
inputs:
versionSource: 'spec'
versionSpec: '16.x'
versionSpec: '18.x'

- task: Npm@1
displayName: 'Register licensed npm registry in .npmrc'
Expand All @@ -46,45 +46,45 @@ stages:
customEndpoint: 'public proget'

- task: Npm@1
displayName: 'npm ci --legacy-peer-deps'
displayName: 'npm install --legacy-peer-deps'
inputs:
command: custom
workingDir: '$(Build.SourcesDirectory)'
customCommand: 'ci --legacy-peer-deps'
customCommand: 'install --legacy-peer-deps'
customEndpoint: 'public proget'

# - task: Npm@1
# displayName: 'Register licensed npm registry in .npmrc'
# inputs:
# command: 'custom'
# workingDir: '$(Build.SourcesDirectory)'
# customCommand: 'config -L project set @infragistics:registry=http://proget.infragistics.local:81/npm/IgniteUILicensed/'
# customEndpoint: 'internal licensed proget'
- task: Npm@1
displayName: 'Register licensed npm registry in .npmrc'
inputs:
command: 'custom'
workingDir: '$(Build.SourcesDirectory)'
customCommand: 'config -L project set @infragistics:registry=https://packages.infragistics.com/npm/js-licensed/'
customEndpoint: 'internal licensed proget'

# - task: PowerShell@2
# displayName: 'Uninstall all IG trial packages & re-install their licensed variations'
# inputs:
# failOnStderr: true
# showWarnings: true
# workingDirectory: '$(Build.SourcesDirectory)'
# targetType: 'inline'
# script: |
# Get-Content -Path .\.npmrc
# $packageJson = Get-Content -Raw .\package.json | ConvertFrom-Json
# $npmUninstallPackages = "npm uninstall --save "
# $npmInstallPackages = "npm install --legacy-peer-deps "
# $packageJson.dependencies.PSObject.Properties | `
# Where-Object {
# $_.Name.StartsWith("igniteui-webcomponents-") -or $_.Name.StartsWith("igniteui-dockmanager") `
# } | `
# ForEach-Object { `
# $npmUninstallPackages += $_.Name + " "
# $npmInstallPackages += "@infragistics/" + $_.Name + "@" + $_.Value + " "
# }
# Write-Host $npmUninstallPackages
# Write-Host $npmInstallPackages
# Invoke-Expression -Command “$npmUninstallPackages”
# Invoke-Expression -Command “$npmInstallPackages”
- task: PowerShell@2
displayName: 'Uninstall all IG trial packages & re-install their licensed variations'
inputs:
failOnStderr: true
showWarnings: true
workingDirectory: '$(Build.SourcesDirectory)'
targetType: 'inline'
script: |
Get-Content -Path .\.npmrc
$packageJson = Get-Content -Raw .\package.json | ConvertFrom-Json
$npmUninstallPackages = "npm uninstall --save "
$npmInstallPackages = "npm install --legacy-peer-deps "
$packageJson.dependencies.PSObject.Properties | `
Where-Object {
$_.Name.StartsWith("igniteui-webcomponents-") -or $_.Name.StartsWith("igniteui-dockmanager") `
} | `
ForEach-Object { `
$npmUninstallPackages += $_.Name + " "
$npmInstallPackages += "@infragistics/" + $_.Name + "@" + $_.Value + " "
}
Write-Host $npmUninstallPackages
Write-Host $npmInstallPackages
Invoke-Expression -Command “$npmUninstallPackages”
Invoke-Expression -Command “$npmInstallPackages”
- task: Npm@1
displayName: 'npm run build'
Expand Down
7 changes: 7 additions & 0 deletions browser/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,13 @@
<a class="nav-link" href="#" data-nav="/samples/layouts/card/semi-horizontal"><span>Semi Horizontal</span></a>
<a class="nav-link" href="#" data-nav="/samples/layouts/card/styling"><span>Styling</span></a>
</div>
<label id="nav-carousel" class="nav-component">Carousel</label>
<div id="nav-carousel-list" class="nav-list" state="collapsed">
<a class="nav-link" href="#" data-nav="/samples/layouts/carousel/animations"><span>Animations</span></a>
<a class="nav-link" href="#" data-nav="/samples/layouts/carousel/components"><span>Components</span></a>
<a class="nav-link" href="#" data-nav="/samples/layouts/carousel/overview"><span>Overview</span></a>
<a class="nav-link" href="#" data-nav="/samples/layouts/carousel/thumbnail"><span>Thumbnail</span></a>
</div>
<label id="nav-divider" class="nav-component">Divider</label>
<div id="nav-divider-list" class="nav-list" state="collapsed">
<a class="nav-link" href="#" data-nav="/samples/layouts/divider/base"><span>Base</span></a>
Expand Down
3 changes: 2 additions & 1 deletion browser/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ export class Router {
}

private preventDocumentScroll(event:any) {
if (event.target.outerHTML.toLowerCase().includes('igx')) {
const eventPath = event.composedPath();
if (event.target.outerHTML.toLowerCase().includes('igx') && eventPath.filter(x => x.classList?.value === 'igx-grid__tbody').length > 0) {
event.preventDefault();
}
}
Expand Down
28 changes: 14 additions & 14 deletions browser/tasks/gulp-samples.js
Original file line number Diff line number Diff line change
Expand Up @@ -976,22 +976,22 @@ function updateIG(cb) {
// { name: "igniteui-webcomponents-core", version: "3.2.2" }, // PUBLIC NPM
let packageUpgrades = [
// these IG packages are often updated:
{ name: "igniteui-webcomponents-core" , version: "5.0.2" },
{ name: "igniteui-webcomponents-charts" , version: "5.0.2" },
{ name: "igniteui-webcomponents-excel" , version: "5.0.2" },
{ name: "igniteui-webcomponents-gauges" , version: "5.0.2" },
{ name: "igniteui-webcomponents-grids" , version: "5.0.2" },
{ name: "igniteui-webcomponents-inputs" , version: "5.0.2" },
{ name: "igniteui-webcomponents-layouts" , version: "5.0.2" },
{ name: "igniteui-webcomponents-maps" , version: "5.0.2" },
{ name: "igniteui-webcomponents-spreadsheet-chart-adapter", version: "5.0.2" },
{ name: "igniteui-webcomponents-spreadsheet" , version: "5.0.2" },
{ name: "igniteui-webcomponents-datasources" , version: "5.0.2" },
{ name: "igniteui-webcomponents-core" , version: "5.1.0" },
{ name: "igniteui-webcomponents-charts" , version: "5.1.0" },
{ name: "igniteui-webcomponents-excel" , version: "5.1.0" },
{ name: "igniteui-webcomponents-gauges" , version: "5.1.0" },
{ name: "igniteui-webcomponents-grids" , version: "5.1.0" },
{ name: "igniteui-webcomponents-inputs" , version: "5.1.0" },
{ name: "igniteui-webcomponents-layouts" , version: "5.1.0" },
{ name: "igniteui-webcomponents-maps" , version: "5.1.0" },
{ name: "igniteui-webcomponents-spreadsheet-chart-adapter", version: "5.1.0" },
{ name: "igniteui-webcomponents-spreadsheet" , version: "5.1.0" },
{ name: "igniteui-webcomponents-datasources" , version: "5.1.0" },
// these IG packages are sometimes updated:
{ name: "igniteui-webcomponents", version: "5.0.0" },
{ name: "igniteui-dockmanager", version: "1.14.3" },
{ name: "igniteui-webcomponents", version: "5.1.2" },
{ name: "igniteui-dockmanager", version: "1.15.2" },
// other packages:
{ name: "webpack", version: "^5.74.0" },
{ name: "webpack", version: "^5.96.1" },
{ name: "webpack-cli", version: "^4.10.0" },
{ name: "webpack-dev-server", version: "^4.11.1" },
{ name: "lit", version: "^3.2.0" },
Expand Down
Loading

0 comments on commit 4b41c12

Please sign in to comment.