File tree Expand file tree Collapse file tree 2 files changed +37
-2
lines changed
Expand file tree Collapse file tree 2 files changed +37
-2
lines changed Original file line number Diff line number Diff line change 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" : {
238270 }
239271 },
240272 "hostTypes" : {
273+ "wxpo" : {
274+ "displayname" : " All"
275+ },
241276 "excel" : {
242277 "displayname" : " Excel"
243278 },
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments