diff --git a/samples/sqlservices/README.md b/samples/sqlservices/README.md index 3a5c44bb9f..714bb91810 100644 --- a/samples/sqlservices/README.md +++ b/samples/sqlservices/README.md @@ -1 +1,7 @@ -This is a sample extension that will show some basic model-backed UI scenarios. The long-term goal is to use SQL Service querying (e.g. see if Agent and other services are running) and visualize in interesting ways. Additional suggestions for improving this sample are welcome. \ No newline at end of file +This is a sample extension that will show some basic model-backed UI scenarios. The long-term goal is to use SQL Service querying (e.g. see if Agent and other services are running) and visualize in interesting ways. Additional suggestions for improving this sample are welcome. + +## Useful development commands +- Download `sqlops` API typings for local development: `gulp copytypings` +- Install dependencies: `npm install` +- Compile: `gulp compile` or `gulp watch` to automatically recompile changes +- Package: `gulp package`. The packaged .vsix will be placed at `out/sqlservices.vsix`. diff --git a/samples/sqlservices/package.json b/samples/sqlservices/package.json index 1e7af7ce74..2c0b52cde7 100644 --- a/samples/sqlservices/package.json +++ b/samples/sqlservices/package.json @@ -99,5 +99,9 @@ "vscode": "^1.1.14", "@types/handlebars": "^4.0.11", "vsce": "1.36.2" + }, + "repository": { + "type": "git", + "url": "https://github.com/Microsoft/sqlopsstudio/tree/master/samples/sqlservices" } } diff --git a/samples/sqlservices/src/controllers/button.html b/samples/sqlservices/src/controllers/button.html index f7185f4d9a..2018711f45 100644 --- a/samples/sqlservices/src/controllers/button.html +++ b/samples/sqlservices/src/controllers/button.html @@ -10,8 +10,9 @@
diff --git a/samples/sqlservices/tasks/packagetasks.js b/samples/sqlservices/tasks/packagetasks.js index 56eab4b8ea..5d27dca7f5 100644 --- a/samples/sqlservices/tasks/packagetasks.js +++ b/samples/sqlservices/tasks/packagetasks.js @@ -34,3 +34,7 @@ let buildPackage = function(packageName) { console.log(command); return exec(command); }; + +gulp.task('package', async () => { + await buildPackage('out/sqlservices.vsix'); +}); \ No newline at end of file