Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@keboola/indigo-ui

Package Overview
Dependencies
Maintainers
7
Versions
206
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@keboola/indigo-ui

Keboola UI library

  • 17.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
23
decreased by-89.69%
Maintainers
7
Weekly downloads
 
Created
Source

Indigo UI

Build Status npm license

Indigo UI library, its CSS and React components. Also Styleguide app showing usages of this library.

Development

  1. Make sure you have Node 16 installed node -v
  2. Install grunt: yarn global add grunt-cli
  3. Install dependencies: yarn
  4. Run storybook yarn dev
  5. Open browser at http://localhost:9009/

Docker

  1. Build: docker-compose build (See Dockerfile to check what's inside)
  2. Run container: docker-compose run --rm --service-ports node
  3. Continue from step 3. (including) in section above (yarn, yarn dev, ...)

Available commands

  • yarn dev: Start Storybook server
  • yarn test: Run tests
  • yarn build-lib: Build package prepared for publishing to npmjs registry
  • yarn build-storybook: Prepare Storybook for deployment
  • yarn stylelint: Check less files for errors

Creating new React Component

  1. Create new component file in src/indigo/components (e.g. Loader.jsx).
  2. Add tests (if needed) and snapshots for new component (e.g. Loader.test.js).
  3. Add new component to main file src/indigo/components/index.js to enable its export.

Check local build of indigo-ui in kbc-ui

Make sure you have package prepared yarn build-lib.

  • [indigo-ui] yarn link
  • [kbc-ui] yarn link "@keboola/indigo-ui"

See yarn link docs

Similar (but reversed) process applies for yarn unlink.

Using yarn add
  • [kbc-ui] yarn add file:/path/to/indigo-ui

See yarn add docs

Simultaneously with Keboola Connection (Advanced, Docker only)

Check KBC.md

Deployment

First, check the content of .travis.yml file and documentation about Travis Deployment.

Storybook

  • Storybook is deployed on every push to master branch. There's "$TRAVIS_BRANCH" = "master" condition in .travis.yml.
  • The deploy-storybook.sh script is responsible for deploying. Basically, it's a "home made" replacement for Travis deploy section, since that section is used for something else (covered bellow).
  • After successful deployment, the Storybook build will be available online
Releasing new version
  • 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:

  1. Make sure everything is working as expected
  2. 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.
  3. Push to master branch - e.g git push origin master
  4. Check if everything is as expected
  5. Push newly created tag - e.g. git push origin v2.0.0-beta-3 <- This triggers deploy to npmjs!
  6. Check package in npmjs registry, try to install it or update to newer version from some project
  7. Write release notes keboola/indigo-ui/releases

FAQ

How to run tests?

Run yarn test. It'll start tests in interactive mode.

How to check what will be published to npmjs registry before pushing new tag?

Run npm pack. Check its manual here.

How to check react-bootstrap documentation at specific version

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

Keywords

FAQs

Package last updated on 25 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc