@energysage/es-ds-components
v5.0.1
Published
An EnergySage Vue component library
Downloads
477
Keywords
Readme
es-ds-components
This is an EnergySage Nuxt layer library with design system components.
Usage
npm install @energysage/es-ds-componentsOnce the package is installed, you will need to add a reference to it in your nuxt.config.ts:
// https://nuxt.com/docs/getting-started/layers#usage
extends: [
'@energysage/es-ds-components',
],That should be it! The config and components should automatically be available in your Nuxt app.
Local development
Use the following commands to locally hook up this package to the es-ds-docs Nuxt app. Once the es-ds-docs local dev server is running, any changes made within the es-ds-components codebase will hot reload and automatically be reflected in the es-ds-docs Nuxt app.
~/es-ds/es-ds-components $ npm link
~/es-ds/es-ds-docs $ npm link @energysage/es-ds-componentsTo unlink the es-ds-docs Nuxt app from the local development version of es-ds-components, run the following commands:
~/es-ds/es-ds-docs $ npm unlink --no-save @energysage/es-ds-components
~/es-ds/es-ds-components npm unlink @energysage/es-ds-components