0.1.0 • Published 5 years ago
ksf-components-base v0.1.0
Components Base
Usage in project
npm install krzyszti-software-funhouse/components-base
# or
yarn add krzyszti-software-funhouse/components-baseand then use code:
import { Example } from 'components-base';Pre-use steps
npm installScripts
Start (will start storybook server)
npm run startExport (will export files with storybook output)
npm run exportDeploy (will deploy Storybook current master's version)
npm run deploy:storybookDeploy branch (will deploy Storybook from BRANCH instead of master)
npm run deploy:storybook -- --source-branch=BRANCHBuild (will run rollup to build files)
npm run buildDuring development scripts
Create component
# Creates Atom component
npm run component:create:atom [ComponentName]
# Creates Molecule component
npm run component:create:molecule [ComponentName]
# Creates Organism component
npm run component:create:organism [ComponentName]
# Creates Template component
npm run component:create:template [ComponentName]
# Creates Page component
npm run component:create:page [ComponentName]It will create component under src/components/[ComponentName]/ structured:
src
└── components
├── atoms
│ [ComponentName]
│ │ ├── [ComponentName].stories.tsx
│ │ ├── [ComponentName].styled.ts
│ │ ├── [ComponentName].tsx
│ │ └── [ComponentName].types.ts
│ └── index.ts
├── molecules
│ [ComponentName]
│ │ ├── [ComponentName].stories.tsx
│ │ ├── [ComponentName].styled.ts
│ │ ├── [ComponentName].tsx
│ │ └── [ComponentName].types.ts
│ └── index.ts
├── molecules
│ [..]
├── organisms
│ [..]
├── templates
│ [..]
└── pages
[..]0.1.0
5 years ago