Skip to content

Commit ea157b2

Browse files
committed
Merge branch 'master' into yo-office
2 parents c651be2 + ad5fc85 commit ea157b2

File tree

5 files changed

+3016
-2937
lines changed

5 files changed

+3016
-2937
lines changed

.npmrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
engine-strict=true
21
registry=https://registry.npmjs.org/

convertToSingleHost.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,24 @@ const fs = require("fs");
77
const path = require("path");
88
const util = require("util");
99
const 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

1124
const host = process.argv[2];
1225
const manifestType = process.argv[3];
1326
const projectName = process.argv[4];
1427
let appId = process.argv[5];
15-
const hosts = ["excel"];
1628
const testPackages = [
1729
"@types/mocha",
1830
"@types/node",

manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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",

0 commit comments

Comments
 (0)