You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -119,15 +117,17 @@ The source code that is compiled lives in the `src` folder of your package folde
119
117
120
118
The `build:lib:entry` parameter can accept an array which will allow you to export multiple files during the build. You can read more about [Vite's build options here](https://vitejs.dev/config/build-options.html#build-lib).
121
119
122
-
Build the `ts` file in the **client** folder so we can use it in our package:
120
+
10.Build the `ts` file in the **client** folder:
123
121
124
122
```bash
125
123
npm run build
126
124
```
127
125
128
126
## Watch for changes and build
129
127
130
-
If you like to continuously work on the package and have each change built, you can add a `watch`script in your `package.json` with `vite build --watch`. The example below indicates where in the structure this change should be implemented:
128
+
To continuously work on the package and have each change built, add a `watch`script in your `package.json` with `vite build --watch`.
129
+
130
+
The example below indicates where in the structure this change should be implemented:
@@ -142,7 +142,7 @@ If you like to continuously work on the package and have each change built, you
142
142
```
143
143
{% endcode %}
144
144
145
-
Then in the terminal, you can run `npm run watch`.
145
+
Run `npm run watch` in the terminal.
146
146
147
147
## Umbraco Package declaration
148
148
@@ -188,9 +188,9 @@ Learn more about the abilities of the manifest file in the [Umbraco Package Mani
188
188
189
189
#### Testing your package
190
190
191
-
To be able to test your package, you will need to run your site.
191
+
To test your package, run your site.
192
192
193
-
Before you do this, you need to make sure to run `npmrunbuild` to compile your TypeScript files and copy them to the `App_Plugins/client` folder.
193
+
Before doing this, make sure to run `npmrunbuild` to compile your TypeScript files and copy them to the `App_Plugins/client` folder.
194
194
195
195
{% hint style="warning" %}
196
196
If you try to include some of these resources via Visual Studio (VS), then make sure not to include TypeScript files. Otherwise, VS will try to include a few lines on your `.csproj` file to compile the TypeScript code that exists in your project folder. When you run your website, VS will try to compile these files and fail.
@@ -200,7 +200,7 @@ The final result looks like this:
Back in the `src/my-element.ts` file, you can update the `styles` property to make any styling changes. You can change the `background-color` of the `button` to white so it is more visible:
203
+
In the `src/my-element.ts` file, update the `styles` property to make any styling changes. You can change the `background-color` of the `button` to white so it is more visible:
0 commit comments