aotds-docks/_templates/story/new/index.js

12 lines
262 B
JavaScript
Raw Normal View History

2022-03-26 17:10:11 +00:00
const path = require('path');
module.exports = {
params: ({ args }) => {
const storypath = args.path.replace( '.svelte', '.stories.svelte' );
const component = path.basename(args.path).replace('.svelte','');
return { storypath, component}
}
}