Indigo UI library, its CSS and React components. Also Styleguide app showing usages of this library.
- Make sure you have Node 16 installed
node -v
- Install grunt:
yarn global add grunt-cli
- Install dependencies:
yarn
- Run storybook
yarn dev
- Open browser at http://localhost:9009/
- Build:
docker-compose build
(SeeDockerfile
to check what's inside) - Run container:
docker-compose run --rm --service-ports node
- Continue from step 3. (including) in section above (
yarn
,yarn dev
, ...)
yarn dev
: Start Storybook serveryarn test
: Run testsyarn build-lib
: Build package prepared for publishing to npmjs registryyarn build-storybook
: Prepare Storybook for deploymentyarn stylelint
: Check less files for errors
- Create new component file in
src/indigo/components
(e.g.Loader.jsx
). - Add tests (if needed) and snapshots for new component (e.g.
Loader.test.js
). - Add new component to main file
src/indigo/components/index.js
to enable its export.
Make sure you have package prepared yarn build-lib
.
- [indigo-ui]
yarn link
- [kbc-ui]
yarn link "@keboola/indigo-ui"
Similar (but reversed) process applies for yarn unlink
.
- [kbc-ui]
yarn add file:/path/to/indigo-ui
Check KBC.md
First, check the content of .travis.yml
file and documentation about
Travis Deployment.
- Storybook is deployed on every push to
main
branch - After successful deployment, the Storybook build will be available online at https://indigo.keboola.com
- Before pushing new tag, make sure you know what are you doing.
- New tagged release is only needed if there's a change in
src/indigo
folder and you want to make those changes available for users. - Please respect Semantic versioning
Steps:
- Make sure everything is working as expected
- Make sure you are on a
main
branch - Prepare new version with
yarn version
command- Just follow instructions
- This command should create new commit (with version change in
package.json
) and tag for you. - There's no need to change
package.json
manually or create tag manually.
- Push to
main
branch - e.ggit push origin main
- Check if everything is as expected (you can wait until
main
branch is deployed) - Push newly created tag - e.g.
git push origin v2.0.0-beta-3
<- This triggers deploy to npmjs! - Check package in npmjs registry
- Try to install it or update to newer version from some project
- Write release notes keboola/indigo-ui/releases
Run yarn test
. It'll start tests in interactive mode.
Run npm pack
. Check its manual here.
If published version does not match installed version.
git clone git@github.com:react-bootstrap/react-bootstrap.git
cd react-bootstrap
git fetch --all
git checkout v0.31.5 # use version you need
npm run docs
Open browser at localhost:4000
MIT licensed, see LICENSE file.