@nrwl/angular 13.3.2 → 13.3.6
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/generators.d.ts +2 -0
- package/generators.js +2 -0
- package/generators.js.map +1 -1
- package/generators.json +20 -0
- package/package.json +6 -6
- package/src/generators/scam/schema.json +1 -1
- package/src/generators/scam-directive/lib/create-module.d.ts +3 -0
- package/src/generators/scam-directive/lib/create-module.js +54 -0
- package/src/generators/scam-directive/lib/create-module.js.map +1 -0
- package/src/generators/scam-directive/lib/index.d.ts +0 -0
- package/src/generators/scam-directive/lib/index.js +1 -0
- package/src/generators/scam-directive/lib/index.js.map +1 -0
- package/src/generators/scam-directive/scam-directive.compat.d.ts +2 -0
- package/src/generators/scam-directive/scam-directive.compat.js +6 -0
- package/src/generators/scam-directive/scam-directive.compat.js.map +1 -0
- package/src/generators/scam-directive/scam-directive.d.ts +4 -0
- package/src/generators/scam-directive/scam-directive.js +36 -0
- package/src/generators/scam-directive/scam-directive.js.map +1 -0
- package/src/generators/scam-directive/schema.d.ts +10 -0
- package/src/generators/scam-directive/schema.json +68 -0
- package/src/generators/scam-pipe/lib/create-module.d.ts +3 -0
- package/src/generators/scam-pipe/lib/create-module.js +54 -0
- package/src/generators/scam-pipe/lib/create-module.js.map +1 -0
- package/src/generators/scam-pipe/lib/index.d.ts +0 -0
- package/src/generators/scam-pipe/lib/index.js +1 -0
- package/src/generators/scam-pipe/lib/index.js.map +1 -0
- package/src/generators/scam-pipe/scam-pipe.compat.d.ts +2 -0
- package/src/generators/scam-pipe/scam-pipe.compat.js +6 -0
- package/src/generators/scam-pipe/scam-pipe.compat.js.map +1 -0
- package/src/generators/scam-pipe/scam-pipe.d.ts +4 -0
- package/src/generators/scam-pipe/scam-pipe.js +34 -0
- package/src/generators/scam-pipe/scam-pipe.js.map +1 -0
- package/src/generators/scam-pipe/schema.d.ts +8 -0
- package/src/generators/scam-pipe/schema.json +49 -0
- package/src/generators/setup-mfe/lib/setup-serve-target.js +1 -3
- package/src/generators/setup-mfe/lib/setup-serve-target.js.map +1 -1
- package/src/utils/versions.js +1 -1
package/generators.d.ts
CHANGED
|
@@ -15,3 +15,5 @@ export * from './src/generators/storybook-migrate-stories-to-6-2/migrate-stories
|
|
|
15
15
|
export * from './src/generators/upgrade-module/upgrade-module';
|
|
16
16
|
export * from './src/generators/setup-mfe/setup-mfe';
|
|
17
17
|
export * from './src/generators/scam/scam';
|
|
18
|
+
export * from './src/generators/scam-directive/scam-directive';
|
|
19
|
+
export * from './src/generators/scam-pipe/scam-pipe';
|
package/generators.js
CHANGED
|
@@ -18,4 +18,6 @@ const tslib_1 = require("tslib");
|
|
|
18
18
|
(0, tslib_1.__exportStar)(require("./src/generators/upgrade-module/upgrade-module"), exports);
|
|
19
19
|
(0, tslib_1.__exportStar)(require("./src/generators/setup-mfe/setup-mfe"), exports);
|
|
20
20
|
(0, tslib_1.__exportStar)(require("./src/generators/scam/scam"), exports);
|
|
21
|
+
(0, tslib_1.__exportStar)(require("./src/generators/scam-directive/scam-directive"), exports);
|
|
22
|
+
(0, tslib_1.__exportStar)(require("./src/generators/scam-pipe/scam-pipe"), exports);
|
|
21
23
|
//# sourceMappingURL=generators.js.map
|
package/generators.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generators.js","sourceRoot":"","sources":["../../../packages/angular/generators.ts"],"names":[],"mappings":";;;AAAA,wFAAyD;AACzD,kHAAmF;AACnF,kGAAmE;AACnE,0EAA2C;AAC3C,4EAA6C;AAC7C,4FAA6D;AAC7D,gFAAiD;AACjD,4HAA6F;AAC7F,0EAA2C;AAC3C,0EAA2C;AAC3C,gFAAiD;AACjD,gHAAiF;AACjF,oIAAqG;AACrG,wHAAyF;AACzF,8FAA+D;AAC/D,oFAAqD;AACrD,0EAA2C"}
|
|
1
|
+
{"version":3,"file":"generators.js","sourceRoot":"","sources":["../../../packages/angular/generators.ts"],"names":[],"mappings":";;;AAAA,wFAAyD;AACzD,kHAAmF;AACnF,kGAAmE;AACnE,0EAA2C;AAC3C,4EAA6C;AAC7C,4FAA6D;AAC7D,gFAAiD;AACjD,4HAA6F;AAC7F,0EAA2C;AAC3C,0EAA2C;AAC3C,gFAAiD;AACjD,gHAAiF;AACjF,oIAAqG;AACrG,wHAAyF;AACzF,8FAA+D;AAC/D,oFAAqD;AACrD,0EAA2C;AAC3C,8FAA+D;AAC/D,oFAAqD"}
|
package/generators.json
CHANGED
|
@@ -115,6 +115,16 @@
|
|
|
115
115
|
"schema": "./src/generators/scam/schema.json",
|
|
116
116
|
"description": "Generate a component with an accompanying Single Component Angular Module (SCAM)."
|
|
117
117
|
},
|
|
118
|
+
"scam-directive": {
|
|
119
|
+
"factory": "./src/generators/scam-directive/scam-directive.compat",
|
|
120
|
+
"schema": "./src/generators/scam-directive/schema.json",
|
|
121
|
+
"description": "Generate a directive with an accompanying Single Component Angular Module (SCAM)."
|
|
122
|
+
},
|
|
123
|
+
"scam-pipe": {
|
|
124
|
+
"factory": "./src/generators/scam-pipe/scam-pipe.compat",
|
|
125
|
+
"schema": "./src/generators/scam-pipe/schema.json",
|
|
126
|
+
"description": "Generate a pipe with an accompanying Single Component Angular Module (SCAM)."
|
|
127
|
+
},
|
|
118
128
|
|
|
119
129
|
"web-worker": {
|
|
120
130
|
"factory": "./src/generators/web-worker/compat",
|
|
@@ -209,6 +219,16 @@
|
|
|
209
219
|
"schema": "./src/generators/scam/schema.json",
|
|
210
220
|
"description": "Generate a component with an accompanying Single Component Angular Module (SCAM)."
|
|
211
221
|
},
|
|
222
|
+
"scam-directive": {
|
|
223
|
+
"factory": "./src/generators/scam-directive/scam-directive",
|
|
224
|
+
"schema": "./src/generators/scam-directive/schema.json",
|
|
225
|
+
"description": "Generate a directive with an accompanying Single Component Angular Module (SCAM)."
|
|
226
|
+
},
|
|
227
|
+
"scam-pipe": {
|
|
228
|
+
"factory": "./src/generators/scam-pipe/scam-pipe",
|
|
229
|
+
"schema": "./src/generators/scam-pipe/schema.json",
|
|
230
|
+
"description": "Generate a pipe with an accompanying Single Component Angular Module (SCAM)."
|
|
231
|
+
},
|
|
212
232
|
"stories": {
|
|
213
233
|
"factory": "./src/generators/stories/stories",
|
|
214
234
|
"schema": "./src/generators/stories/schema.json",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nrwl/angular",
|
|
3
|
-
"version": "13.3.
|
|
3
|
+
"version": "13.3.6",
|
|
4
4
|
"description": "Angular Plugin for Nx",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@angular-devkit/schematics": "~13.0.0",
|
|
58
|
-
"@nrwl/cypress": "13.3.
|
|
59
|
-
"@nrwl/devkit": "13.3.
|
|
60
|
-
"@nrwl/jest": "13.3.
|
|
61
|
-
"@nrwl/linter": "13.3.
|
|
62
|
-
"@nrwl/storybook": "13.3.
|
|
58
|
+
"@nrwl/cypress": "13.3.6",
|
|
59
|
+
"@nrwl/devkit": "13.3.6",
|
|
60
|
+
"@nrwl/jest": "13.3.6",
|
|
61
|
+
"@nrwl/linter": "13.3.6",
|
|
62
|
+
"@nrwl/storybook": "13.3.6",
|
|
63
63
|
"@schematics/angular": "~13.0.0",
|
|
64
64
|
"@phenomnomnominal/tsquery": "4.1.1",
|
|
65
65
|
"ignore": "^5.0.4",
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createScamDirective = void 0;
|
|
4
|
+
const devkit_1 = require("@nrwl/devkit");
|
|
5
|
+
const ast_utils_1 = require("@nrwl/workspace/src/utilities/ast-utils");
|
|
6
|
+
const typescript_1 = require("typescript");
|
|
7
|
+
function createScamDirective(tree, schema) {
|
|
8
|
+
var _a;
|
|
9
|
+
const project = (_a = schema.project) !== null && _a !== void 0 ? _a : (0, devkit_1.readWorkspaceConfiguration)(tree).defaultProject;
|
|
10
|
+
const projectConfig = (0, devkit_1.readProjectConfiguration)(tree, project);
|
|
11
|
+
const directiveNames = (0, devkit_1.names)(schema.name);
|
|
12
|
+
const typeNames = (0, devkit_1.names)('directive');
|
|
13
|
+
const directiveFileName = `${directiveNames.fileName}.directive`;
|
|
14
|
+
let directiveDirectory = schema.flat
|
|
15
|
+
? (0, devkit_1.joinPathFragments)(projectConfig.sourceRoot, projectConfig.projectType === 'application' ? 'app' : 'lib')
|
|
16
|
+
: (0, devkit_1.joinPathFragments)(projectConfig.sourceRoot, projectConfig.projectType === 'application' ? 'app' : 'lib', directiveNames.fileName);
|
|
17
|
+
if (schema.path) {
|
|
18
|
+
directiveDirectory = schema.flat
|
|
19
|
+
? (0, devkit_1.normalizePath)(schema.path)
|
|
20
|
+
: (0, devkit_1.joinPathFragments)(schema.path, directiveNames.fileName);
|
|
21
|
+
}
|
|
22
|
+
const directiveFilePath = (0, devkit_1.joinPathFragments)(directiveDirectory, `${directiveFileName}.ts`);
|
|
23
|
+
if (!tree.exists(directiveFilePath)) {
|
|
24
|
+
throw new Error(`Couldn't find directive at path ${directiveFilePath} to add SCAM setup.`);
|
|
25
|
+
}
|
|
26
|
+
if (schema.inlineScam) {
|
|
27
|
+
const currentDirectiveContents = tree.read(directiveFilePath, 'utf-8');
|
|
28
|
+
let source = (0, typescript_1.createSourceFile)(directiveFilePath, currentDirectiveContents, typescript_1.ScriptTarget.Latest, true);
|
|
29
|
+
source = (0, ast_utils_1.insertImport)(tree, source, directiveFilePath, 'NgModule', '@angular/core');
|
|
30
|
+
source = (0, ast_utils_1.insertImport)(tree, source, directiveFilePath, 'CommonModule', '@angular/common');
|
|
31
|
+
let updatedDirectiveSource = source.getText();
|
|
32
|
+
updatedDirectiveSource = `${updatedDirectiveSource}${createAngularDirectiveModule(`${directiveNames.className}${typeNames.className}`)}`;
|
|
33
|
+
tree.write(directiveFilePath, updatedDirectiveSource);
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
tree.write((0, devkit_1.joinPathFragments)(directiveDirectory, `${directiveNames.fileName}.module.ts`), createSeparateAngularDirectiveModuleFile(`${directiveNames.className}${typeNames.className}`, directiveFileName));
|
|
37
|
+
}
|
|
38
|
+
exports.createScamDirective = createScamDirective;
|
|
39
|
+
function createAngularDirectiveModule(name) {
|
|
40
|
+
return `
|
|
41
|
+
@NgModule({
|
|
42
|
+
imports: [CommonModule],
|
|
43
|
+
declarations: [${name}],
|
|
44
|
+
exports: [${name}],
|
|
45
|
+
})
|
|
46
|
+
export class ${name}Module {}`;
|
|
47
|
+
}
|
|
48
|
+
function createSeparateAngularDirectiveModuleFile(name, directiveFileName) {
|
|
49
|
+
return `import { NgModule } from '@angular/core';
|
|
50
|
+
import { CommonModule } from '@angular/common';
|
|
51
|
+
import { ${name} } from './${directiveFileName}';
|
|
52
|
+
${createAngularDirectiveModule(name)}`;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=create-module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-module.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/scam-directive/lib/create-module.ts"],"names":[],"mappings":";;;AAGA,yCAMsB;AACtB,uEAAuE;AACvE,2CAA4D;AAE5D,SAAgB,mBAAmB,CAAC,IAAU,EAAE,MAAc;;IAC5D,MAAM,OAAO,GACX,MAAA,MAAM,CAAC,OAAO,mCAAI,IAAA,mCAA0B,EAAC,IAAI,CAAC,CAAC,cAAc,CAAC;IACpE,MAAM,aAAa,GAAG,IAAA,iCAAwB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAE9D,MAAM,cAAc,GAAG,IAAA,cAAK,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAC1C,MAAM,SAAS,GAAG,IAAA,cAAK,EAAC,WAAW,CAAC,CAAC;IAErC,MAAM,iBAAiB,GAAG,GAAG,cAAc,CAAC,QAAQ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ACJ,MAAM,EACN,iBAAiB,EACjB,cAAc,EACd,iBAAiB,CAClB,CAAC;QAEF,IAAI,sBAAsB,GAAG,MAAM,CAAC,OAAO,EAAE,CAAC;QAE9C,sBAAsB,GAAG,GAAG,sBAAsB,GAAG,4BAA4B,CAC/E,GAAG,cAAc,CAAC,SAAS,GAAG,SAAS,CAAC,SAAS,EAAE,CACpD,EAAE,CAAC;QAEJ,IAAI,CAAC,KAAK,CAAC,iBAAiB,EAAE,sBAAsB,CAAC,CAAC;QACtD,OAAO;KACR;IAED,IAAI,CAAC,KAAK,CACR,IAAA,0BAAiB,EACf,kBAAkB,EAClB,GAAG,cAAc,CAAC,QAAQ,YAAY,CACvC,EACD,wCAAwC,CACtC,GAAG,cAAc,CAAC,SAAS,GAAG,SAAS,CAAC,SAAS,EAAE,EACnD,iBAAiB,CAClB,CACF,CAAC;AACJ,CAAC;AAnFD,kDAmFC;AAED,SAAS,4BAA4B,CAAC,IAAY;IAChD,OAAO;;;mBAGU,IAAI;cACT,IAAI;;eAEH,IAAI,WAAW,CAAC;AAC/B,CAAC;AAED,SAAS,wCAAwC,CAC/C,IAAY,EACZ,iBAAyB;IAEzB,OAAO;;WAEE,IAAI,cAAc,iBAAiB;EAC5C,4BAA4B,CAAC,IAAI,CAAC,EAAE,CAAC;AACvC,CAAC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/scam-directive/lib/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const scam_directive_1 = require("./scam-directive");
|
|
4
|
+
const devkit_1 = require("@nrwl/devkit");
|
|
5
|
+
exports.default = (0, devkit_1.convertNxGenerator)(scam_directive_1.default);
|
|
6
|
+
//# sourceMappingURL=scam-directive.compat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scam-directive.compat.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/generators/scam-directive/scam-directive.compat.ts"],"names":[],"mappings":";;AAAA,qDAA6C;AAC7C,yCAAkD;AAElD,kBAAe,IAAA,2BAAkB,EAAC,wBAAa,CAAC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.scamDirectiveGenerator = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const ngcli_adapter_1 = require("@nrwl/devkit/ngcli-adapter");
|
|
6
|
+
const devkit_1 = require("@nrwl/devkit");
|
|
7
|
+
const create_module_1 = require("./lib/create-module");
|
|
8
|
+
const path_1 = require("path");
|
|
9
|
+
function scamDirectiveGenerator(tree, schema) {
|
|
10
|
+
return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
|
|
11
|
+
const { inlineScam } = schema, options = (0, tslib_1.__rest)(schema, ["inlineScam"]);
|
|
12
|
+
checkPathUnderProjectRoot(tree, options);
|
|
13
|
+
const angularDirectiveSchematic = (0, ngcli_adapter_1.wrapAngularDevkitSchematic)('@schematics/angular', 'directive');
|
|
14
|
+
yield angularDirectiveSchematic(tree, Object.assign(Object.assign({}, options), { skipImport: true, export: false }));
|
|
15
|
+
(0, create_module_1.createScamDirective)(tree, schema);
|
|
16
|
+
yield (0, devkit_1.formatFiles)(tree);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
exports.scamDirectiveGenerator = scamDirectiveGenerator;
|
|
20
|
+
function checkPathUnderProjectRoot(tree, options) {
|
|
21
|
+
var _a;
|
|
22
|
+
if (!options.path) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
const project = (_a = options.project) !== null && _a !== void 0 ? _a : (0, devkit_1.readWorkspaceConfiguration)(tree).defaultProject;
|
|
26
|
+
const { root } = (0, devkit_1.readProjectConfiguration)(tree, project);
|
|
27
|
+
let pathToDirective = (0, devkit_1.normalizePath)(options.path);
|
|
28
|
+
pathToDirective = pathToDirective.startsWith('/')
|
|
29
|
+
? pathToDirective.slice(1)
|
|
30
|
+
: pathToDirective;
|
|
31
|
+
if (!pathToDirective.startsWith((0, path_1.normalize)(root))) {
|
|
32
|
+
throw new Error(`The path provided for the SCAM (${options.path}) does not exist under the project root (${root}).`);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.default = scamDirectiveGenerator;
|
|
36
|
+
//# sourceMappingURL=scam-directive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scam-directive.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/generators/scam-directive/scam-directive.ts"],"names":[],"mappings":";;;;AAEA,8DAAwE;AACxE,yCAKsB;AACtB,uDAA0D;AAC1D,+BAAiC;AAEjC,SAAsB,sBAAsB,CAAC,IAAU,EAAE,MAAc;;QACrE,MAAM,EAAE,UAAU,KAAiB,MAAM,EAAlB,OAAO,uBAAK,MAAM,EAAnC,cAA0B,CAAS,CAAC;QAE1C,yBAAyB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAEzC,MAAM,yBAAyB,GAAG,IAAA,0CAA0B,EAC1D,qBAAqB,EACrB,WAAW,CACZ,CAAC;QACF,MAAM,yBAAyB,CAAC,IAAI,kCAC/B,OAAO,KACV,UAAU,EAAE,IAAI,EAChB,MAAM,EAAE,KAAK,IACb,CAAC;QAEH,IAAA,mCAAmB,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAElC,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CAAA;AAlBD,wDAkBC;AAED,SAAS,yBAAyB,CAAC,IAAU,EAAE,OAAwB;;IACrE,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE;QACjB,OAAO;KACR;IAED,MAAM,OAAO,GACX,MAAA,OAAO,CAAC,OAAO,mCAAI,IAAA,mCAA0B,EAAC,IAAI,CAAC,CAAC,cAAc,CAAC;IACrE,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,iCAAwB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAEzD,IAAI,eAAe,GAAG,IAAA,sBAAa,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAClD,eAAe,GAAG,eAAe,CAAC,UAAU,CAAC,GAAG,CAAC;QAC/C,CAAC,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC;QAC1B,CAAC,CAAC,eAAe,CAAC;IAEpB,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,IAAA,gBAAS,EAAC,IAAI,CAAC,CAAC,EAAE;QAChD,MAAM,IAAI,KAAK,CACb,mCAAmC,OAAO,CAAC,IAAI,4CAA4C,IAAI,IAAI,CACpG,CAAC;KACH;AACH,CAAC;AAED,kBAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "SCAMDirectiveGenerator",
|
|
4
|
+
"cli": "nx",
|
|
5
|
+
"title": "SCAM Directive Generator Options Schema",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"description": "Creates a new, generic directive definition in the given or default project.",
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"path": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"format": "path",
|
|
13
|
+
"description": "The path at which to create the directive file, relative to the current workspace. Default is a folder with the same name as the directive in the project root.",
|
|
14
|
+
"visible": false
|
|
15
|
+
},
|
|
16
|
+
"project": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "The name of the project.",
|
|
19
|
+
"$default": {
|
|
20
|
+
"$source": "projectName"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"name": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"description": "The name of the directive.",
|
|
26
|
+
"$default": {
|
|
27
|
+
"$source": "argv",
|
|
28
|
+
"index": 0
|
|
29
|
+
},
|
|
30
|
+
"x-prompt": "What name would you like to use for the directive?"
|
|
31
|
+
},
|
|
32
|
+
"skipTests": {
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"description": "Do not create \"spec.ts\" test files for the new directive.",
|
|
35
|
+
"default": false
|
|
36
|
+
},
|
|
37
|
+
"inlineScam": {
|
|
38
|
+
"type": "boolean",
|
|
39
|
+
"description": "Create the NgModule in the same file as the Directive.",
|
|
40
|
+
"default": true
|
|
41
|
+
},
|
|
42
|
+
"flat": {
|
|
43
|
+
"type": "boolean",
|
|
44
|
+
"description": "Create the new files at the top level of the current project.",
|
|
45
|
+
"default": true
|
|
46
|
+
},
|
|
47
|
+
"selector": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"format": "html-selector",
|
|
50
|
+
"description": "The HTML selector to use for this directive."
|
|
51
|
+
},
|
|
52
|
+
"prefix": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"description": "The prefix to apply to the generated directive selector.",
|
|
55
|
+
"alias": "p",
|
|
56
|
+
"oneOf": [
|
|
57
|
+
{
|
|
58
|
+
"maxLength": 0
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"minLength": 1,
|
|
62
|
+
"format": "html-selector"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"required": ["name"]
|
|
68
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createScamPipe = void 0;
|
|
4
|
+
const devkit_1 = require("@nrwl/devkit");
|
|
5
|
+
const ast_utils_1 = require("@nrwl/workspace/src/utilities/ast-utils");
|
|
6
|
+
const typescript_1 = require("typescript");
|
|
7
|
+
function createScamPipe(tree, schema) {
|
|
8
|
+
var _a;
|
|
9
|
+
const project = (_a = schema.project) !== null && _a !== void 0 ? _a : (0, devkit_1.readWorkspaceConfiguration)(tree).defaultProject;
|
|
10
|
+
const projectConfig = (0, devkit_1.readProjectConfiguration)(tree, project);
|
|
11
|
+
const pipeNames = (0, devkit_1.names)(schema.name);
|
|
12
|
+
const typeNames = (0, devkit_1.names)('pipe');
|
|
13
|
+
const pipeFileName = `${pipeNames.fileName}.pipe`;
|
|
14
|
+
let pipeDirectory = schema.flat
|
|
15
|
+
? (0, devkit_1.joinPathFragments)(projectConfig.sourceRoot, projectConfig.projectType === 'application' ? 'app' : 'lib')
|
|
16
|
+
: (0, devkit_1.joinPathFragments)(projectConfig.sourceRoot, projectConfig.projectType === 'application' ? 'app' : 'lib', pipeNames.fileName);
|
|
17
|
+
if (schema.path) {
|
|
18
|
+
pipeDirectory = schema.flat
|
|
19
|
+
? (0, devkit_1.normalizePath)(schema.path)
|
|
20
|
+
: (0, devkit_1.joinPathFragments)(schema.path, pipeNames.fileName);
|
|
21
|
+
}
|
|
22
|
+
const pipeFilePath = (0, devkit_1.joinPathFragments)(pipeDirectory, `${pipeFileName}.ts`);
|
|
23
|
+
if (!tree.exists(pipeFilePath)) {
|
|
24
|
+
throw new Error(`Couldn't find pipe at path ${pipeFilePath} to add SCAM setup.`);
|
|
25
|
+
}
|
|
26
|
+
if (schema.inlineScam) {
|
|
27
|
+
const currentPipeContents = tree.read(pipeFilePath, 'utf-8');
|
|
28
|
+
let source = (0, typescript_1.createSourceFile)(pipeFilePath, currentPipeContents, typescript_1.ScriptTarget.Latest, true);
|
|
29
|
+
source = (0, ast_utils_1.insertImport)(tree, source, pipeFilePath, 'NgModule', '@angular/core');
|
|
30
|
+
source = (0, ast_utils_1.insertImport)(tree, source, pipeFilePath, 'CommonModule', '@angular/common');
|
|
31
|
+
let updatedPipeSource = source.getText();
|
|
32
|
+
updatedPipeSource = `${updatedPipeSource}${createAngularPipeModule(`${pipeNames.className}${typeNames.className}`)}`;
|
|
33
|
+
tree.write(pipeFilePath, updatedPipeSource);
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
tree.write((0, devkit_1.joinPathFragments)(pipeDirectory, `${pipeNames.fileName}.module.ts`), createSeparateAngularPipeModuleFile(`${pipeNames.className}${typeNames.className}`, pipeFileName));
|
|
37
|
+
}
|
|
38
|
+
exports.createScamPipe = createScamPipe;
|
|
39
|
+
function createAngularPipeModule(name) {
|
|
40
|
+
return `
|
|
41
|
+
@NgModule({
|
|
42
|
+
imports: [CommonModule],
|
|
43
|
+
declarations: [${name}],
|
|
44
|
+
exports: [${name}],
|
|
45
|
+
})
|
|
46
|
+
export class ${name}Module {}`;
|
|
47
|
+
}
|
|
48
|
+
function createSeparateAngularPipeModuleFile(name, pipeFileName) {
|
|
49
|
+
return `import { NgModule } from '@angular/core';
|
|
50
|
+
import { CommonModule } from '@angular/common';
|
|
51
|
+
import { ${name} } from './${pipeFileName}';
|
|
52
|
+
${createAngularPipeModule(name)}`;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=create-module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-module.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/scam-pipe/lib/create-module.ts"],"names":[],"mappings":";;;AAGA,yCAMsB;AACtB,uEAAuE;AACvE,2CAA4D;AAE5D,SAAgB,cAAc,CAAC,IAAU,EAAE,MAAc;;IACvD,MAAM,OAAO,GACX,MAAA,MAAM,CAAC,OAAO,mCAAI,IAAA,mCAA0B,EAAC,IAAI,CAAC,CAAC,cAAc,CAAC;IACpE,MAAM,aAAa,GAAG,IAAA,iCAAwB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAE9D,MAAM,SAAS,GAAG,IAAA,cAAK,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACrC,MAAM,SAAS,GAAG,IAAA,cAAK,EAAC,MAAM,CAAC,CAAC;IAEhC,MAAM,YAAY,GAAG,GAAG,SAAS,CAAC,Q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,EACZ,cAAc,EACd,iBAAiB,CAClB,CAAC;QAEF,IAAI,iBAAiB,GAAG,MAAM,CAAC,OAAO,EAAE,CAAC;QAEzC,iBAAiB,GAAG,GAAG,iBAAiB,GAAG,uBAAuB,CAChE,GAAG,SAAS,CAAC,SAAS,GAAG,SAAS,CAAC,SAAS,EAAE,CAC/C,EAAE,CAAC;QAEJ,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,iBAAiB,CAAC,CAAC;QAC5C,OAAO;KACR;IAED,IAAI,CAAC,KAAK,CACR,IAAA,0BAAiB,EAAC,aAAa,EAAE,GAAG,SAAS,CAAC,QAAQ,YAAY,CAAC,EACnE,mCAAmC,CACjC,GAAG,SAAS,CAAC,SAAS,GAAG,SAAS,CAAC,SAAS,EAAE,EAC9C,YAAY,CACb,CACF,CAAC;AACJ,CAAC;AA7ED,wCA6EC;AAED,SAAS,uBAAuB,CAAC,IAAY;IAC3C,OAAO;;;mBAGU,IAAI;cACT,IAAI;;eAEH,IAAI,WAAW,CAAC;AAC/B,CAAC;AAED,SAAS,mCAAmC,CAC1C,IAAY,EACZ,YAAoB;IAEpB,OAAO;;WAEE,IAAI,cAAc,YAAY;EACvC,uBAAuB,CAAC,IAAI,CAAC,EAAE,CAAC;AAClC,CAAC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/scam-pipe/lib/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const scam_pipe_1 = require("./scam-pipe");
|
|
4
|
+
const devkit_1 = require("@nrwl/devkit");
|
|
5
|
+
exports.default = (0, devkit_1.convertNxGenerator)(scam_pipe_1.default);
|
|
6
|
+
//# sourceMappingURL=scam-pipe.compat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scam-pipe.compat.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/generators/scam-pipe/scam-pipe.compat.ts"],"names":[],"mappings":";;AAAA,2CAA4C;AAC5C,yCAAkD;AAElD,kBAAe,IAAA,2BAAkB,EAAC,mBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.scamPipeGenerator = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const ngcli_adapter_1 = require("@nrwl/devkit/ngcli-adapter");
|
|
6
|
+
const devkit_1 = require("@nrwl/devkit");
|
|
7
|
+
const create_module_1 = require("./lib/create-module");
|
|
8
|
+
const path_1 = require("path");
|
|
9
|
+
function scamPipeGenerator(tree, schema) {
|
|
10
|
+
return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
|
|
11
|
+
const { inlineScam } = schema, options = (0, tslib_1.__rest)(schema, ["inlineScam"]);
|
|
12
|
+
checkPathUnderProjectRoot(tree, options);
|
|
13
|
+
const angularPipeSchematic = (0, ngcli_adapter_1.wrapAngularDevkitSchematic)('@schematics/angular', 'pipe');
|
|
14
|
+
yield angularPipeSchematic(tree, Object.assign(Object.assign({}, options), { skipImport: true, export: false }));
|
|
15
|
+
(0, create_module_1.createScamPipe)(tree, schema);
|
|
16
|
+
yield (0, devkit_1.formatFiles)(tree);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
exports.scamPipeGenerator = scamPipeGenerator;
|
|
20
|
+
function checkPathUnderProjectRoot(tree, options) {
|
|
21
|
+
var _a;
|
|
22
|
+
if (!options.path) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
const project = (_a = options.project) !== null && _a !== void 0 ? _a : (0, devkit_1.readWorkspaceConfiguration)(tree).defaultProject;
|
|
26
|
+
const { root } = (0, devkit_1.readProjectConfiguration)(tree, project);
|
|
27
|
+
let pathToPipe = (0, devkit_1.normalizePath)(options.path);
|
|
28
|
+
pathToPipe = pathToPipe.startsWith('/') ? pathToPipe.slice(1) : pathToPipe;
|
|
29
|
+
if (!pathToPipe.startsWith((0, path_1.normalize)(root))) {
|
|
30
|
+
throw new Error(`The path provided for the SCAM (${options.path}) does not exist under the project root (${root}).`);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.default = scamPipeGenerator;
|
|
34
|
+
//# sourceMappingURL=scam-pipe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scam-pipe.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/generators/scam-pipe/scam-pipe.ts"],"names":[],"mappings":";;;;AAEA,8DAAwE;AACxE,yCAKsB;AACtB,uDAAqD;AACrD,+BAAiC;AAEjC,SAAsB,iBAAiB,CAAC,IAAU,EAAE,MAAc;;QAChE,MAAM,EAAE,UAAU,KAAiB,MAAM,EAAlB,OAAO,uBAAK,MAAM,EAAnC,cAA0B,CAAS,CAAC;QAE1C,yBAAyB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAEzC,MAAM,oBAAoB,GAAG,IAAA,0CAA0B,EACrD,qBAAqB,EACrB,MAAM,CACP,CAAC;QACF,MAAM,oBAAoB,CAAC,IAAI,kCAC1B,OAAO,KACV,UAAU,EAAE,IAAI,EAChB,MAAM,EAAE,KAAK,IACb,CAAC;QAEH,IAAA,8BAAc,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAE7B,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CAAA;AAlBD,8CAkBC;AAED,SAAS,yBAAyB,CAAC,IAAU,EAAE,OAAwB;;IACrE,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE;QACjB,OAAO;KACR;IAED,MAAM,OAAO,GACX,MAAA,OAAO,CAAC,OAAO,mCAAI,IAAA,mCAA0B,EAAC,IAAI,CAAC,CAAC,cAAc,CAAC;IACrE,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,iCAAwB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAEzD,IAAI,UAAU,GAAG,IAAA,sBAAa,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7C,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;IAE3E,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,IAAA,gBAAS,EAAC,IAAI,CAAC,CAAC,EAAE;QAC3C,MAAM,IAAI,KAAK,CACb,mCAAmC,OAAO,CAAC,IAAI,4CAA4C,IAAI,IAAI,CACpG,CAAC;KACH;AACH,CAAC;AAED,kBAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "SCAMPipeGenerator",
|
|
4
|
+
"cli": "nx",
|
|
5
|
+
"title": "SCAM Pipe Generator Options Schema",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"description": "Creates a new, generic pipe definition in the given or default project.",
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"path": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"format": "path",
|
|
13
|
+
"description": "The path at which to create the pipe file, relative to the current workspace. Default is a folder with the same name as the pipe in the project root.",
|
|
14
|
+
"visible": false
|
|
15
|
+
},
|
|
16
|
+
"project": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "The name of the project.",
|
|
19
|
+
"$default": {
|
|
20
|
+
"$source": "projectName"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"name": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"description": "The name of the pipe.",
|
|
26
|
+
"$default": {
|
|
27
|
+
"$source": "argv",
|
|
28
|
+
"index": 0
|
|
29
|
+
},
|
|
30
|
+
"x-prompt": "What name would you like to use for the pipe?"
|
|
31
|
+
},
|
|
32
|
+
"skipTests": {
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"description": "Do not create \"spec.ts\" test files for the new pipe.",
|
|
35
|
+
"default": false
|
|
36
|
+
},
|
|
37
|
+
"inlineScam": {
|
|
38
|
+
"type": "boolean",
|
|
39
|
+
"description": "Create the NgModule in the same file as the Pipe.",
|
|
40
|
+
"default": true
|
|
41
|
+
},
|
|
42
|
+
"flat": {
|
|
43
|
+
"type": "boolean",
|
|
44
|
+
"description": "Create the new files at the top level of the current project.",
|
|
45
|
+
"default": true
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"required": ["name"]
|
|
49
|
+
}
|
|
@@ -5,9 +5,7 @@ const devkit_1 = require("@nrwl/devkit");
|
|
|
5
5
|
function setupServeTarget(host, options) {
|
|
6
6
|
var _a, _b;
|
|
7
7
|
const appConfig = (0, devkit_1.readProjectConfiguration)(host, options.appName);
|
|
8
|
-
appConfig.targets['serve'] = Object.assign(Object.assign({}, appConfig.targets['serve']), { executor: '@nrwl/angular:webpack-server', options: Object.assign(Object.assign({}, appConfig.targets['serve'].options), { port: (_a = options.port) !== null && _a !== void 0 ? _a : undefined, publicHost: options.
|
|
9
|
-
? undefined
|
|
10
|
-
: `http://localhost:${(_b = options.port) !== null && _b !== void 0 ? _b : 4200}` }) });
|
|
8
|
+
appConfig.targets['serve'] = Object.assign(Object.assign({}, appConfig.targets['serve']), { executor: '@nrwl/angular:webpack-server', options: Object.assign(Object.assign({}, appConfig.targets['serve'].options), { port: (_a = options.port) !== null && _a !== void 0 ? _a : undefined, publicHost: `http://localhost:${(_b = options.port) !== null && _b !== void 0 ? _b : 4200}` }) });
|
|
11
9
|
if (options.mfeType === 'host') {
|
|
12
10
|
const remoteServeCommands = options.remotes
|
|
13
11
|
? options.remotes.map((r) => `nx serve ${r}`)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-serve-target.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/setup-mfe/lib/setup-serve-target.ts"],"names":[],"mappings":";;;AAGA,yCAGsB;AAEtB,SAAgB,gBAAgB,CAAC,IAAU,EAAE,OAAe;;IAC1D,MAAM,SAAS,GAAG,IAAA,iCAAwB,EAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IAElE,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,mCACrB,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,KAC7B,QAAQ,EAAE,8BAA8B,EACxC,OAAO,kCACF,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,KACrC,IAAI,EAAE,MAAA,OAAO,CAAC,IAAI,mCAAI,SAAS,EAC/B,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"setup-serve-target.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/setup-mfe/lib/setup-serve-target.ts"],"names":[],"mappings":";;;AAGA,yCAGsB;AAEtB,SAAgB,gBAAgB,CAAC,IAAU,EAAE,OAAe;;IAC1D,MAAM,SAAS,GAAG,IAAA,iCAAwB,EAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IAElE,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,mCACrB,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,KAC7B,QAAQ,EAAE,8BAA8B,EACxC,OAAO,kCACF,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,KACrC,IAAI,EAAE,MAAA,OAAO,CAAC,IAAI,mCAAI,SAAS,EAC/B,UAAU,EAAE,oBAAoB,MAAA,OAAO,CAAC,IAAI,mCAAI,IAAI,EAAE,MAEzD,CAAC;IAEF,IAAI,OAAO,CAAC,OAAO,KAAK,MAAM,EAAE;QAC9B,MAAM,mBAAmB,GAAG,OAAO,CAAC,OAAO;YACzC,CAAC,CAAC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FederationPluginVersion = exports.angularEslintVersion = exports.jestPresetAngularVersion = exports.rxjsVersion = exports.ngrxVersion = exports.angularJsVersion = exports.angularDevkitVersion = exports.angularVersion = exports.nxVersion = void 0;
|
|
4
|
-
exports.nxVersion = '13.3.
|
|
4
|
+
exports.nxVersion = '13.3.6';
|
|
5
5
|
exports.angularVersion = '^13.0.0';
|
|
6
6
|
exports.angularDevkitVersion = '~13.0.0';
|
|
7
7
|
exports.angularJsVersion = '1.7.9';
|