Skip to content

Commit

Permalink
fix(schematics): update link to nx logo
Browse files Browse the repository at this point in the history
  • Loading branch information
vsavkin committed May 14, 2018
1 parent 56a5933 commit b8e7e06
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/schematics/src/collection/application/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function addRouterRootConfiguration(options: NormalizedSchema): Rule {
const staticComponentContent = `
<div style="text-align:center">
<h1>Welcome to app!</h1>
<img width="300" src="assets/nx-logo.png">
<img width="300" src="https://raw.githubusercontent.com/nrwl/nx/master/nx-logo.png">
</div>
<h2>This is an Angular CLI app built with Nrwl Nx!</h2>
Expand Down
8 changes: 7 additions & 1 deletion packages/schematics/src/collection/library/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ function addLoadChildren(options: NormalizedSchema): Rule {
return (host: Tree) => {
const npmScope = getNpmScope(host);

if (! host.exists(options.parentModule)) {
throw new Error(`Cannot find '${options.parentModule}'`);
}

const moduleSource = host.read(options.parentModule)!.toString('utf-8');
const sourceFile = ts.createSourceFile(
options.parentModule,
Expand Down Expand Up @@ -172,7 +176,9 @@ function findClosestTsConfigApp(
function addChildren(options: NormalizedSchema): Rule {
return (host: Tree) => {
const npmScope = getNpmScope(host);

if (! host.exists(options.parentModule)) {
throw new Error(`Cannot find '${options.parentModule}'`);
}
const moduleSource = host.read(options.parentModule)!.toString('utf-8');
const sourceFile = ts.createSourceFile(
options.parentModule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"update:skip": "./node_modules/.bin/nx update:skip",
"workspace-schematic": "./node_modules/.bin/nx workspace-schematic",
"dep-graph": "./node_modules/.bin/nx dep-graph",
"postinstall": "echo 1",
"help": "./node_modules/.bin/nx help"
},
"private": true,
Expand Down Expand Up @@ -50,6 +49,7 @@
"@angular/cli": "<%= angularCliVersion %>",
"@angular/compiler-cli": "<%= angularVersion %>",
"@angular/language-service": "<%= angularVersion %>",
"@angular-devkit/build-angular": "~0.6.1",
"@ngrx/schematics": "<%= ngrxSchematicsVersion %>",
"@nrwl/schematics": "<%= schematicsVersion %>",
"jasmine-marbles": "<%= jasmineMarblesVersion %>",
Expand Down

0 comments on commit b8e7e06

Please sign in to comment.