Skip to content

Commit

Permalink
fix(storybook): remove ng module import from angular stories
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz committed Jan 29, 2020
1 parent c213ae1 commit 1b8e01c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
10 changes: 0 additions & 10 deletions packages/angular/src/schematics/component-story/component-story.ts
Expand Up @@ -36,14 +36,6 @@ export function createComponentStoriesFile({
componentFileName
}: CreateComponentStoriesFileSchema): Rule {
return (tree: Tree, context: SchematicContext): Rule => {
const relativeModulePath =
componentPath
.split('/')
.filter(segment => segment !== '.')
.map(() => '..')
.join('/') +
'/' +
moduleFileName.replace(/\.ts$/, '');
const props = getInputDescriptors(
tree,
libPath + '/' + componentPath + '/' + componentFileName + '.ts'
Expand All @@ -52,8 +44,6 @@ export function createComponentStoriesFile({
template({
componentFileName: componentFileName,
componentName: componentName,
relativeModulePath,
moduleName: ngModuleClassName,
props,
tmpl: ''
}),
Expand Down
@@ -1,5 +1,4 @@
<% if(props.length > 0) { %>import { text, number, boolean } from '@storybook/addon-knobs';<% } %>
import { <%=moduleName%> } from '<%=relativeModulePath%>';
import { <%=componentName%> } from './<%=componentFileName%>';

export default {
Expand Down

0 comments on commit 1b8e01c

Please sign in to comment.