Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change publisher id and use production version of api #10

Merged
merged 2 commits into from
Oct 29, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# VS Code MicroProfile Starter Extension

This is a VS Code extension for the MicroProfile Starter (https://start.microprofile.io/). This extension makes use of the API https://test-start.microprofile.io/api/2.
A VS Code extension for the MicroProfile Starter (https://start.microprofile.io/). The MicroProfile Starter is a community effort by the MicroProfile community. This extension is hosted under the MicroShed organization. This extension makes use of the API https://start.microprofile.io/api/2.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a different suggestion to the description of the extension.

MicroProfile Starter extension provides support for generating MicroProfile Maven project with examples
based on the Eclipse MicroProfile Starter project (https://start.microprofile.io/) by the MicroProfile 
community. You’ll be able to choose the version of MicroProfile and different specifications, such as of
CDI, Config, Health Check, Metrics, and more, for the generated example project.


## Quick Start
* Install the extension
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "mp-starter-vscode-ext",
"displayName": "MicroProfile Starter",
"description": "VS Code extension starter for Eclipse MicroProfile",
"version": "0.1.0",
"publisher": "MicroShed",
"version": "0.2.0",
"publisher": "MicroProfile-Community",
"preview": true,
"license": "EPL-2.0",
"repository": {
Expand Down
6 changes: 4 additions & 2 deletions src/util/starter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export async function generateProject(): Promise<void> {
var request = require('request');

var supportMatrixOptions = {
url: 'https://test-start.microprofile.io/api/2/supportMatrix'
url: 'https://start.microprofile.io/api/2/supportMatrix'
};

async function getSupportMatrix(error: any, response: { statusCode: number; }, body: any) {
Expand Down Expand Up @@ -152,7 +152,7 @@ export async function generateProject(): Promise<void> {
};

var options = {
url: 'https://test-start.microprofile.io/api/1/project',
url: 'https://start.microprofile.io/api/2/project',
method: 'POST',
headers: headers,
body: dataString
Expand Down Expand Up @@ -186,6 +186,8 @@ export async function generateProject(): Promise<void> {
}

await request(options, callback).pipe(fs.createWriteStream(targetDir + '/' + artifactId + '.zip'));
} else {
vscode.window.showErrorMessage(error);
}
}
request(supportMatrixOptions, getSupportMatrix);
Expand Down