diff --git a/_templates/story/new/index.js b/_templates/story/new/index.js index 37b2a7e..5a3f060 100644 --- a/_templates/story/new/index.js +++ b/_templates/story/new/index.js @@ -4,8 +4,10 @@ module.exports = { params: ({ args }) => { const storypath = args.path.replace( '.svelte', '.stories.svelte' ); - const component = path.basename(args.path).replace('.svelte',''); - return { storypath, component} + const component = path.basename(args.path.replace('/index.svelte','')).replace('.svelte',''); + + const to = path.join(path.dirname(args.path), component + '.stories.svelte' ); + return { storypath, component, to} } } diff --git a/_templates/story/new/stories.svelte.temp b/_templates/story/new/stories.svelte.temp index fe2ba10..25911ce 100644 --- a/_templates/story/new/stories.svelte.temp +++ b/_templates/story/new/stories.svelte.temp @@ -1,5 +1,5 @@ --- -to: <%= storypath %> +to: <%= to %> --- } argTypes={{}} /> diff --git a/src/lib/components/Output/Print/Systems/Screens/Screens.stories.svelte b/src/lib/components/Output/Print/Systems/Screens/Screens.stories.svelte new file mode 100644 index 0000000..c4ffa23 --- /dev/null +++ b/src/lib/components/Output/Print/Systems/Screens/Screens.stories.svelte @@ -0,0 +1,18 @@ + + + + + + + diff --git a/src/lib/components/Output/Print/Systems/Screens/index.svelte b/src/lib/components/Output/Print/Systems/Screens/index.svelte index 5272361..400e569 100644 --- a/src/lib/components/Output/Print/Systems/Screens/index.svelte +++ b/src/lib/components/Output/Print/Systems/Screens/index.svelte @@ -1,14 +1,14 @@
- {#each _.range(standard) as i} + {#each range(1,standard) as i} screen {/each} - {#each _.range(advanced) as i} + {#each range(1,advanced) as i} advanced screen {/each}