Skip to content
This repository was archived by the owner on Nov 7, 2020. It is now read-only.

clauseHQ/web-components

 
 

Repository files navigation

Accord Project Web Components

This repository contains a library of user interface components that can be used to create web-applications based on Accord Project technology. The components use the React web application framework.

Use the interactive Storybook for the components to discover their properties.

Repository Structure

This repository is a monorepo, built using lerna. Each package is published as an independent npm module.

The storybook package is a React Storybook, and contains all the stories for all the sub-packages.

GitHub Actions is used to automatically publish the static site generated by Storybook to GitHub pages.

Creating new packages

The packages have all been created by running yarn create react-app %PROJECT_NAME% --template npm-library in the packages directory.

After running the command above, you need to:

  1. cd MY_PACKAGE
  2. node ./prepare.js
  3. Edit the build and build:lib targets in package.json so that the library is built when build is run, rather than the test app
"build:app": "react-scripts build",
"build": "npx rollup -c",

The source code for libraries should be placed in the src/lib folder.

Building

npm install -g lerna
lerna clean && lerna bootstrap && lerna run build

View Storybook

cd packages/storybook
npm run storybook

About

Accord Project Web Components

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 91.7%
  • Shell 3.6%
  • HTML 3.0%
  • CSS 1.7%