ngssm-schematics 14.2.0 → 14.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -5
- package/esm2020/lib/ngssm-schematics.module.mjs +4 -4
- package/fesm2015/ngssm-schematics.mjs +4 -4
- package/fesm2020/ngssm-schematics.mjs +4 -4
- package/package.json +1 -1
- package/schematics/add-material/index.js +2 -14
- package/schematics/add-material/index.js.map +1 -1
- package/schematics/add-material/schema.json +2 -2
- package/schematics/collection.json +1 -1
- package/schematics/ng-add/schema.d.ts +1 -1
package/README.md
CHANGED
|
@@ -87,16 +87,12 @@ Add *@fortawesome/fontawesome-free* to the project.
|
|
|
87
87
|
|
|
88
88
|
## add-material
|
|
89
89
|
|
|
90
|
-
Add *@angular/material*
|
|
90
|
+
Add *@angular/material* to the project.
|
|
91
91
|
|
|
92
92
|
- [material](https://material.angular.io/)
|
|
93
93
|
```
|
|
94
94
|
ng add @angular/material
|
|
95
95
|
```
|
|
96
|
-
- [flex-layout](https://tburleson-layouts-demos.firebaseapp.com/#/docs)
|
|
97
|
-
```
|
|
98
|
-
npm install @angular/flex-layout --save
|
|
99
|
-
```
|
|
100
96
|
|
|
101
97
|
## Schematics associated to the state management
|
|
102
98
|
|
|
@@ -2,10 +2,10 @@ import { NgModule } from '@angular/core';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export class NgssmSchematicsModule {
|
|
4
4
|
}
|
|
5
|
-
NgssmSchematicsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.
|
|
6
|
-
NgssmSchematicsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.
|
|
7
|
-
NgssmSchematicsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.
|
|
8
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.
|
|
5
|
+
NgssmSchematicsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: NgssmSchematicsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6
|
+
NgssmSchematicsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.9", ngImport: i0, type: NgssmSchematicsModule });
|
|
7
|
+
NgssmSchematicsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: NgssmSchematicsModule });
|
|
8
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: NgssmSchematicsModule, decorators: [{
|
|
9
9
|
type: NgModule,
|
|
10
10
|
args: [{
|
|
11
11
|
declarations: [],
|
|
@@ -3,10 +3,10 @@ import { NgModule } from '@angular/core';
|
|
|
3
3
|
|
|
4
4
|
class NgssmSchematicsModule {
|
|
5
5
|
}
|
|
6
|
-
NgssmSchematicsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.
|
|
7
|
-
NgssmSchematicsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.
|
|
8
|
-
NgssmSchematicsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.
|
|
9
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.
|
|
6
|
+
NgssmSchematicsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: NgssmSchematicsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7
|
+
NgssmSchematicsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.9", ngImport: i0, type: NgssmSchematicsModule });
|
|
8
|
+
NgssmSchematicsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: NgssmSchematicsModule });
|
|
9
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: NgssmSchematicsModule, decorators: [{
|
|
10
10
|
type: NgModule,
|
|
11
11
|
args: [{
|
|
12
12
|
declarations: [],
|
|
@@ -3,10 +3,10 @@ import { NgModule } from '@angular/core';
|
|
|
3
3
|
|
|
4
4
|
class NgssmSchematicsModule {
|
|
5
5
|
}
|
|
6
|
-
NgssmSchematicsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.
|
|
7
|
-
NgssmSchematicsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.
|
|
8
|
-
NgssmSchematicsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.
|
|
9
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.
|
|
6
|
+
NgssmSchematicsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: NgssmSchematicsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7
|
+
NgssmSchematicsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.9", ngImport: i0, type: NgssmSchematicsModule });
|
|
8
|
+
NgssmSchematicsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: NgssmSchematicsModule });
|
|
9
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: NgssmSchematicsModule, decorators: [{
|
|
10
10
|
type: NgModule,
|
|
11
11
|
args: [{
|
|
12
12
|
declarations: [],
|
package/package.json
CHANGED
|
@@ -1,28 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
4
|
-
const dependencies_1 = require("@schematics/angular/utility/dependencies");
|
|
5
|
-
function addFlexLayoutDependency() {
|
|
6
|
-
return (host, context) => {
|
|
7
|
-
const dependencies = [{ type: dependencies_1.NodeDependencyType.Default, version: '>=14.0.0-beta', name: '@angular/flex-layout' }];
|
|
8
|
-
dependencies.forEach((dependency) => {
|
|
9
|
-
(0, dependencies_1.addPackageJsonDependency)(host, dependency);
|
|
10
|
-
context.logger.log('info', `"${dependency.name}" added into ${dependency.type}`);
|
|
11
|
-
});
|
|
12
|
-
return host;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
4
|
function default_1() {
|
|
16
5
|
return (_, context) => {
|
|
17
|
-
context.logger.info('Starting installation and configuration of @angular/material
|
|
6
|
+
context.logger.info('Starting installation and configuration of @angular/material');
|
|
18
7
|
return (0, schematics_1.chain)([
|
|
19
8
|
(0, schematics_1.externalSchematic)('@angular/material', 'ng-add', {
|
|
20
9
|
animations: 'enabled',
|
|
21
10
|
theme: 'custom',
|
|
22
11
|
typography: false
|
|
23
12
|
}),
|
|
24
|
-
|
|
25
|
-
(__, ___) => context.logger.info('✔️ @angular/material and @angular/flex-layout installed and configured')
|
|
13
|
+
(__, ___) => context.logger.info('✔️ @angular/material installed and configured')
|
|
26
14
|
]);
|
|
27
15
|
};
|
|
28
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../projects/ngssm-schematics/schematics/add-material/index.ts"],"names":[],"mappings":";;AAAA,2DAAoG;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../projects/ngssm-schematics/schematics/add-material/index.ts"],"names":[],"mappings":";;AAAA,2DAAoG;AAEpG;IACE,OAAO,CAAC,CAAO,EAAE,OAAyB,EAAE,EAAE;QAC5C,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,8DAA8D,CAAC,CAAC;QAEpF,OAAO,IAAA,kBAAK,EAAC;YACX,IAAA,8BAAiB,EAAC,mBAAmB,EAAE,QAAQ,EAAE;gBAC/C,UAAU,EAAE,SAAS;gBACrB,KAAK,EAAE,QAAQ;gBACf,UAAU,EAAE,KAAK;aAClB,CAAC;YACF,CAAC,EAAQ,EAAE,GAAqB,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,+CAA+C,CAAC;SAC1G,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAbD,4BAaC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/schema",
|
|
3
3
|
"$id": "SchematicsAddMaterial",
|
|
4
|
-
"title": "Material
|
|
4
|
+
"title": "Material installation",
|
|
5
5
|
"type": "object",
|
|
6
|
-
"description": "Install and configure material
|
|
6
|
+
"description": "Install and configure material",
|
|
7
7
|
"additionalProperties": false,
|
|
8
8
|
"properties": {
|
|
9
9
|
},
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"schema": "./add-eslint/schema.json"
|
|
14
14
|
},
|
|
15
15
|
"add-material": {
|
|
16
|
-
"description": "Add @angular/material
|
|
16
|
+
"description": "Add @angular/material to the project",
|
|
17
17
|
"factory": "./add-material/index",
|
|
18
18
|
"schema": "./add-material/schema.json"
|
|
19
19
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface Schema {
|
|
2
2
|
/** Wheter eslint and prettier must be installed and configured */
|
|
3
3
|
addEslint: boolean;
|
|
4
|
-
/** Whether @angular/material
|
|
4
|
+
/** Whether @angular/material must be installed and configured */
|
|
5
5
|
addMaterial: boolean;
|
|
6
6
|
/** Whether @fortawesome/fontawesome-free must be installed and configured */
|
|
7
7
|
addFontawesome: boolean;
|