1.2.0 • Published 4 years ago

@getstation/theme v1.2.0

Weekly downloads
135
License
ISC
Repository
-
Last release
4 years ago

Station Theme

Build Status

TL;DR

npm install @getstation/theme

Usage

https://getstation.github.io/theme/storybook/index.html

TypeScript

https://getstation.github.io/theme/typedoc/index.html

How to add an icon

  • Add the SVG icon in resources/icons with param-case filename. Example: indian-pale-ale.svg.
  • Run yarn run generate:icons
  • Commit SVG resource and generated files in lib/components/Icon/svg
  • Use the new icon via: <Icon symbolId={SvgSymbol.INDIAN_PALE_ALE} />

Dev

Requirement for developpement usage

To work with storybook inside Bx you will need to link the module

  • git clone http://github.com/getstation/theme
  • cd theme
  • yarn
  • yarn link
  • cd /path/to/my/Bx
  • yarn link @getstation/theme

Storybook

You can see modifications to you components inside storybook, just start it yarn run storybook & go to localhost

Expose modifications to BX

Rebuild @getstation/theme via yarn run build inside the repo everytime you did change in theme

Pull request

Create a RC version for your PR to be tested:

  • npm version --preid=rc --prerelease for a new or increment RC, will result in 0.0.0-rc-0
  • npm version --premajor for a new major RC version, will result in 1.0.0-rc.0
  • npm version --preminor for a new minor RC version, will result in 0.1.0-rc.0
  • npm version --prepatch for a new patched version, will result in 0.0.1-rc.0
  • git push --follow-tags to push rc version version

Publish

  • Build docs: yarn build-docs
  • verify CHANGELOG.md entries
  • Increment version via: from 0.0.0
    • npm version --major => 1.0.0
    • npm version --minor => 0.1.0
    • npm version --patch => 0.0.1
    • NB: if the version was a RC those command will automatically chaned it a release one with same version !👌
  • Publish: npm publish
1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.1-rc.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.22.1-rc.0

4 years ago

1.0.0-rc

4 years ago

0.22.0

4 years ago

0.21.0

4 years ago

0.21.0-rc.0

4 years ago

0.20.1

4 years ago

0.20.0

4 years ago

0.19.0

4 years ago

0.18.0

4 years ago

0.18.0-rc.1

4 years ago

0.17.3

4 years ago

0.17.2

5 years ago

0.17.2-rc0

5 years ago

0.17.1

5 years ago

0.18.0-rc0

5 years ago

0.17.0

5 years ago

0.15.0-rc4

5 years ago

0.16.0

5 years ago

0.16.0-rc3

5 years ago

0.16.0-rc2

5 years ago

0.16.0-rc1

5 years ago

0.16.0-rc0

5 years ago

0.15.0

5 years ago

0.15.0-rc0

5 years ago

0.15.0-rc3

5 years ago

0.15.0-rc2

5 years ago

0.15.0-rc1

5 years ago

0.14.1-rc2

5 years ago

0.14.1-rc1

5 years ago

0.14.0

5 years ago

0.14.0-rc2

5 years ago

0.14.0-rc1

5 years ago

0.13.1

5 years ago

0.14.0-rc0

5 years ago

0.13.0

5 years ago

0.13.0-rc1

5 years ago

0.13.0-rc0

5 years ago

0.12.1

5 years ago

0.12.0

5 years ago

0.12.0-rc0

5 years ago

0.11.4

5 years ago

0.11.3

5 years ago

0.11.2

5 years ago

0.11.1

5 years ago

0.11.0

5 years ago

0.10.3

5 years ago

0.10.2

5 years ago

0.10.1

5 years ago

0.10.0

5 years ago

0.10.0-rc.5

5 years ago

0.10.0-rc.4

5 years ago

0.10.0-rc.3

5 years ago

0.10.0-rc.2

5 years ago

0.10.0-rc.1

5 years ago

0.10.0-rc

5 years ago

0.9.6

5 years ago

0.9.5

5 years ago

0.9.4

5 years ago

0.9.3

5 years ago

0.9.2

5 years ago

0.9.1

5 years ago

0.9.0

5 years ago

0.8.7

5 years ago

0.8.6

5 years ago

0.8.5

5 years ago

0.8.4

5 years ago

0.8.3

6 years ago

0.8.2

6 years ago

0.8.1

6 years ago

0.8.0

6 years ago

0.7.3

6 years ago

0.7.2

6 years ago

0.7.1

6 years ago

0.7.0

6 years ago

0.6.2

6 years ago

0.6.1

6 years ago

0.6.0

6 years ago

0.5.5

6 years ago

0.5.4

6 years ago

0.5.3

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago