File tree Expand file tree Collapse file tree 1 file changed +17
-11
lines changed Expand file tree Collapse file tree 1 file changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -50,22 +50,28 @@ Create an
50
50
51
51
## Developing locally
52
52
53
- If you have cloned this locally and are wondering why there's a linter
54
- warning for ` sveltekit-embed ` that's because you'll need to package
55
- and install the project locally.
53
+ Import the component locally into the ` index.md ` file:
54
+
55
+ ``` svelte
56
+ import MyComponent from '$lib/components/my-component.svelte'
57
+ ```
58
+
59
+ Test the package locally with the ` package:local ` script:
56
60
57
61
``` bash
58
- # package with sveltkit
59
- npm run package
60
- # install local package
61
- npm i -D ./package
62
+ npm run package:local
63
+ ```
64
+
65
+ And add it to the import statement in the ` index.md ` file:
66
+
67
+ ``` svelte
68
+ import { MyComponent } from 'sveltekit-embed'
62
69
```
63
70
64
- You can use the components locally via the ` src/routes/index.svelte `
65
- file.
71
+ Test locally, then submit a PR 🙏
66
72
67
- If you're adding a new component to ` src/lib/components ` then add the
68
- export to ` src/lib/index.ts ` .
73
+ If you're adding a new component to be used in the package then add an
74
+ export to the ` src/lib/index.ts ` file .
69
75
70
76
## Thanks
71
77
You can’t perform that action at this time.
0 commit comments