0.0.20 • Published 1 year ago

pgd-ui-components-library v0.0.20

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
1 year ago

UI Components Library

Reusable component library for PGD and IdeaLab projects

Recommendations

  • Use Node 16 for Development

    Note: Later versions may not work properly

Initial setup

  • Install dependencies with npm install
  • Build the project npm run build
  • This step is necessary in order to make any global stylesheet available while working on your components
  • Run the development server npm run storybook

New component setup

  • Run the command npx stencil generate your-component-name
  • Remember to change your-component-name for the actual component name
  • If it's supposed to be in a subfolder, you can add it with a relative path. For example: parent-folder/your-component-name
  • Go to components folder and open the folder with the name of your component
  • Change the stylesheet file extension from .css to .scss
  • Open your component .tsx file
  • Look for the styleUrl key in the object passed to the @Component() decorator and change the file extension from .css to .scss
  • Save and start working on your new component

Add your files

cd existing_repo
git remote add origin https://gitlab.prodigious.com/Prodigious/ui-components-library.git
git branch -M main
git push -uf origin main

Integrate with your tools

Collaborate with your team

Test and Deploy

Use the built-in continuous integration in GitLab.