@projectevergreen/astro-wcc 0.1.1 → 0.1.3
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 +14 -2
- package/TODO.md +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,17 +6,29 @@ An [Astro](https://astro.build/) integration for SSR Web Components using [WCC](
|
|
|
6
6
|
|
|
7
7
|
1. Install the plugin into your Astro project
|
|
8
8
|
```sh
|
|
9
|
-
$ npm i astro-wcc
|
|
9
|
+
$ npm i @projectevergreen/astro-wcc
|
|
10
10
|
```
|
|
11
11
|
1. Then add it to your Astro configuration file
|
|
12
12
|
```js
|
|
13
13
|
import { defineConfig } from 'astro/config';
|
|
14
|
-
import astroWcc from 'astro-wcc';
|
|
14
|
+
import astroWcc from '@projectevergreen/astro-wcc';
|
|
15
15
|
|
|
16
16
|
export default defineConfig({
|
|
17
17
|
integrations: [ astroWcc() ]
|
|
18
18
|
});
|
|
19
19
|
```
|
|
20
|
+
1. You can now use a component in an Astro file
|
|
21
|
+
```html
|
|
22
|
+
<!-- src/pages/index.astro -->
|
|
23
|
+
<html lang="en">
|
|
24
|
+
<head>
|
|
25
|
+
<script src="../components/greeting.js"></script>
|
|
26
|
+
</head>
|
|
27
|
+
<body>
|
|
28
|
+
<x-greeting></x-greeting>
|
|
29
|
+
</body>
|
|
30
|
+
</html>
|
|
31
|
+
```
|
|
20
32
|
|
|
21
33
|
## Caveats
|
|
22
34
|
|
package/TODO.md
CHANGED