Skip to content

gshilin-sdb/frontend-components

 
 

Repository files navigation

Build Status codecov

frontend-components

Monorepo of Red Hat Cloud services Components for applications in a React.js environment.

Packages

Local tasks

Since this is monorepo repository it has some special requirements how to run tasks. This repository is using lerna, so if you have newer version of npm you can run npx lerna $TASK where $TASK is one of lerna commands.

These tasks are preconfigured

  • npm start - will perform start in all packages, you can change the scope by calling npm start -- --scope=pckg_name to run start in pckg_name
  • npm run build - will perform build in all packages, you can change the scope by calling npm start -- --scope=pckg_name to run start in pckg_name
  • npm run clean - to remove all node modules in root and in packages folder
  • npm run bootstrap - to install packages correctly (will link local dependencies as well)
  • npm run test - to run tests locally
  • npm run watch - similiar to start, but will emit files to disk (good for local links)
  • npm run playground - to launch local demo on port 8080

Running locally

Install all packages by calling npm install in root folder. This will perform bootstrap and initial build as well. After that you can choose either playground for testing things seperately, or npm run build to build all packages.

Creating new package

If none package suits scope of new changes, we need to create new package by creating folder inside packages and running npm init in it.

Run release

Webhooks are enabled to trigger releases on travis from comment on merged PR. If you are member of group responsible for releases you can add new commnent to merged PR Release minor, Release bugfix or Release in order to trigger new release.

You can also draft a release by adding label release or release minor and once this PR is merged new release will be triggered.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 92.7%
  • CSS 7.2%
  • HTML 0.1%