Skip to content

Commit 940f207

Browse files
committed
feat(project): added schematics support #145
1 parent 96c83de commit 940f207

File tree

9 files changed

+53
-13
lines changed

9 files changed

+53
-13
lines changed

demo-schematics/angular.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@
88
"sourceRoot": "src",
99
"projectType": "application",
1010
"prefix": "app",
11-
"schematics": {
12-
"@schematics/angular:component": {
13-
"styleext": "scss"
14-
}
15-
},
11+
"schematics": {},
1612
"architect": {
1713
"build": {
1814
"builder": "@angular-devkit/build-angular:browser",
@@ -27,7 +23,8 @@
2723
"src/assets"
2824
],
2925
"styles": [
30-
"src/styles.scss"
26+
"./node_modules/@angular/material/prebuilt-themes/purple-green.css",
27+
"src/styles.css"
3128
],
3229
"scripts": []
3330
},
@@ -83,7 +80,8 @@
8380
"tsConfig": "src/tsconfig.spec.json",
8481
"karmaConfig": "src/karma.conf.js",
8582
"styles": [
86-
"src/styles.scss"
83+
"./node_modules/@angular/material/prebuilt-themes/purple-green.css",
84+
"src/styles.css"
8785
],
8886
"scripts": [],
8987
"assets": [

demo-schematics/package-lock.json

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

demo-schematics/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@
1111
},
1212
"private": true,
1313
"dependencies": {
14+
"@angular-material-extensions/password-strength": "3.4.1",
1415
"@angular/animations": "~7.2.0",
16+
"@angular/cdk": "~7.3.3",
1517
"@angular/common": "~7.2.0",
1618
"@angular/compiler": "~7.2.0",
1719
"@angular/core": "~7.2.0",
1820
"@angular/forms": "~7.2.0",
21+
"@angular/material": "~7.3.3",
1922
"@angular/platform-browser": "~7.2.0",
2023
"@angular/platform-browser-dynamic": "~7.2.0",
2124
"@angular/router": "~7.2.0",
File renamed without changes.

demo-schematics/src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Component } from '@angular/core';
33
@Component({
44
selector: 'app-root',
55
templateUrl: './app.component.html',
6-
styleUrls: ['./app.component.scss']
6+
styleUrls: ['./app.component.css']
77
})
88
export class AppComponent {
99
title = 'demo-schematics';

demo-schematics/src/app/app.module.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@ import { BrowserModule } from '@angular/platform-browser';
22
import { NgModule } from '@angular/core';
33

44
import { AppComponent } from './app.component';
5+
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
6+
import { MatPasswordStrengthModule } from '@angular-material-extensions/password-strength';
57

68
@NgModule({
79
declarations: [
810
AppComponent
911
],
1012
imports: [
11-
BrowserModule
13+
BrowserModule,
14+
BrowserAnimationsModule,
15+
MatPasswordStrengthModule
1216
],
1317
providers: [],
1418
bootstrap: [AppComponent]

demo-schematics/src/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
<meta name="viewport" content="width=device-width, initial-scale=1">
99
<link rel="icon" type="image/x-icon" href="favicon.ico">
10+
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
11+
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
1012
</head>
1113
<body>
1214
<app-root></app-root>

demo-schematics/src/styles.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/* You can add global styles to this file, and also import other style files */
2+
3+
html, body { height: 100%; }
4+
body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; }

demo-schematics/src/styles.scss

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)