0.0.22 โ€ข Published 1 year ago

@webtretho/webtretho-storybook v0.0.22

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Webtretho Storybook

๐Ÿ”— What is insided?

๐Ÿงพ Prerequisites

๐Ÿ›  How to use

@storybook/cli

npm install -g @storybook/cli

Install and Start

yarn && yarn storybook
# or npm install && npm run storybook  

๐Ÿ“Œ Scripts

  • test: run all jest tests
  • storybook: Start and launch Storybook. Run storybook on 6006 port
  • lint: Lints and fixes files. run the linter on all components
  • build-storybook: Compiles and minifies for production. Create the build version of storybook

๐Ÿ‘ Absolute paths

TypeScript

// anyComponent.tsx
import { Component } from 'packages/Component';
import sass from 'sass/*';

SCSS

// component.module.scss
@import "sass/*";
@import "sass/config/colors";

Read more

๐Ÿ•น Usage

After publishing our lib (@webtretho/webtretho-storybook) you can import and use the component:

//
import React from 'react'
import { Button } from '@webtretho/webtretho-storybook'

const App = () => {
  render() {
    return <Button />
  }
}

๐Ÿš€ How to publish the library to NPM

Checkout the latest version of the master branch

git checkout master
git pull

Update the library version number

Can be "major", "minor", or "patch". Almost always use "patch", unless implementing significant changes.

npm version patch

or the following for a prerelease:

npm version prerelease --preid=alpha

Push the newly created version and tag

git push origin <BRANCH> --follow-tags

Build the library

npm run build

Authorize NPM

Add your username, password, email

npm adduser

Publish the library

If this is a standard release of the current major version use:

npm publish

If this is an experimental release, use the "alpha" tag.

npm publish --tag alpha

This will ensure that the "latest" tag doesn't get updated.

0.0.22

1 year ago

0.0.21

1 year ago

0.0.20

1 year ago

0.0.19

1 year ago

0.0.18

1 year ago

0.0.17

1 year ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago