FESK + Typescript boilerplate.
Change package.json:
{
"name": "{PACKAGE_NAME}",
"main": "dist/umd/{PACKAGE_NAME}.js"
}
Some customisations.
{
"start": "fesk-start --cjs --noServer"
}
Create FILENAME.stories.tsx
import React from 'react';
export default { title: 'CATEGORY LABEL| COMPONENT_NAME' };
export const ExampleName: React.FC = () => {
return <div>Some story</div>
};
Example of custom configuration: https://github.com/digirati-co-uk/capture-models/tree/feature/context-behaviours/.storybook
Package json:
{
"fesk": {
"typescript": true,
"port": 5000,
"metalsmith": {
"nunjucks": {
"liveServerPort": 35735
}
}
}
}