1.0.0 • Published 2 years ago

pds-demo-components v1.0.0

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

@prism-labs/components

This project was created with React and Storybook.

Running the Application

To run the project from the project root, run:

yarn workspace @prism-labs/components start

To run it from within the directory, run yarn start as you typically would. The only thing you NEVER want to do from within the individual package/app projects is run anything that will install packages (yarn add , yarn, or yarn install). This will result in local dependencies at the project-level, which we don't want.

To add packages to a specific project, there are two options:

  1. yarn workspace @prism-labs/components add your-pkg-name (This approach is not ideal if you're trying to add more than one package as you will need to install them individually.)

  2. Add the dependencies to /packages/components/package.json and then run yarn workspace @prism-labs/components install your-pkg-name

Building the Application

To build the project from the project root, run:

yarn workspace @prism-labs/components build

To run it from within the directory, run yarn build as you typically would.

Stories are NOT included in the build.

The build script will also run the create_manifest script, which traverses the components directory and creates a static manifest of all .module.scss files. This manifest is used for our export CSS feature.