Skip to content

Commit

Permalink
chore(developer): vscode:package dependency
Browse files Browse the repository at this point in the history
- rename the package to keyman-developer-vscode because of vscode naming rules (and private: true)
- add a step to copy the LICENSE.md file in vscode:prepublish
- add a version 18.0.0-PREALPHA to the package.json

For: #12835
  • Loading branch information
srl295 committed Dec 16, 2024
1 parent 46e544c commit 9a3ff8b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 9 deletions.
1 change: 1 addition & 0 deletions developer/src/vscode-plugin/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ node_modules
.vscode-test/
*.vsix
!.vscode
/LICENSE.md
6 changes: 6 additions & 0 deletions developer/src/vscode-plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ There is also a `build.sh` which works the usual way.

- You can use the **Developer: Reload Window** command to reload the `[extension development]` window with a new version of the plugin.

## Packaging .vsix

- `npm run vscode:package`

(Doesn't work yet.)

## License

Copyright (c) SIL Global.
Expand Down
11 changes: 7 additions & 4 deletions developer/src/vscode-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "@keymanapp/keyman-developer-vscode",
"name": "keyman-developer-vscode",
"version": "18.0.0-PREALPHA",
"displayName": "Keyman Developer for VSCode",
"description": "Plugin for compiling Keyman projects in VSCode",
"engines": {
Expand All @@ -17,13 +18,14 @@
"contributes": {
},
"scripts": {
"vscode:prepublish": "npm run compile",
"vscode:prepublish": "npm run compile && cp ../../../LICENSE.md .",
"compile": "tsc -b ./",
"watch": "tsc -watch -b ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src",
"test": "echo use 'ui-test' to run the test - TODO-LDML-EDITOR",
"ui-test": "vscode-test"
"ui-test": "vscode-test",
"vscode:package": "npx '@vscode/vsce' package"
},
"devDependencies": {
"@types/mocha": "^10.0.0",
Expand All @@ -39,5 +41,6 @@
"@keymanapp/kmc-kmn": "*",
"@keymanapp/kmc-ldml": "*",
"@keymanapp/kmc-package": "*"
}
},
"private": "true"
}
11 changes: 6 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9a3ff8b

Please sign in to comment.