@energysage/es-ds-components 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -0
- package/components/TestComponent.vue +5 -0
- package/nuxt.config.ts +2 -0
- package/package.json +15 -0
package/README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# es-ds-components
|
|
2
|
+
|
|
3
|
+
An EnergySage Nuxt layer library with design system components
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
npm install @energysage/es-ds-components
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
_*Note: this library is in pre-release development, so the above command won't yet work, as this package
|
|
12
|
+
is not yet published to NPM.*_
|
|
13
|
+
|
|
14
|
+
Once the package is installed, you'll need to add a reference to it in your nuxt.config.ts like so:
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
// https://nuxt.com/docs/getting-started/layers#usage
|
|
18
|
+
extends: [
|
|
19
|
+
'@energysage/es-ds-components',
|
|
20
|
+
],
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
That should be it! The config and components should automatically be available in your Nuxt app.
|
|
24
|
+
|
|
25
|
+
## Local development
|
|
26
|
+
|
|
27
|
+
Use the following commands to locally hook up this package to the es-ds-docs Nuxt app. Once the
|
|
28
|
+
es-ds-docs local dev server is running, any changes made within the es-ds-components codebase
|
|
29
|
+
will hot reload and automatically be reflected in the es-ds-docs Nuxt app.
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
~/es-ds/es-ds-components $ npm link
|
|
33
|
+
~/es-ds/es-ds-docs $ npm link @energysage/es-ds-components
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
To unlink the es-ds-docs Nuxt app from the local development version of es-ds-components,
|
|
37
|
+
run the following commands:
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
~/es-ds/es-ds-docs $ npm unlink --no-save @energysage/es-ds-components
|
|
41
|
+
~/es-ds/es-ds-components npm unlink @energysage/es-ds-components
|
|
42
|
+
```
|
package/nuxt.config.ts
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@energysage/es-ds-components",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "An EnergySage Vue component library",
|
|
6
|
+
"main": "./nuxt.config.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
|
+
},
|
|
10
|
+
"author": "EnergySage",
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"devDependencies": {
|
|
13
|
+
"nuxt": "^3.12.4"
|
|
14
|
+
}
|
|
15
|
+
}
|