Skip to content

Commit

Permalink
Merge pull request #3374 from IgniteUI/vnext
Browse files Browse the repository at this point in the history
Promote staging to production
  • Loading branch information
zdrawku authored Aug 17, 2023
2 parents 2cea049 + 8f016cc commit b3287c6
Show file tree
Hide file tree
Showing 59 changed files with 5,592 additions and 5,998 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-app-crm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
run: npm config set ${{secrets.IG_SCOPE}}:_auth=${{secrets.IG_TOKEN}}

- name: Install dependencies
run: npm ci --legacy-peer-deps
run: npm ci

- name: Run lint
run: npm run lint
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-app-lob.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
run: npm config set ${{secrets.IG_SCOPE}}:_auth=${{secrets.IG_TOKEN}}

- name: Install dependencies
run: npm ci --legacy-peer-deps
run: npm ci

- name: Run lint
run: npm run lint
Expand Down
9 changes: 7 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ const processApp = (projectPath, dest, directoriesToExclude) => {
fs.readFile(file.path, 'utf-8', (err, content) => {
// Adjust sample application bundle files
const jsonObj = JSON.parse(content);
const codesandboxConfigFolder = '.codesandbox';
const additionals = [];
const packageJson =
{
Expand Down Expand Up @@ -197,6 +198,8 @@ const processApp = (projectPath, dest, directoriesToExclude) => {
fs.mkdirSync(sampleAppPath);
}

fs.mkdirSync(`${sampleAppPath}/${codesandboxConfigFolder}`);

// Distribute Sample Files
jsonObj.sampleFiles.forEach(sampleFile => {
let sampleContent;
Expand All @@ -211,10 +214,12 @@ const processApp = (projectPath, dest, directoriesToExclude) => {
let tempPath = "";
paths.forEach(p => {
tempPath += p + "/";
if (p.indexOf(".") !== -1) {
if (p.indexOf(".") !== -1 && p !== codesandboxConfigFolder) {
fs.writeFileSync(sampleAppPath + "/" + tempPath, sampleContent);
} else
if (!fs.existsSync(sampleAppPath + "/" + tempPath)) {
if (p === 'Dockerfile') {
fs.writeFileSync(sampleAppPath + "/" + tempPath, sampleContent);
} else if (!fs.existsSync(sampleAppPath + "/" + tempPath)) {
fs.mkdirSync(sampleAppPath + "/" + tempPath)
}
})
Expand Down
12 changes: 12 additions & 0 deletions live-editing/configs/BadgeConfigGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@ export class BadgeConfigGenerator implements IConfigGenerator {
public generateConfigs(): Config[] {
const configs = new Array<Config>();

// badge icon sample
configs.push(new Config({
component: 'BadgeIconComponent',
additionalFiles: ["src/app/data-display/badge/model/member.model.ts"],
appModuleConfig: new AppModuleConfig({
imports: ['IgxBadgeModule', 'IgxAvatarModule', 'BadgeIconComponent'],
ngDeclarations: ['BadgeIconComponent'],
ngImports: ['IgxBadgeModule', 'IgxAvatarModule']
}),
shortenComponentPathBy: "/data-display/badge/"
}));

// badge sample 2
configs.push(new Config({
component: 'BadgeSample2Component',
Expand Down
3 changes: 1 addition & 2 deletions live-editing/configs/BannerConfigGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ export class BannerConfigGenerator implements IConfigGenerator {
'IgxRippleModule', 'IgxIconModule', 'BannerStylingComponent'],
ngDeclarations: ['BannerStylingComponent'],
ngImports: ['IgxBannerModule', 'IgxCardModule', 'IgxToastModule', 'IgxNavbarModule', 'IgxButtonModule',
'IgxRippleModule', 'IgxIconModule', 'IgxButtonModule',
'IgxRippleModule']
'IgxRippleModule', 'IgxIconModule']
}),
shortenComponentPathBy: "/notifications/banner/"
}));
Expand Down
6 changes: 3 additions & 3 deletions live-editing/configs/GridConfigGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class GridConfigGenerator implements IConfigGenerator {
additionalFiles: ['/src/app/directives/prevent-scroll.directive.ts', '/src/app/data/invoiceData.ts'],
appModuleConfig: new AppModuleConfig({
imports: ['IgxButtonModule', 'IgxGridModule',
'IgxSwitchModule', 'GridGroupBySampleComponent', 'IgxIconModule', 'IgxBadgeModule', 'IgxPreventDocumentScrollModule', 'IgxDropDownModule', 'IgxToggleModule'],
'IgxSwitchModule', 'GridGroupByCustomSampleComponent', 'IgxIconModule', 'IgxBadgeModule', 'IgxPreventDocumentScrollModule', 'IgxDropDownModule', 'IgxToggleModule'],
ngDeclarations: ['GridGroupByCustomSampleComponent'],
ngImports: ['IgxPreventDocumentScrollModule', 'IgxButtonModule', 'IgxGridModule', 'IgxIconModule', 'IgxBadgeModule', 'IgxDropDownModule','IgxToggleModule' ]
})
Expand Down Expand Up @@ -958,9 +958,9 @@ export class GridConfigGenerator implements IConfigGenerator {
component: 'GridClipboardSampleComponent',
additionalFiles: ['/src/app/directives/prevent-scroll.directive.ts', '/src/app/data/nwindData.ts'],
appModuleConfig: new AppModuleConfig({
imports: ['GridClipboardSampleComponent', 'IgxGridModule', 'IgxSwitchModule', 'IgxInputGroupModule', 'IgxIconModule', 'IgxPreventDocumentScrollModule'],
imports: ['GridClipboardSampleComponent', 'IgxGridModule', 'IgxSwitchModule', 'IgxInputGroupModule', 'IgxIconModule', 'IgxPreventDocumentScrollModule', 'IgxButtonModule'],
ngDeclarations: ['GridClipboardSampleComponent'],
ngImports: ['IgxPreventDocumentScrollModule', 'IgxGridModule', 'IgxSwitchModule', 'IgxInputGroupModule', 'IgxIconModule']
ngImports: ['IgxPreventDocumentScrollModule', 'IgxGridModule', 'IgxSwitchModule', 'IgxInputGroupModule', 'IgxIconModule', 'IgxButtonModule']
})
}));
configs.push(new Config({
Expand Down
11 changes: 11 additions & 0 deletions live-editing/configs/IconConfigGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,17 @@ export class IconConfigGenerator implements IConfigGenerator {
shortenComponentPathBy: "/data-display/icon/"
}));

// Material Symbols Sample
configs.push(new Config({
component: 'MaterialSymbolsComponent',
appModuleConfig: new AppModuleConfig({
imports: ['IgxIconModule', 'MaterialSymbolsComponent'],
ngDeclarations: ['MaterialSymbolsComponent'],
ngImports: ['IgxIconModule']
}),
shortenComponentPathBy: "/data-display/material-symbols/"
}));

// Material icons extended sample
configs.push(new Config({
component: 'MaterialIconsExtendedComponent',
Expand Down
Loading

0 comments on commit b3287c6

Please sign in to comment.