Skip to content

Commit 00f9867

Browse files
authored
Merge pull request #854 from OfficeDev/user/millerds/add-wxp-json-preview
All creation of a project using the WXP json manifest support preview
2 parents b75e1b4 + e042f96 commit 00f9867

File tree

2 files changed

+37
-2
lines changed

2 files changed

+37
-2
lines changed

src/app/config/projectProperties.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,38 @@
4646
}
4747
}
4848
},
49+
"taskpane-preview": {
50+
"displayname": "Office Add-in Task Pane project (preview)",
51+
"templates": {
52+
"typescript": {
53+
"repository": "https://github.com/OfficeDev/Office-Addin-TaskPane",
54+
"prerelease": "json-wxpo-preview",
55+
"branch": "json-wxpo-preview"
56+
}
57+
},
58+
"supportedHosts": {
59+
"All": {
60+
"supportedManifestTypes": [
61+
"json"
62+
]
63+
},
64+
"Excel": {
65+
"supportedManifestTypes": [
66+
"json"
67+
]
68+
},
69+
"Powerpoint": {
70+
"supportedManifestTypes": [
71+
"json"
72+
]
73+
},
74+
"Word": {
75+
"supportedManifestTypes": [
76+
"json"
77+
]
78+
}
79+
}
80+
},
4981
"react": {
5082
"displayname": "Office Add-in Task Pane project using React framework",
5183
"templates": {
@@ -238,6 +270,9 @@
238270
}
239271
},
240272
"hostTypes": {
273+
"wxpo": {
274+
"displayname": "All"
275+
},
241276
"excel": {
242277
"displayname": "Excel"
243278
},

src/app/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ module.exports = class extends yo {
337337
this.project.projectInternalName = _.kebabCase(this.project.name);
338338
this.project.projectDisplayName = this.project.name;
339339
this.project.projectId = uuidv4();
340-
this.project.hostInternalName = this.project.host;
340+
this.project.hostInternalName = this.project.host == "All" ? "wxpo" : this.project.host;
341341

342342
this.destinationRoot(this.project.folder);
343343
process.chdir(this.destinationRoot());
@@ -403,7 +403,7 @@ module.exports = class extends yo {
403403
}
404404

405405
if (!this.project.isManifestOnly) {
406-
if (this.project.host === "Excel" || this.project.host === "Word" || this.project.host === "Powerpoint" || this.project.host === "Outlook") {
406+
if (this.project.host === "Excel" || this.project.host === "Word" || this.project.host === "Powerpoint" || this.project.host === "Outlook" || this.project.host === "All") {
407407
this.log(` ${stepNumber++}. Start the local web server and sideload the add-in:\n`);
408408
this.log(` ${chalk.bold('npm start')}\n`);
409409
} else {

0 commit comments

Comments
 (0)