@energysage/es-ds-components
v7.0.0
Published
An EnergySage Vue component library
Keywords
Readme
es-ds-components
An EnergySage Nuxt layer, with components for our design system.
Usage
npm install @energysage/es-ds-componentsInstall the @energysage/es-ds-styles version that matches this package. Starting with 7.0.0 both packages
share a version; for earlier releases, see the
compatibility table.
This package also requires one exact Nuxt version, listed in its peerDependencies; npm install fails if your
app's nuxt version doesn't match.
Once 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