devextreme-schematics 1.2.23 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +21 -21
- package/package.json +7 -7
- package/src/add-app-template/index.d.ts +2 -2
- package/src/add-app-template/index.js +26 -26
- package/src/add-app-template/index_spec.d.ts +1 -1
- package/src/add-app-template/index_spec.js +70 -69
- package/src/add-app-template/index_spec.js.map +1 -1
- package/src/add-app-template/schema.json +2 -2
- package/src/add-layout/files/devextreme.json +1 -1
- package/src/add-layout/files/src/app/shared/services/screen.service.ts +1 -1
- package/src/add-layout/files/src/dx-styles.scss +4 -0
- package/src/add-layout/index.d.ts +2 -2
- package/src/add-layout/index.js +277 -266
- package/src/add-layout/index.js.map +1 -1
- package/src/add-layout/index.ts +28 -30
- package/src/add-layout/index_spec.d.ts +1 -1
- package/src/add-layout/index_spec.js +251 -250
- package/src/add-layout/index_spec.js.map +1 -1
- package/src/add-layout/index_spec.ts +2 -2
- package/src/add-layout/schema.json +2 -2
- package/src/add-sample-views/index.d.ts +2 -2
- package/src/add-sample-views/index.js +97 -88
- package/src/add-sample-views/index.js.map +1 -1
- package/src/add-sample-views/index.ts +3 -3
- package/src/add-sample-views/index_spec.d.ts +1 -1
- package/src/add-sample-views/index_spec.js +53 -52
- package/src/add-sample-views/index_spec.js.map +1 -1
- package/src/add-sample-views/index_spec.ts +1 -1
- package/src/add-sample-views/schema.json +1 -1
- package/src/add-view/index.d.ts +3 -3
- package/src/add-view/index.js +125 -113
- package/src/add-view/index.js.map +1 -1
- package/src/add-view/index.ts +14 -13
- package/src/add-view/index_spec.d.ts +1 -1
- package/src/add-view/index_spec.js +109 -108
- package/src/add-view/index_spec.js.map +1 -1
- package/src/add-view/schema.json +1 -1
- package/src/install/index.d.ts +2 -2
- package/src/install/index.js +76 -63
- package/src/install/index.js.map +1 -1
- package/src/install/index.ts +4 -2
- package/src/install/index_spec.d.ts +1 -1
- package/src/install/index_spec.js +96 -95
- package/src/install/index_spec.js.map +1 -1
- package/src/install/index_spec.ts +1 -1
- package/src/install/schema.json +1 -1
- package/src/utility/array.d.ts +1 -1
- package/src/utility/array.js +7 -6
- package/src/utility/array.js.map +1 -1
- package/src/utility/change.d.ts +7 -7
- package/src/utility/change.js +49 -48
- package/src/utility/change.js.map +1 -1
- package/src/utility/latest-versions.d.ts +5 -5
- package/src/utility/latest-versions.js +9 -8
- package/src/utility/latest-versions.js.map +1 -1
- package/src/utility/modify-json-file.d.ts +3 -2
- package/src/utility/modify-json-file.js +15 -11
- package/src/utility/modify-json-file.js.map +1 -1
- package/src/utility/modify-json-file.ts +6 -3
- package/src/utility/project.d.ts +5 -5
- package/src/utility/project.js +48 -25
- package/src/utility/project.js.map +1 -1
- package/src/utility/project.ts +19 -14
- package/src/utility/routing.d.ts +4 -4
- package/src/utility/routing.js +32 -31
- package/src/utility/routing.js.map +1 -1
- package/src/utility/source.d.ts +3 -3
- package/src/utility/source.js +13 -12
- package/src/utility/source.js.map +1 -1
- package/src/utility/string.d.ts +1 -1
- package/src/utility/string.js +8 -7
- package/src/utility/string.js.map +1 -1
- package/src/utility/styles.d.ts +1 -2
- package/src/utility/styles.js +29 -30
- package/src/utility/styles.js.map +1 -1
- package/src/utility/styles.ts +2 -5
package/LICENSE
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) Developer Express Inc.
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
13
|
-
copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
SOFTWARE.
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) Developer Express Inc.
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "devextreme-schematics",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.3.0",
|
4
4
|
"description": "DevExtreme schematics",
|
5
5
|
"scripts": {
|
6
6
|
"build": "tsc -p tsconfig.json",
|
@@ -22,17 +22,17 @@
|
|
22
22
|
],
|
23
23
|
"schematics": "./src/collection.json",
|
24
24
|
"dependencies": {
|
25
|
-
"@angular-devkit/core": "^
|
26
|
-
"@angular-devkit/schematics": "^
|
27
|
-
"@schematics/angular": "^
|
25
|
+
"@angular-devkit/core": "^12.0.0",
|
26
|
+
"@angular-devkit/schematics": "^12.0.0",
|
27
|
+
"@schematics/angular": "^12.0.0",
|
28
28
|
"rxjs": "~6.4.0",
|
29
|
-
"typescript": "3.
|
29
|
+
"typescript": "~4.3.1"
|
30
30
|
},
|
31
31
|
"devDependencies": {
|
32
|
-
"@types/jasmine": "
|
32
|
+
"@types/jasmine": "~3.10.3",
|
33
33
|
"@types/node": "^8.10.39",
|
34
34
|
"jasmine": "^2.8.0",
|
35
35
|
"tslint": "^5.15.0"
|
36
36
|
},
|
37
|
-
"gitHead": "
|
37
|
+
"gitHead": "c61a31f44439fe1b0e82449a15c4db8375af34f3"
|
38
38
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { Rule } from '@angular-devkit/schematics';
|
2
|
-
export default function (options: any): Rule;
|
1
|
+
import { Rule } from '@angular-devkit/schematics';
|
2
|
+
export default function (options: any): Rule;
|
@@ -1,27 +1,27 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
4
|
-
function default_1(options) {
|
5
|
-
const rules = [
|
6
|
-
schematics_1.schematic('install', {
|
7
|
-
dxversion: options.dxversion,
|
8
|
-
project: options.project
|
9
|
-
}),
|
10
|
-
schematics_1.schematic('add-layout', {
|
11
|
-
layout: options.layout,
|
12
|
-
resolveConflicts: options.resolveConflicts,
|
13
|
-
project: options.project,
|
14
|
-
skipInstall: true,
|
15
|
-
updateBudgets: options.updateBudgets,
|
16
|
-
globalNgCliVersion: options.globalNgCliVersion
|
17
|
-
})
|
18
|
-
];
|
19
|
-
if (!options.empty) {
|
20
|
-
rules.push(schematics_1.schematic('add-sample-views', {
|
21
|
-
project: options.project
|
22
|
-
}));
|
23
|
-
}
|
24
|
-
return schematics_1.chain(rules);
|
25
|
-
}
|
26
|
-
exports.default = default_1;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
4
|
+
function default_1(options) {
|
5
|
+
const rules = [
|
6
|
+
schematics_1.schematic('install', {
|
7
|
+
dxversion: options.dxversion,
|
8
|
+
project: options.project
|
9
|
+
}),
|
10
|
+
schematics_1.schematic('add-layout', {
|
11
|
+
layout: options.layout,
|
12
|
+
resolveConflicts: options.resolveConflicts,
|
13
|
+
project: options.project,
|
14
|
+
skipInstall: true,
|
15
|
+
updateBudgets: options.updateBudgets,
|
16
|
+
globalNgCliVersion: options.globalNgCliVersion
|
17
|
+
})
|
18
|
+
];
|
19
|
+
if (!options.empty) {
|
20
|
+
rules.push(schematics_1.schematic('add-sample-views', {
|
21
|
+
project: options.project
|
22
|
+
}));
|
23
|
+
}
|
24
|
+
return schematics_1.chain(rules);
|
25
|
+
}
|
26
|
+
exports.default = default_1;
|
27
27
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
export {};
|
1
|
+
export {};
|
@@ -1,70 +1,71 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
return
|
4
|
-
|
5
|
-
function
|
6
|
-
function
|
7
|
-
step(
|
8
|
-
|
9
|
-
};
|
10
|
-
|
11
|
-
|
12
|
-
const
|
13
|
-
const
|
14
|
-
const
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
const
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
appTree = yield schematicRunner.runSchematicAsync('
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
const
|
39
|
-
const
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
const
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
const
|
65
|
-
const
|
66
|
-
const
|
67
|
-
|
68
|
-
|
69
|
-
});
|
1
|
+
"use strict";
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
+
});
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
const testing_1 = require("@angular-devkit/schematics/testing");
|
13
|
+
const path = require("path");
|
14
|
+
const collectionPath = path.join(__dirname, '../collection.json');
|
15
|
+
const appOptions = {
|
16
|
+
name: 'testApp',
|
17
|
+
projectRoot: '',
|
18
|
+
inlineStyle: false,
|
19
|
+
inlineTemplate: false,
|
20
|
+
routing: true,
|
21
|
+
style: 'css',
|
22
|
+
skipTests: false,
|
23
|
+
skipPackageJson: false
|
24
|
+
};
|
25
|
+
const workspaceOptions = {
|
26
|
+
name: 'workspace',
|
27
|
+
version: '6.0.0'
|
28
|
+
};
|
29
|
+
const angularSchematicsCollection = require.resolve('../../node_modules/@schematics/angular/collection.json');
|
30
|
+
const schematicRunner = new testing_1.SchematicTestRunner('@schematics/angular', angularSchematicsCollection);
|
31
|
+
let appTree;
|
32
|
+
beforeEach(() => __awaiter(void 0, void 0, void 0, function* () {
|
33
|
+
appTree = yield schematicRunner.runSchematicAsync('workspace', workspaceOptions).toPromise();
|
34
|
+
appTree = yield schematicRunner.runSchematicAsync('application', appOptions, appTree).toPromise();
|
35
|
+
}));
|
36
|
+
describe('add-app-template', () => {
|
37
|
+
it('should add DevExtreme', () => __awaiter(void 0, void 0, void 0, function* () {
|
38
|
+
const runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
|
39
|
+
const tree = yield runner.runSchematicAsync('add-app-template', {}, appTree).toPromise();
|
40
|
+
const packageConfig = JSON.parse(tree.readContent('package.json'));
|
41
|
+
expect('devextreme' in packageConfig.dependencies).toBe(true);
|
42
|
+
}));
|
43
|
+
it('should consider the `project` option', () => __awaiter(void 0, void 0, void 0, function* () {
|
44
|
+
appTree = yield schematicRunner.runSchematicAsync('application', {
|
45
|
+
name: 'testApp2',
|
46
|
+
inlineStyle: false,
|
47
|
+
inlineTemplate: false,
|
48
|
+
routing: true,
|
49
|
+
style: 'scss',
|
50
|
+
projectRoot: 'projects/testApp2'
|
51
|
+
}, appTree).toPromise();
|
52
|
+
const runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
|
53
|
+
const tree = yield runner.runSchematicAsync('add-app-template', {
|
54
|
+
project: 'testApp2'
|
55
|
+
}, appTree).toPromise();
|
56
|
+
expect(tree.files)
|
57
|
+
.toContain('/devextreme.json');
|
58
|
+
expect(tree.files)
|
59
|
+
.toContain('/projects/testApp2/src/themes/metadata.base.json');
|
60
|
+
expect(tree.files)
|
61
|
+
.toContain('/projects/testApp2/src/app/pages/home/home.component.ts');
|
62
|
+
}));
|
63
|
+
it('should consider the `updateBudgets` option', () => __awaiter(void 0, void 0, void 0, function* () {
|
64
|
+
const runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
|
65
|
+
const tree = yield runner.runSchematicAsync('add-app-template', { updateBudgets: true }, appTree).toPromise();
|
66
|
+
const angularContent = JSON.parse(tree.readContent('/angular.json'));
|
67
|
+
const budgets = angularContent.projects.testApp.architect.build.configurations.production.budgets;
|
68
|
+
expect(budgets[0].maximumWarning).toEqual('4mb');
|
69
|
+
}));
|
70
|
+
});
|
70
71
|
//# sourceMappingURL=index_spec.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index_spec.js","sourceRoot":"","sources":["index_spec.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index_spec.js","sourceRoot":"","sources":["index_spec.ts"],"names":[],"mappings":"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"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"$schema": "http://json-schema.org/schema",
|
3
|
-
"id": "SchematicsDevextremeAddAppTemplate",
|
3
|
+
"$id": "SchematicsDevextremeAddAppTemplate",
|
4
4
|
"title": "Add a DevExtreme layout template to an Anular application",
|
5
5
|
"type": "object",
|
6
6
|
"properties": {
|
@@ -43,7 +43,7 @@
|
|
43
43
|
},
|
44
44
|
"globalNgCliVersion": {
|
45
45
|
"type":"string",
|
46
|
-
"default": "^
|
46
|
+
"default": "^12.0.0"
|
47
47
|
},
|
48
48
|
"empty": {
|
49
49
|
"type": "boolean",
|
@@ -8,7 +8,7 @@ export class ScreenService {
|
|
8
8
|
constructor(private breakpointObserver: BreakpointObserver) {
|
9
9
|
this.breakpointObserver
|
10
10
|
.observe([Breakpoints.XSmall, Breakpoints.Small, Breakpoints.Medium, Breakpoints.Large])
|
11
|
-
.subscribe(() => this.changed.next());
|
11
|
+
.subscribe(() => this.changed.next(true));
|
12
12
|
}
|
13
13
|
|
14
14
|
private isLargeScreen() {
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { Rule } from '@angular-devkit/schematics';
|
2
|
-
export default function (options: any): Rule;
|
1
|
+
import { Rule } from '@angular-devkit/schematics';
|
2
|
+
export default function (options: any): Rule;
|