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/src/install/index.d.ts
CHANGED
@@ -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;
|
package/src/install/index.js
CHANGED
@@ -1,64 +1,77 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
dependencies_1.addPackageJsonDependency(host, {
|
32
|
-
type: dependencies_1.NodeDependencyType.
|
33
|
-
name: 'devextreme
|
34
|
-
version: latest_versions_1.latestVersions['devextreme
|
35
|
-
});
|
36
|
-
dependencies_1.addPackageJsonDependency(host, {
|
37
|
-
type: dependencies_1.NodeDependencyType.
|
38
|
-
name: 'devextreme-
|
39
|
-
version: options.dxversion || latest_versions_1.latestVersions['devextreme']
|
40
|
-
});
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
}
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
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 schematics_1 = require("@angular-devkit/schematics");
|
13
|
+
const styles_1 = require("../utility/styles");
|
14
|
+
const dependencies_1 = require("@schematics/angular/utility/dependencies");
|
15
|
+
const tasks_1 = require("@angular-devkit/schematics/tasks");
|
16
|
+
const latest_versions_1 = require("../utility/latest-versions");
|
17
|
+
const modify_json_file_1 = require("../utility/modify-json-file");
|
18
|
+
const project_1 = require("../utility/project");
|
19
|
+
function default_1(options) {
|
20
|
+
return schematics_1.chain([
|
21
|
+
(host) => addDevExtremeDependency(host, { dxversion: options.dxversion }),
|
22
|
+
(host) => addDevExtremeCSS(host, { project: options.project }),
|
23
|
+
(host) => reqisterJSZip(host),
|
24
|
+
(_, context) => {
|
25
|
+
context.addTask(new tasks_1.NodePackageInstallTask());
|
26
|
+
}
|
27
|
+
]);
|
28
|
+
}
|
29
|
+
exports.default = default_1;
|
30
|
+
function addDevExtremeDependency(host, options) {
|
31
|
+
dependencies_1.addPackageJsonDependency(host, {
|
32
|
+
type: dependencies_1.NodeDependencyType.Default,
|
33
|
+
name: 'devextreme',
|
34
|
+
version: options.dxversion || latest_versions_1.latestVersions['devextreme']
|
35
|
+
});
|
36
|
+
dependencies_1.addPackageJsonDependency(host, {
|
37
|
+
type: dependencies_1.NodeDependencyType.Default,
|
38
|
+
name: 'devextreme-angular',
|
39
|
+
version: options.dxversion || latest_versions_1.latestVersions['devextreme-angular']
|
40
|
+
});
|
41
|
+
dependencies_1.addPackageJsonDependency(host, {
|
42
|
+
type: dependencies_1.NodeDependencyType.Dev,
|
43
|
+
name: 'devextreme-cli',
|
44
|
+
version: latest_versions_1.latestVersions['devextreme-cli']
|
45
|
+
});
|
46
|
+
dependencies_1.addPackageJsonDependency(host, {
|
47
|
+
type: dependencies_1.NodeDependencyType.Dev,
|
48
|
+
name: 'devextreme-themebuilder',
|
49
|
+
version: options.dxversion || latest_versions_1.latestVersions['devextreme']
|
50
|
+
});
|
51
|
+
return host;
|
52
|
+
}
|
53
|
+
function addDevExtremeCSS(host, options) {
|
54
|
+
return __awaiter(this, void 0, void 0, function* () {
|
55
|
+
const projectName = yield project_1.getProjectName(host, options.project);
|
56
|
+
modify_json_file_1.modifyJSONFile(host, './angular.json', config => {
|
57
|
+
return styles_1.addStylesToApp(projectName, config);
|
58
|
+
});
|
59
|
+
return host;
|
60
|
+
});
|
61
|
+
}
|
62
|
+
function reqisterJSZip(host) {
|
63
|
+
modify_json_file_1.modifyJSONFile(host, './tsconfig.app.json', config => {
|
64
|
+
const compilerOptions = config['compilerOptions'];
|
65
|
+
let paths = compilerOptions['paths'];
|
66
|
+
if (!paths) {
|
67
|
+
paths = {};
|
68
|
+
}
|
69
|
+
if (!paths['jszip']) {
|
70
|
+
paths['jszip'] = ['node_modules/jszip/dist/jszip.min.js'];
|
71
|
+
}
|
72
|
+
compilerOptions['paths'] = paths;
|
73
|
+
return config;
|
74
|
+
});
|
75
|
+
return host;
|
76
|
+
}
|
64
77
|
//# sourceMappingURL=index.js.map
|
package/src/install/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2DAKoC;AAEpC,8CAAmD;AAEnD,2EAGkD;AAElD,4DAE0C;AAE1C,gEAA4D;AAC5D,kEAA6D;AAC7D,gDAAoD;AAEpD,mBAAwB,OAAY;IAClC,OAAO,kBAAK,CAAC;QACX,CAAC,IAAU,EAAE,EAAE,CAAC,uBAAuB,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,CAAC;QAC/E,CAAC,IAAU,EAAE,EAAE,CAAC,gBAAgB,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC;QACpE,CAAC,IAAU,EAAE,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC;QACnC,CAAC,CAAC,EAAE,OAAyB,EAAE,EAAE;YAC/B,OAAO,CAAC,OAAO,CAAC,IAAI,8BAAsB,EAAE,CAAC,CAAC;QAChD,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AATD,4BASC;AAED,SAAS,uBAAuB,CAAC,IAAU,EAAE,OAAY;IACvD,uCAAwB,CAAC,IAAI,EAAE;QAC7B,IAAI,EAAE,iCAAkB,CAAC,OAAO;QAChC,IAAI,EAAE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,EAAE,CAAC;SACZ;QAED,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE;YACnB,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,sCAAsC,CAAC,CAAC;SAC3D;QAED,eAAe,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC;QAEjC,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC;AACd,CAAC"}
|
package/src/install/index.ts
CHANGED
@@ -18,6 +18,7 @@ import {
|
|
18
18
|
|
19
19
|
import { latestVersions } from '../utility/latest-versions';
|
20
20
|
import { modifyJSONFile } from '../utility/modify-json-file';
|
21
|
+
import { getProjectName } from '../utility/project';
|
21
22
|
|
22
23
|
export default function(options: any): Rule {
|
23
24
|
return chain([
|
@@ -55,10 +56,11 @@ function addDevExtremeDependency(host: Tree, options: any) {
|
|
55
56
|
return host;
|
56
57
|
}
|
57
58
|
|
58
|
-
function addDevExtremeCSS(host: Tree, options: any) {
|
59
|
+
async function addDevExtremeCSS(host: Tree, options: any) {
|
60
|
+
const projectName = await getProjectName(host, options.project);
|
59
61
|
modifyJSONFile(host, './angular.json', config => {
|
60
62
|
|
61
|
-
return addStylesToApp(
|
63
|
+
return addStylesToApp(projectName, config);
|
62
64
|
});
|
63
65
|
|
64
66
|
return host;
|
@@ -1 +1 @@
|
|
1
|
-
export {};
|
1
|
+
export {};
|
@@ -1,96 +1,97 @@
|
|
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
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
const
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
appTree = yield schematicRunner.runSchematicAsync('
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
const
|
42
|
-
const
|
43
|
-
|
44
|
-
expect(packageConfig.dependencies['devextreme
|
45
|
-
expect(packageConfig.
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
const
|
50
|
-
const
|
51
|
-
|
52
|
-
expect(packageConfig.
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
const
|
57
|
-
const
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
const
|
63
|
-
const
|
64
|
-
const
|
65
|
-
|
66
|
-
expect(styles[
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
const
|
71
|
-
const
|
72
|
-
const
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
const
|
89
|
-
const
|
90
|
-
const
|
91
|
-
|
92
|
-
expect(styles[
|
93
|
-
expect(
|
94
|
-
|
95
|
-
});
|
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 latest_versions_1 = require("../utility/latest-versions");
|
15
|
+
const collectionPath = path.join(__dirname, '../collection.json');
|
16
|
+
describe('install', () => {
|
17
|
+
// TODO: Extract workspase preparing somewhere
|
18
|
+
const appOptions = {
|
19
|
+
name: 'testApp',
|
20
|
+
projectRoot: '',
|
21
|
+
inlineStyle: false,
|
22
|
+
inlineTemplate: false,
|
23
|
+
routing: true,
|
24
|
+
style: 'css',
|
25
|
+
skipTests: false,
|
26
|
+
skipPackageJson: false
|
27
|
+
};
|
28
|
+
const workspaceOptions = {
|
29
|
+
name: 'workspace',
|
30
|
+
// TODO: use angular latest-versions module
|
31
|
+
version: '12.0.0'
|
32
|
+
};
|
33
|
+
const angularSchematicsCollection = require.resolve('../../node_modules/@schematics/angular/collection.json');
|
34
|
+
const schematicRunner = new testing_1.SchematicTestRunner('@schematics/angular', angularSchematicsCollection);
|
35
|
+
let appTree;
|
36
|
+
beforeEach(() => __awaiter(void 0, void 0, void 0, function* () {
|
37
|
+
appTree = yield schematicRunner.runSchematicAsync('workspace', workspaceOptions).toPromise();
|
38
|
+
appTree = yield schematicRunner.runSchematicAsync('application', appOptions, appTree).toPromise();
|
39
|
+
}));
|
40
|
+
it('should add devextreme dependency (default)', () => __awaiter(void 0, void 0, void 0, function* () {
|
41
|
+
const runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
|
42
|
+
const tree = yield runner.runSchematicAsync('install', {}, appTree).toPromise();
|
43
|
+
const packageConfig = JSON.parse(tree.readContent('package.json'));
|
44
|
+
expect(packageConfig.dependencies['devextreme']).toBe(latest_versions_1.latestVersions['devextreme']);
|
45
|
+
expect(packageConfig.dependencies['devextreme-angular']).toBe(latest_versions_1.latestVersions['devextreme-angular']);
|
46
|
+
expect(packageConfig.devDependencies['devextreme-themebuilder']).toBe(latest_versions_1.latestVersions['devextreme']);
|
47
|
+
}));
|
48
|
+
it('should add devextreme dependency (custom)', () => __awaiter(void 0, void 0, void 0, function* () {
|
49
|
+
const runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
|
50
|
+
const tree = yield runner.runSchematicAsync('install', { dxversion: '18.2.5' }, appTree).toPromise();
|
51
|
+
const packageConfig = JSON.parse(tree.readContent('package.json'));
|
52
|
+
expect(packageConfig.dependencies.devextreme).toBe('18.2.5');
|
53
|
+
expect(packageConfig.devDependencies['devextreme-themebuilder']).toBe('18.2.5');
|
54
|
+
}));
|
55
|
+
it('should add devextreme cli devDependency', () => __awaiter(void 0, void 0, void 0, function* () {
|
56
|
+
const runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
|
57
|
+
const tree = yield runner.runSchematicAsync('install', { dxversion: '18.2.5' }, appTree).toPromise();
|
58
|
+
const packageConfig = JSON.parse(tree.readContent('package.json'));
|
59
|
+
expect(packageConfig.devDependencies['devextreme-cli']).toBeDefined();
|
60
|
+
}));
|
61
|
+
it('should add devextreme styles', () => __awaiter(void 0, void 0, void 0, function* () {
|
62
|
+
const runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
|
63
|
+
const tree = yield runner.runSchematicAsync('install', {}, appTree).toPromise();
|
64
|
+
const angularConfig = JSON.parse(tree.readContent('angular.json'));
|
65
|
+
const styles = angularConfig['projects']['testApp']['architect']['build']['options']['styles'];
|
66
|
+
expect(styles[0]).toBe('node_modules/devextreme/dist/css/dx.common.css');
|
67
|
+
expect(styles[1]).toBe('node_modules/devextreme/dist/css/dx.light.css');
|
68
|
+
}));
|
69
|
+
it('should register jszip', () => __awaiter(void 0, void 0, void 0, function* () {
|
70
|
+
const runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
|
71
|
+
const tree = yield runner.runSchematicAsync('install', {}, appTree).toPromise();
|
72
|
+
const tsconfig = JSON.parse(tree.readContent('tsconfig.app.json'));
|
73
|
+
const jszip = tsconfig['compilerOptions']['paths']['jszip'];
|
74
|
+
expect(jszip[0]).toBe('node_modules/jszip/dist/jszip.min.js');
|
75
|
+
}));
|
76
|
+
it('should add devextreme styles to the specified project', () => __awaiter(void 0, void 0, void 0, function* () {
|
77
|
+
const secondAppOptions = {
|
78
|
+
name: 'testApp2',
|
79
|
+
inlineStyle: false,
|
80
|
+
inlineTemplate: false,
|
81
|
+
projectRoot: 'src2',
|
82
|
+
routing: true,
|
83
|
+
style: 'css',
|
84
|
+
skipTests: false,
|
85
|
+
skipPackageJson: false
|
86
|
+
};
|
87
|
+
appTree = yield schematicRunner.runSchematicAsync('application', secondAppOptions, appTree).toPromise();
|
88
|
+
const runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
|
89
|
+
const tree = yield runner.runSchematicAsync('install', { project: 'testApp2' }, appTree).toPromise();
|
90
|
+
const angularConfig = JSON.parse(tree.readContent('angular.json'));
|
91
|
+
const styles = angularConfig['projects']['testApp2']['architect']['build']['options']['styles'];
|
92
|
+
expect(styles[0]).toBe('node_modules/devextreme/dist/css/dx.common.css');
|
93
|
+
expect(styles[1]).toBe('node_modules/devextreme/dist/css/dx.light.css');
|
94
|
+
expect(angularConfig['projects']['testApp']['architect']['build']['options']['styles'].length).toBe(1);
|
95
|
+
}));
|
96
|
+
});
|
96
97
|
//# 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":";;;;;;;;;;;AAAA,gEAAuF;AAEvF,6BAA6B;AAC7B,gEAA4D;AAE5D,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC;AAElE,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,8CAA8C;IAC9C,MAAM,UAAU,GAAQ;QACtB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,EAAE;QACf,WAAW,EAAE,KAAK;QAClB,cAAc,EAAE,KAAK;QACrB,OAA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@ -21,7 +21,7 @@ describe('install', () => {
|
|
21
21
|
const workspaceOptions: WorkspaceOptions = {
|
22
22
|
name: 'workspace',
|
23
23
|
// TODO: use angular latest-versions module
|
24
|
-
version: '
|
24
|
+
version: '12.0.0'
|
25
25
|
};
|
26
26
|
|
27
27
|
const angularSchematicsCollection = require.resolve('../../node_modules/@schematics/angular/collection.json');
|
package/src/install/schema.json
CHANGED
package/src/utility/array.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare function makeArrayUnique(arr: Array<any>): any[];
|
1
|
+
export declare function makeArrayUnique(arr: Array<any>): any[];
|
package/src/utility/array.js
CHANGED
@@ -1,7 +1,8 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.makeArrayUnique = void 0;
|
4
|
+
function makeArrayUnique(arr) {
|
5
|
+
return [...new Set(arr)];
|
6
|
+
}
|
7
|
+
exports.makeArrayUnique = makeArrayUnique;
|
7
8
|
//# sourceMappingURL=array.js.map
|
package/src/utility/array.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"array.js","sourceRoot":"","sources":["array.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"array.js","sourceRoot":"","sources":["array.ts"],"names":[],"mappings":";;;AAAA,SAAgB,eAAe,CAAC,GAAe;IAC7C,OAAQ,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;AAC5B,CAAC;AAFD,0CAEC"}
|
package/src/utility/change.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import { Tree } from '@angular-devkit/schematics';
|
2
|
-
import { Change } from '@schematics/angular/utility/change';
|
3
|
-
import { Node } from 'typescript';
|
4
|
-
export declare function applyChanges(host: Tree, changes: Change[], filePath: string): import("@angular-devkit/schematics/src/tree/interface").Tree;
|
5
|
-
export declare function insertItemToArray(host: Tree, filePath: string, node: Node, item: string, options?: {
|
6
|
-
location: 'start' | 'end';
|
7
|
-
}): import("@angular-devkit/schematics/src/tree/interface").Tree;
|
1
|
+
import { Tree } from '@angular-devkit/schematics';
|
2
|
+
import { Change } from '@schematics/angular/utility/change';
|
3
|
+
import { Node } from 'typescript';
|
4
|
+
export declare function applyChanges(host: Tree, changes: Change[], filePath: string): import("@angular-devkit/schematics/src/tree/interface").Tree;
|
5
|
+
export declare function insertItemToArray(host: Tree, filePath: string, node: Node, item: string, options?: {
|
6
|
+
location: 'start' | 'end';
|
7
|
+
}): import("@angular-devkit/schematics/src/tree/interface").Tree;
|
package/src/utility/change.js
CHANGED
@@ -1,50 +1,51 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.insertItemToArray = exports.applyChanges = void 0;
|
3
4
|
const newLine = `
|
4
|
-
`;
|
5
|
-
function applyChanges(host, changes, filePath) {
|
6
|
-
const recorder = host.beginUpdate(filePath);
|
7
|
-
changes.forEach((change) => {
|
8
|
-
recorder.insertLeft(change.pos, change.toAdd);
|
9
|
-
});
|
10
|
-
host.commitUpdate(recorder);
|
11
|
-
return host;
|
12
|
-
}
|
13
|
-
exports.applyChanges = applyChanges;
|
14
|
-
// TODO: implement options.index
|
15
|
-
// TODO: implement spaces shift calculation
|
16
|
-
function insertItemToArray(host, filePath, node, item, options = { location: 'start' }) {
|
17
|
-
const isItemValid = /^\s*\{[\s\S]*\}\s*$/m.test(item);
|
18
|
-
if (!isItemValid) {
|
19
|
-
return host;
|
20
|
-
}
|
21
|
-
const nodeContent = node.getText();
|
22
|
-
const nodePosition = node.getStart();
|
23
|
-
const leftBracketPosition = nodePosition + nodeContent.indexOf('[');
|
24
|
-
const rightBracketPosition = nodePosition + nodeContent.lastIndexOf(']');
|
25
|
-
let itemPosition = leftBracketPosition + 1;
|
26
|
-
let fileRecorder = host.beginUpdate(filePath);
|
27
|
-
item = newLine + item;
|
28
|
-
const isNodeEmpty = !/\[[\s\S]*\S+[\s\S]*\]/m.test(nodeContent);
|
29
|
-
if (isNodeEmpty) {
|
30
|
-
const formattedArray = `[${newLine}]`;
|
31
|
-
fileRecorder.remove(leftBracketPosition, rightBracketPosition - leftBracketPosition + 1);
|
32
|
-
fileRecorder.insertLeft(leftBracketPosition, formattedArray);
|
33
|
-
host.commitUpdate(fileRecorder);
|
34
|
-
fileRecorder = host.beginUpdate(filePath);
|
35
|
-
}
|
36
|
-
else {
|
37
|
-
if (options.location === 'end') {
|
38
|
-
itemPosition = nodePosition + nodeContent.lastIndexOf('}') + 1;
|
39
|
-
item = ',' + item;
|
40
|
-
}
|
41
|
-
else {
|
42
|
-
item = item + ',';
|
43
|
-
}
|
44
|
-
}
|
45
|
-
fileRecorder.insertLeft(itemPosition, item);
|
46
|
-
host.commitUpdate(fileRecorder);
|
47
|
-
return host;
|
48
|
-
}
|
49
|
-
exports.insertItemToArray = insertItemToArray;
|
5
|
+
`;
|
6
|
+
function applyChanges(host, changes, filePath) {
|
7
|
+
const recorder = host.beginUpdate(filePath);
|
8
|
+
changes.forEach((change) => {
|
9
|
+
recorder.insertLeft(change.pos, change.toAdd);
|
10
|
+
});
|
11
|
+
host.commitUpdate(recorder);
|
12
|
+
return host;
|
13
|
+
}
|
14
|
+
exports.applyChanges = applyChanges;
|
15
|
+
// TODO: implement options.index
|
16
|
+
// TODO: implement spaces shift calculation
|
17
|
+
function insertItemToArray(host, filePath, node, item, options = { location: 'start' }) {
|
18
|
+
const isItemValid = /^\s*\{[\s\S]*\}\s*$/m.test(item);
|
19
|
+
if (!isItemValid) {
|
20
|
+
return host;
|
21
|
+
}
|
22
|
+
const nodeContent = node.getText();
|
23
|
+
const nodePosition = node.getStart();
|
24
|
+
const leftBracketPosition = nodePosition + nodeContent.indexOf('[');
|
25
|
+
const rightBracketPosition = nodePosition + nodeContent.lastIndexOf(']');
|
26
|
+
let itemPosition = leftBracketPosition + 1;
|
27
|
+
let fileRecorder = host.beginUpdate(filePath);
|
28
|
+
item = newLine + item;
|
29
|
+
const isNodeEmpty = !/\[[\s\S]*\S+[\s\S]*\]/m.test(nodeContent);
|
30
|
+
if (isNodeEmpty) {
|
31
|
+
const formattedArray = `[${newLine}]`;
|
32
|
+
fileRecorder.remove(leftBracketPosition, rightBracketPosition - leftBracketPosition + 1);
|
33
|
+
fileRecorder.insertLeft(leftBracketPosition, formattedArray);
|
34
|
+
host.commitUpdate(fileRecorder);
|
35
|
+
fileRecorder = host.beginUpdate(filePath);
|
36
|
+
}
|
37
|
+
else {
|
38
|
+
if (options.location === 'end') {
|
39
|
+
itemPosition = nodePosition + nodeContent.lastIndexOf('}') + 1;
|
40
|
+
item = ',' + item;
|
41
|
+
}
|
42
|
+
else {
|
43
|
+
item = item + ',';
|
44
|
+
}
|
45
|
+
}
|
46
|
+
fileRecorder.insertLeft(itemPosition, item);
|
47
|
+
host.commitUpdate(fileRecorder);
|
48
|
+
return host;
|
49
|
+
}
|
50
|
+
exports.insertItemToArray = insertItemToArray;
|
50
51
|
//# sourceMappingURL=change.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"change.js","sourceRoot":"","sources":["change.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"change.js","sourceRoot":"","sources":["change.ts"],"names":[],"mappings":";;;AAOA,MAAM,OAAO,GAAG;CACf,CAAC;AAEF,SAAgB,YAAY,CAAC,IAAU,EAAE,OAAiB,EAAE,QAAgB;IAC1E,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IAE5C,OAAO,CAAC,OAAO,CAAC,CAAC,MAAoB,EAAE,EAAE;QACvC,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAChD,CAAC,CAAC,C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QACL,IAAI,OAAO,CAAC,QAAQ,KAAK,KAAK,EAAE;YAC9B,YAAY,GAAG,YAAY,GAAG,WAAW,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAC/D,IAAI,GAAG,GAAG,GAAG,IAAI,CAAC;SACnB;aAAM;YACL,IAAI,GAAG,IAAI,GAAG,GAAG,CAAC;SACnB;KACF;IAED,YAAY,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;IAC5C,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;IAEhC,OAAO,IAAI,CAAC;AACd,CAAC;AAzCD,8CAyCC"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
export declare const latestVersions: {
|
2
|
-
|
3
|
-
'devextreme-angular': string;
|
4
|
-
'devextreme-cli': string;
|
5
|
-
};
|
1
|
+
export declare const latestVersions: {
|
2
|
+
devextreme: string;
|
3
|
+
'devextreme-angular': string;
|
4
|
+
'devextreme-cli': string;
|
5
|
+
};
|