Fix it so typescript compiler runs prior to launching in vscode.
This commit is contained in:
@@ -17,10 +17,10 @@
|
||||
"isShellCommand": true,
|
||||
|
||||
// show the output window only if unrecognized errors occur.
|
||||
"showOutput": "silent",
|
||||
"showOutput": "always",
|
||||
|
||||
// we run the custom script "compile" as defined in package.json
|
||||
"args": ["compile"],
|
||||
"args": ["run", "compile"],
|
||||
|
||||
// The tsc compiler is started in watching mode
|
||||
"isWatching": true,
|
||||
|
||||
@@ -47,5 +47,12 @@ client from vscode without rebuilding the fatjar.
|
||||
|
||||
## Packaging as a vscode extension
|
||||
|
||||
Run the `package.sh` script. This will produce a `.vsix` file that can
|
||||
be directly installed into vscode.
|
||||
First make sure the stuff is all built locally:
|
||||
|
||||
npm install
|
||||
|
||||
Then package it:
|
||||
|
||||
npm run vsce-package
|
||||
|
||||
This produces a `.vsix` file which you can install directly into vscode.
|
||||
@@ -19,7 +19,9 @@
|
||||
"Linters"
|
||||
],
|
||||
"keywords": [
|
||||
"yaml", "cloudfoundry", "manifest.yml"
|
||||
"yaml",
|
||||
"cloudfoundry",
|
||||
"manifest.yml"
|
||||
],
|
||||
"activationEvents": [
|
||||
"onLanguage:yaml"
|
||||
@@ -41,16 +43,18 @@
|
||||
"preview": true,
|
||||
"scripts": {
|
||||
"prepublish": "tsc -p .",
|
||||
"clean": "rm -fr node_modules",
|
||||
"clean": "rm -fr node_modules out *.vsix",
|
||||
"compile": "tsc -watch -p ./",
|
||||
"preinstall": "(cd ../commons-vscode ; npm install) && npm install ../commons-vscode && ../mvnw -f ../pom.xml -pl vscode-manifest-yaml -am clean package",
|
||||
"postinstall": "node ./node_modules/vscode/bin/install"
|
||||
"postinstall": "node ./node_modules/vscode/bin/install",
|
||||
"vsce-package": "vsce package"
|
||||
},
|
||||
"dependencies": {
|
||||
"portfinder": "^0.4.0",
|
||||
"vscode-languageclient": "2.5.x"
|
||||
},
|
||||
"devDependencies": {
|
||||
"vsce": "^1.17.0",
|
||||
"typescript": "^2.0.x",
|
||||
"@types/node": "^6.0.40",
|
||||
"vscode": "^1.0.0"
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
## run this script to package up this extension using vsce tool.
|
||||
## This assumes you have vsce tool installed.
|
||||
## You can install it via npm
|
||||
|
||||
set -e # fail at the first sign of trouble
|
||||
|
||||
mvn -f ../pom.xml -pl vscode-manifest-yaml -am clean package
|
||||
npm install
|
||||
vsce package
|
||||
Reference in New Issue
Block a user