Skip to content

Commit 4730e7a

Browse files
committed
fix(core): updated the schematics process
1 parent fdd6aed commit 4730e7a

File tree

4 files changed

+143
-2
lines changed

4 files changed

+143
-2
lines changed

package-lock.json

Lines changed: 135 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
"codelyzer": "^4.5.0",
7070
"commitplease": "^3.2.0",
7171
"conventional-github-releaser": "2.0.2",
72+
"copy-webpack-plugin": "^5.0.3",
7273
"core-js": "^2.6.7",
7374
"css-loader": "^2.1.0",
7475
"cssnano": "^4.1.8",
@@ -176,4 +177,4 @@
176177
],
177178
"scope": "\\S+.*"
178179
}
179-
}
180+
}

src/module/mat-core.module.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ import {ModuleWithProviders, NgModule} from '@angular/core';
44
import {MatSplashScreenService} from './services/splash/mat-splash-screen.service';
55
import {FlexLayoutModule} from '@angular/flex-layout';
66
import {MatButtonModule, MatMenuModule} from '@angular/material';
7+
import {MatLanguageMenuComponent} from './components/mat-language-menu/mat-language-menu.component';
78

89

910
// Export module's public API
11+
// CORE
1012
export {MatSplashScreenService} from './services/splash/mat-splash-screen.service';
13+
export {MatLanguageMenuComponent} from './components/mat-language-menu/mat-language-menu.component';
14+
// DIALOGS
1115
export {MatDialogsModule} from './components/dialogs/mat-dialogs.module';
1216
export {MatAlertDialog, MatAlertDialogData, AlertType} from './components/dialogs/mat-alert-dialog/mat-alert-dialog.component';
1317
export {MatAsyncDialog, MatAsyncDialogData} from './components/dialogs/mat-async-dialog/mat-async-dialog.component';
@@ -28,7 +32,7 @@ export {MatTimerDialog} from './components/dialogs/mat-timer-dialog/mat-timer-di
2832
],
2933
exports: [],
3034
entryComponents: [],
31-
declarations: [],
35+
declarations: [MatLanguageMenuComponent],
3236
})
3337
export class MatCoreModule {
3438
static forRoot(): ModuleWithProviders {

src/schematics/src/ng-add/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export function getPackageVersionFromPackageJson(tree: Tree, name: string): stri
7878
return null;
7979
}
8080

81+
// tslint:disable-next-line:no-non-null-assertion
8182
const packageJson = JSON.parse(tree.read('package.json')!.toString('utf8'));
8283

8384
if (packageJson.dependencies && packageJson.dependencies[name]) {

0 commit comments

Comments
 (0)