Skip to content

Commit

Permalink
refactor(schematics): fix typo for markdown (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
thuchede authored and jorgeucano committed Jan 28, 2020
1 parent 851fb12 commit e81c86f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions schematics/scully/src/add-blog/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import {Rule, SchematicContext, Tree} from '@angular-devkit/schematics';
import {RunSchematicTask} from '@angular-devkit/schematics/tasks';
import {Schema} from './schema';
import {Schema as MarkownSchema} from '../create-markdown/schema';
import {Schema as MarkdownSchema} from '../create-markdown/schema';

export default function(options: Schema): Rule {
return (tree: Tree, context: SchematicContext) => {
const makrdownOptions: MarkownSchema = {
const markdownOptions: MarkdownSchema = {
name: 'blog',
slug: 'slug',
sourceDir: 'blog',
Expand All @@ -14,8 +14,8 @@ export default function(options: Schema): Rule {
};

if (options.routingScope) {
makrdownOptions.routingScope = options.routingScope;
markdownOptions.routingScope = options.routingScope;
}
context.addTask(new RunSchematicTask('create-markdown', makrdownOptions), []);
context.addTask(new RunSchematicTask('create-markdown', markdownOptions), []);
};
}

0 comments on commit e81c86f

Please sign in to comment.