File tree 2 files changed +22
-8
lines changed
2 files changed +22
-8
lines changed Original file line number Diff line number Diff line change @@ -42,14 +42,6 @@ git remote add upstream https://github.com/microsoft/vscode-webview-ui-toolkit-s
42
42
git fetch upstream main
43
43
```
44
44
45
- ### Install dependencies
46
-
47
- Install the project dependencies.
48
-
49
- ```
50
- npm install
51
- ```
52
-
53
45
### Create a branch
54
46
55
47
Create a branch for local development. Once that is complete, you can start making your changes locally.
Original file line number Diff line number Diff line change @@ -11,6 +11,28 @@ const execShellCommand = util.promisify(exec);
11
11
*
12
12
* Run `node scripts/update-toolkit-package.js` from the root directory
13
13
* of this repository.
14
+ *
15
+ * Updating the script:
16
+ *
17
+ * To update this script to include a new directory, add a new call to the
18
+ * `installLatestToolkitPackage` function within the `main` function below.
19
+ *
20
+ * Rule of thumb:
21
+ *
22
+ * You should probably only update this script if new samples are being created
23
+ * using a new web framework (this should be rare).
24
+ *
25
+ * If that is the case, however, a root level directory should have been added
26
+ * with the name of the web framework. The extension architecture should have
27
+ * also followed the conventions of other extensions––meaning the `@vscode/webview-ui-toolkit`
28
+ * package should be installed within a `webview-ui` directory.
29
+ *
30
+ * Assuming all of the above holds true, you should be able to simply update this
31
+ * script by including a new call to the `installLatestToolkitPackage` function
32
+ * with the following syntax:
33
+ *
34
+ * `await installLatestToolkitPackage('name-of-framework-dir', 'webview-ui');`
35
+ *
14
36
*/
15
37
async function main ( ) {
16
38
console . log ( 'Updating toolkit package to latest version...' ) ;
You can’t perform that action at this time.
0 commit comments