Skip to content

Commit

Permalink
add support for MP32 and update version to 0.2.1 (#15)
Browse files Browse the repository at this point in the history
Signed-off-by: Kathryn Kodama <kathryn.s.kodama@gmail.com>
  • Loading branch information
kathrynkodama authored Dec 18, 2019
1 parent 2aaf74b commit ae8fd51
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ The extension prompts for the following parameters:
1. groupId
2. artifactId
3. Java SE version
4. MicroProfile server
5. MicroProfile specifications
6. A folder to generate the project into
4. MicroProfile version
5. MicroProfile server
6. MicroProfile specifications
7. A folder to generate the project into

The extension will generate a `.zip` file of the starter project, unzip the file into the specified directory and open it in a VS Code window.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "mp-starter-vscode-ext",
"displayName": "MicroProfile Starter",
"description": "VS Code extension starter for Eclipse MicroProfile",
"version": "0.2.0",
"version": "0.2.1",
"publisher": "MicroProfile-Community",
"preview": true,
"license": "EPL-2.0",
Expand Down
1 change: 1 addition & 0 deletions src/properties.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const mpVersions = {
MP32: 'version 3.2',
MP30: 'version 3.0',
MP22: 'version 2.2',
MP21: 'version 2.1',
Expand Down
6 changes: 5 additions & 1 deletion src/util/starter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,13 @@ export async function generateProject(): Promise<void> {

var mpDict = JSON.parse(body);
var mpVersions = Object.keys(mpDict.configs);

// get descriptive values of MicroProfile Versions
let mpVersionsMapped = await mapToPropertiesFile("mpVersions", mpVersions);
// if one of the versions is null, remove it from the list
let filterdArray = mpVersionsMapped.filter(x => x != null) as string[];
if (filterdArray.length !== mpVersionsMapped.length) {
mpVersionsMapped = filterdArray;
}

// prompt for groupId
const groupId: string | undefined = await vscode.window.showInputBox(Object.assign({
Expand Down

0 comments on commit ae8fd51

Please sign in to comment.