This repository holds the source code of the web component present in the Bee-Q Design System.
Package | Version | Documentation |
---|---|---|
@bee-q/core |
README | |
@bee-q/angular |
README | |
@bee-q/react |
README |
The project has been structured as an NX monorepo :
├── 📁 packages
├── 📁 bee-q
├── 📁 bee-q-angular
├── 📁 bee-q-react
├── ...
├── 📁 tools
├── package.json
├── package-lock.json
where:
- packages/bee-q: Core library (source for all the elements/components implemented)
- packages/bee-q-angular: Angular-specific wrapper for Bee-Q core library
- packages/bee-q-react: ReactJS-specific wrapper for Bee-Q core library
We recommend the use of Volta to manage Node and NPM versions. The installation process is pretty straightforward, and as referenced on their official site:
With Volta, you can select a Node engine once and then stop worrying about it. You can switch between projects and stop having to manually switch between Nodes.
Once you have Volta installed, whenever you change to the Bee-Q folder locally, it will switch to the right Node version pinned on the package.json
:
"volta": {
"node": "18.14.0",
"npm": "9.3.1"
}
Volta is not mandatory, you can still use any Node/NPM setup that fits you most, just keep in mind that you'll need:
The Bee-Q components are published to the NPM package manager registry. You can use the @bee-q/core
or any of the framework-specific wrappers (@bee-q/angular
, @bee-q/react
) depending on the technology stack of your project. Make sure the follow the usage instructions for each package:
- 📘 How to use the
@bee-q/core
package - 📗 How to use the
@bee-q/angular
package - 📕 How to use the
@bee-q/react
package
More output targets integration will be added later (e.g. Vue, Svelte)
Feel free to check our Storybook to see all the Bee-Q components released. There you can find all the component's APIs (properties, events, and methods exposed) along with the variations that each component allows.
To develop/extend components on the Bee-Q Design System, please fork this repo in GitHub and clone it locally to a new directory:
git clone https://github.com/<YOUR_GITHUB_USERNAME>/bee-q.git Bee-Q-Design-System
git checkout develop
cd Bee-Q-Design-System
Simply run:
npm ci
# Make sure to build first the project before starting it
npm run build
npm start
Start coding 😃!
For a Production build, just run:
npm run build
Bee-Q uses Jest for unit tests and Jest and Puppeteer for end-to-end tests.
You can run all the tests once, by executing:
npm run test
🚨 If you get an error similar to the one below, try to check out locally the main
branch and run the tests again.
fatal: Not a valid object name main
fatal: No such ref: 'main'
nx affected
Bee-q comes with a component generator that saves you time when creating the skeleton for a new component. To use the generator, you just need to run the following command and follow the instructions in your prompt CLI:
npm run g
💥 If you are in the mood and want to help 🙂, please read carefully our Contributing Guidelines and Development Standards.
❗️ When working on a bug fix, new feature, etc., please notice that we follow a GitFlow workflow. Make sure to follow the instructions from the Contributing Branching Strategy guidelines about how to create your branch when starting to work on a bug/hot fixing, new feature, etc.
Need help? Check out the Stenciljs docs here (https://stenciljs.com/).
We use Tailwind CSS for the style of the components, please take a look at their documentation here: (https://tailwindcss.com/docs/)