JSPM

  • Created
  • Published
  • Downloads 1088
  • Score
    100M100P100Q95313F

Capsule Core Components

Package Exports

    Readme

    component-library

    Cross-framework common component library

    Install

    yarn install

    Running

    The component examples can either be run in React or bare HTML.

    React

    yarn build
    yarn start-react

    HTML

    yarn start-html

    Building

    This will build the component libraries for both web components and React.

    yarn build

    Generating New Components

    This should be used when adding new components to the library. It will initialize the component, test and styles.

    Once run, follow the prompts to name your component.

    Note Components MUST begin the the cpsl- string in order for them to pass linting.

    Note The styles should be changed to Sass once the component is generated. Rename the generated css file to scss and update the import in the component.

    yarn generate