diff --git a/vscode-extensions/vscode-manifest-yaml/.vscode/tasks.json b/vscode-extensions/vscode-manifest-yaml/.vscode/tasks.json index 485f27fb0..108f5e94d 100644 --- a/vscode-extensions/vscode-manifest-yaml/.vscode/tasks.json +++ b/vscode-extensions/vscode-manifest-yaml/.vscode/tasks.json @@ -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, diff --git a/vscode-extensions/vscode-manifest-yaml/README.md b/vscode-extensions/vscode-manifest-yaml/README.md index d6a93d9d6..43adb0fd9 100644 --- a/vscode-extensions/vscode-manifest-yaml/README.md +++ b/vscode-extensions/vscode-manifest-yaml/README.md @@ -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. \ No newline at end of file +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. \ No newline at end of file diff --git a/vscode-extensions/vscode-manifest-yaml/package.json b/vscode-extensions/vscode-manifest-yaml/package.json index fe75d7603..d21b9cfaf 100644 --- a/vscode-extensions/vscode-manifest-yaml/package.json +++ b/vscode-extensions/vscode-manifest-yaml/package.json @@ -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" diff --git a/vscode-extensions/vscode-manifest-yaml/package.sh b/vscode-extensions/vscode-manifest-yaml/package.sh deleted file mode 100755 index d37b25236..000000000 --- a/vscode-extensions/vscode-manifest-yaml/package.sh +++ /dev/null @@ -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