File tree Expand file tree Collapse file tree 5 files changed +3016
-2937
lines changed
Expand file tree Collapse file tree 5 files changed +3016
-2937
lines changed Original file line number Diff line number Diff line change 1- engine-strict = true
21registry = https://registry.npmjs.org/
Original file line number Diff line number Diff line change @@ -7,12 +7,24 @@ const fs = require("fs");
77const path = require ( "path" ) ;
88const util = require ( "util" ) ;
99const childProcess = require ( "child_process" ) ;
10+ const hosts = [ "excel" ] ;
11+
12+ if ( process . argv . length <= 2 ) {
13+ const hostList = hosts . map ( ( host ) => `'${ host } '` ) . join ( ", " ) ;
14+ console . log ( "SYNTAX: convertToSingleHost.js <host> <manifestType> <projectName> <appId>" ) ;
15+ console . log ( ) ;
16+ console . log ( ` host (required): Specifies which Office app will host the add-in: ${ hostList } ` ) ;
17+ console . log ( ` manifestType: Specify the type of manifest to use: 'xml' or 'json'. Defaults to 'xml'` ) ;
18+ console . log ( ` projectName: The name of the project (use quotes when there are spaces in the name). Defaults to 'My Office Add-in'` ) ;
19+ console . log ( ` appId: The id of the project or 'random' to generate one. Defaults to 'random'` ) ;
20+ console . log ( ) ;
21+ process . exit ( 1 ) ;
22+ }
1023
1124const host = process . argv [ 2 ] ;
1225const manifestType = process . argv [ 3 ] ;
1326const projectName = process . argv [ 4 ] ;
1427let appId = process . argv [ 5 ] ;
15- const hosts = [ "excel" ] ;
1628const testPackages = [
1729 "@types/mocha" ,
1830 "@types/node" ,
Original file line number Diff line number Diff line change 11{
2- "$schema" : " https://developer.microsoft.com/json-schemas/teams/vDevPreview /MicrosoftTeams.schema.json" ,
2+ "$schema" : " https://developer.microsoft.com/json-schemas/teams/v1.17 /MicrosoftTeams.schema.json" ,
33 "id" : " f2b103f1-1ab1-4e1b-8f0b-072aa3d4e19d" ,
4- "manifestVersion" : " devPreview " ,
4+ "manifestVersion" : " 1.17 " ,
55 "version" : " 1.0.0" ,
66 "name" : {
77 "short" : " Contoso Task Pane Add-in" ,
You can’t perform that action at this time.
0 commit comments