evainsurtech v0.0.3
Referencias para la construccion del storybook
https://medium.com/storybookjs/structuring-your-storybook-5148b116b874
Install in local
Use yarn to install the dependencies: yarn install
NO use npm or pnpm: Problems resolving dependencies of storybook`
Install in pipeline CI
yarn install --frozen-lockfile
Run storybook in local
npm run storybook
or yarn run storybook
or yarn storybook
Build storybook
Set correct envs DEPLOY_URL= PREVIEW_URL=//iframe.html
Exmaple: DEPLOY_URL=/storybook PREVIEW_URL=/storybook/iframe.html
npm run build
or yarn run build
or yarn build
Generate build dir to deploy
Flow to build and publish in npm
Prerequisite: be authenticated in the npm account
In package.json set correct name and version
Ex:
"name": "@daxamayac/ds",
"version": "16.0.0",
In windows
npm run clearWindows
or yarn run clearWindows
or yarn clearWindows
npm run buildWindows
or yarn run buildWindows
or yarn buildWindows
for publish only work with npm >> npm run publicPublish
In linux
npm run clearLinux
or yarn run clearLinux
or yarn clearLinux
npm run buildLinux
or yarn run buildLinux
or yarn buildLinux
for publish only work with npm >> npm run publicPublish