Skip to content

Commit 5105603

Browse files
committed
[UPDATE] additional work
1 parent 657f222 commit 5105603

File tree

3 files changed

+11
-18
lines changed

3 files changed

+11
-18
lines changed

projects/wml-schematics/schematics/template-component/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ import * as ts from '@schematics/angular/third_party/github.com/Microsoft/TypeSc
1010
import { InsertChange, Change } from '@schematics/angular/utility/change';
1111
import { wmlUpdateFile } from '../utils/updateFile';
1212
import { DevEnvFile, addRouteDeclarationToNgModule, getRoutingModuleOrRoutesPath, wmlCreateSourceFile } from '../utils/utils';
13-
import * as fs from 'fs';
14-
import * as path from 'path';
13+
1514

1615
let needsIdUpdate= true
1716
export type TemplateComponentSchema = {

projects/wml-schematics/schematics/template-library/index.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -177,15 +177,6 @@ export default function (options:any): Rule {
177177
project: packageName,
178178
fromLibrary:true,
179179
}),
180-
schematic('component', {
181-
name: componentName,
182-
selector: `${prefix}-${componentName}`,
183-
cpntType:"library",
184-
isPropsChild:true,
185-
path: sourceDir,
186-
export: true,
187-
project: packageName,
188-
}),
189180
(tree: Tree, _context: SchematicContext) => {
190181
const addtlDir = 'addtl'; // Adjust this path to your 'addtl' folder
191182
const targetDir = ''; // Adjust this path to your main folder
@@ -196,6 +187,16 @@ export default function (options:any): Rule {
196187
});
197188
return tree;
198189
},
190+
schematic('component', {
191+
name: componentName,
192+
selector: `${prefix}-${componentName}`,
193+
cpntType:"library",
194+
isPropsChild:true,
195+
path: sourceDir,
196+
export: true,
197+
project: packageName,
198+
}),
199+
199200
(_tree: Tree, context: SchematicContext) => {
200201
if (!options.skipPackageJson && !options.skipInstall) {
201202
context.addTask(new NodePackageInstallTask());

projects/wml-schematics/schematics/template-module/index.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,6 @@ function addImportToNgModule(options: TemplateModuleSchema): Rule {
6161
};
6262
}
6363

64-
65-
66-
67-
68-
69-
70-
7164
export default function (options: TemplateModuleSchema): Rule {
7265
return async (host: Tree) => {
7366
if (options.path === undefined) {

0 commit comments

Comments
 (0)