Comparing version 0.2.0-alpha.38 to 0.2.0-alpha.39
@@ -6,2 +6,10 @@ # Change Log | ||
# 0.2.0-alpha.39 (2021-11-29) | ||
**Note:** Version bump only for package quip-cli | ||
# 0.2.0-alpha.38 (2021-11-18) | ||
@@ -8,0 +16,0 @@ |
@@ -43,3 +43,3 @@ "use strict"; | ||
} | ||
files.forEach(matcher => { | ||
files.forEach((matcher) => { | ||
if (types_1.isMigration(matcher)) { | ||
@@ -73,8 +73,10 @@ addToFiles(matcher.js_file, source); | ||
if (missing.size > 0) { | ||
print_1.println(chalk_1.default `{red WARNING: the following files were defined in your manifest, but were not found.} | ||
print_1.println(chalk_1.default `{yellow WARNING: the following files were defined in your manifest, but were not found.} | ||
{red This bundle may be incomplete, you should include these files or remove them from your manifest.}`); | ||
for (let [source, files] of missing) { | ||
print_1.println(chalk_1.default `{red === ${source} ===}`); | ||
files.forEach(f => print_1.println(chalk_1.default `{red ${f}}`)); | ||
files.forEach((f) => print_1.println(chalk_1.default `{red ${f}}`)); | ||
} | ||
print_1.println(chalk_1.default `{yellow Note: You can’t publish a live app without compiling it first. Compile the live app by using \`npm run build\` then try publishing again.}`); | ||
return null; | ||
} | ||
@@ -86,6 +88,3 @@ const files = await Promise.all(bundle.map(async (name) => { | ||
fileBuffer, | ||
crypto_1.default | ||
.createHash("md5") | ||
.update(fileBuffer) | ||
.digest("hex"), | ||
crypto_1.default.createHash("md5").update(fileBuffer).digest("hex"), | ||
]; | ||
@@ -116,2 +115,3 @@ })); | ||
async run() { | ||
var _a; | ||
const { args, flags } = this.parse(Publish); | ||
@@ -127,2 +127,8 @@ const manifestPath = await manifest_1.findManifest(process.cwd()); | ||
print_1.println(chalk_1.default `{magenta Successfully published ${manifest.name} v${manifest.version_name} (${manifest.version_number})}`); | ||
let entryJsFile = "dist/app.js"; | ||
if (((_a = manifest.js_files) === null || _a === void 0 ? void 0 : _a.length) === 1) { | ||
entryJsFile = manifest.js_files[0]; | ||
} | ||
const entryJsPath = path_1.default.join(process.cwd(), entryJsFile); | ||
fs_1.default.existsSync(entryJsPath) && fs_1.default.unlinkSync(entryJsPath); | ||
} | ||
@@ -132,3 +138,3 @@ } | ||
if (!flags.json) { | ||
print_1.println(chalk_1.default `{red Publishing failed.}`); | ||
print_1.println(chalk_1.default `{red \nPublishing failed.}`); | ||
} | ||
@@ -135,0 +141,0 @@ process.exit(1); |
@@ -1,1 +0,1 @@ | ||
{"version":"0.2.0-alpha.38","commands":{"apps":{"id":"apps","description":"Browse, inspect, and manipulate your Apps","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"site":{"name":"site","type":"option","char":"s","description":"use a specific quip site rather than the standard quip.com login","default":"quip.com"},"id":{"name":"id","type":"option","char":"i","description":"show the details of an app ID"},"version":{"name":"version","type":"option","char":"v","description":"which version to show the details for. Only useful with --id"},"json":{"name":"json","type":"boolean","char":"j","description":"output responses in JSON","allowNo":false},"config":{"name":"config","type":"option","description":"Use a custom config file (default ~/.quiprc)","hidden":true,"default":"/home/runner/.quiprc"}},"args":[]},"bump":{"id":"bump","description":"Bump the application version (and create a version commit/tag)","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"message":{"name":"message","type":"option","char":"m","description":"Specify a commit message to use as the version commit message"},"version-number":{"name":"version-number","type":"option","char":"v","description":"Bump the version to a specific number rather than just incrementing to the next integer"},"prerelease-name":{"name":"prerelease-name","type":"option","char":"p","description":"When specifying prerelease, use this as the prefix, e.g. -p alpha will produce v0.x.x-alpha.x"},"no-git":{"name":"no-git","type":"boolean","char":"n","description":"Don't perform git operations even when available (just makes changes inline)","allowNo":false}},"args":[{"name":"increment","description":"which number to bump - can be one of 'prerelease', 'major', 'minor', 'patch', or 'none' - defaults to 'none'","default":"none"}]},"init":{"id":"init","description":"Initialize a new Live App Project","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"dry-run":{"name":"dry-run","type":"boolean","char":"d","description":"Print what this would do, but don't create any files.","hidden":true,"allowNo":false},"no-create":{"name":"no-create","type":"boolean","description":"only create a local app (don't create an app in the dev console or assign an ID)","allowNo":false},"no-release":{"name":"no-release","type":"boolean","description":"don't release the initial version (leave app uninstallable and in the \"unreleased\" state)","allowNo":false},"dir":{"name":"dir","type":"option","char":"d","description":"specify directory to create app in (defaults to the name provided)"},"site":{"name":"site","type":"option","char":"s","description":"use a specific quip site rather than the standard quip.com login","default":"quip.com"},"json":{"name":"json","type":"boolean","char":"j","description":"output responses in JSON (must provide --name and --id)","allowNo":false},"name":{"name":"name","type":"option","char":"n","description":"set the name of the application"},"id":{"name":"id","type":"option","char":"i","description":"set the ID of the application"},"config":{"name":"config","type":"option","description":"Use a custom config file (default ~/.quiprc)","hidden":true,"default":"/home/runner/.quiprc"}},"args":[]},"login":{"id":"login","description":"Logs in to Quip and stores credentials in the .quiprc file","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"force":{"name":"force","type":"boolean","char":"f","description":"forces a re-login even if a user is currently logged in","allowNo":false},"site":{"name":"site","type":"option","char":"s","description":"use a specific quip site rather than the standard quip.com login","default":"quip.com"},"with-token":{"name":"with-token","type":"option","char":"t","description":"log in users with your specified access token instead of redirecting to a login page.\nSEE ALSO: https://quip.com/dev/automation/documentation/current#tag/Authentication","helpValue":"token"},"export":{"name":"export","type":"boolean","char":"e","description":"Get a new access token with login, then display the token in the terminal without storing it in the config file.\nNote: You can’t use both the `--export` and `--with-token` options in the same command.","allowNo":false},"port":{"name":"port","type":"option","description":"Use a custom port for the OAuth redirect server (defaults to 9898)","hidden":true,"default":9898},"hostname":{"name":"hostname","type":"option","description":"Use a custom hostname for the OAuth redirect server (defaults to 127.0.0.1)","hidden":true,"default":"127.0.0.1"},"config":{"name":"config","type":"option","description":"Use a custom config file (default ~/.quiprc)","hidden":true,"default":"/home/runner/.quiprc"}},"args":[]},"migration":{"id":"migration","description":"Creates a new migration","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"folder":{"name":"folder","type":"option","char":"f","description":"The folder where your migrations are stored","default":"migrations"},"version":{"name":"version","type":"option","char":"v","description":"The version to generate this migration for. By default, it will use the current version_number in the manifest"},"dry-run":{"name":"dry-run","type":"boolean","char":"d","description":"Print what this would do, but don't create any files.","allowNo":false},"manifest":{"name":"manifest","type":"option","char":"m","description":"A manifest.json file to add the migration to. By default, we'll use the first one we find.","hidden":true}},"args":[{"name":"name","description":"A short description to generate the filename with"}]},"publish":{"id":"publish","description":"Uploads this bundle to the developer console, and sets it as the latest development version.","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"json":{"name":"json","type":"boolean","char":"j","description":"output responses in JSON","allowNo":false},"ignore":{"name":"ignore","type":"option","char":"i","description":"blob to ignore. Defaults to 'node_modules'","default":"node_modules"},"site":{"name":"site","type":"option","char":"s","description":"use a specific quip site rather than the standard quip.com login","default":"quip.com"},"config":{"name":"config","type":"option","description":"Use a custom config file (default ~/.quiprc)","hidden":true,"default":"/home/runner/.quiprc"}},"args":[]},"release":{"id":"release","description":"Release an app to Beta or Production","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"site":{"name":"site","type":"option","char":"s","description":"use a specific quip site rather than the standard quip.com login","default":"quip.com"},"beta":{"name":"beta","type":"boolean","char":"b","description":"release beta version","allowNo":false},"prod":{"name":"prod","type":"boolean","char":"p","description":"release production version","allowNo":false},"major-changes":{"name":"major-changes","type":"option","description":"First party only: required when using --prod. Pass either YES or NO to indicate if this build contains major security, availability, or confidentiality changes","hidden":true,"helpValue":"(YES|NO)","options":["YES","NO"]},"json":{"name":"json","type":"boolean","char":"j","description":"output responses in JSON","allowNo":false},"config":{"name":"config","type":"option","description":"use a custom config file (default ~/.quiprc)","hidden":true,"default":"/home/runner/.quiprc"}},"args":[{"name":"build","description":"the build number to release"}]}}} | ||
{"version":"0.2.0-alpha.39","commands":{"apps":{"id":"apps","description":"Browse, inspect, and manipulate your Apps","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"site":{"name":"site","type":"option","char":"s","description":"use a specific quip site rather than the standard quip.com login","default":"quip.com"},"id":{"name":"id","type":"option","char":"i","description":"show the details of an app ID"},"version":{"name":"version","type":"option","char":"v","description":"which version to show the details for. Only useful with --id"},"json":{"name":"json","type":"boolean","char":"j","description":"output responses in JSON","allowNo":false},"config":{"name":"config","type":"option","description":"Use a custom config file (default ~/.quiprc)","hidden":true,"default":"/home/runner/.quiprc"}},"args":[]},"bump":{"id":"bump","description":"Bump the application version (and create a version commit/tag)","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"message":{"name":"message","type":"option","char":"m","description":"Specify a commit message to use as the version commit message"},"version-number":{"name":"version-number","type":"option","char":"v","description":"Bump the version to a specific number rather than just incrementing to the next integer"},"prerelease-name":{"name":"prerelease-name","type":"option","char":"p","description":"When specifying prerelease, use this as the prefix, e.g. -p alpha will produce v0.x.x-alpha.x"},"no-git":{"name":"no-git","type":"boolean","char":"n","description":"Don't perform git operations even when available (just makes changes inline)","allowNo":false}},"args":[{"name":"increment","description":"which number to bump - can be one of 'prerelease', 'major', 'minor', 'patch', or 'none' - defaults to 'none'","default":"none"}]},"init":{"id":"init","description":"Initialize a new Live App Project","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"dry-run":{"name":"dry-run","type":"boolean","char":"d","description":"Print what this would do, but don't create any files.","hidden":true,"allowNo":false},"no-create":{"name":"no-create","type":"boolean","description":"only create a local app (don't create an app in the dev console or assign an ID)","allowNo":false},"no-release":{"name":"no-release","type":"boolean","description":"don't release the initial version (leave app uninstallable and in the \"unreleased\" state)","allowNo":false},"dir":{"name":"dir","type":"option","char":"d","description":"specify directory to create app in (defaults to the name provided)"},"site":{"name":"site","type":"option","char":"s","description":"use a specific quip site rather than the standard quip.com login","default":"quip.com"},"json":{"name":"json","type":"boolean","char":"j","description":"output responses in JSON (must provide --name and --id)","allowNo":false},"name":{"name":"name","type":"option","char":"n","description":"set the name of the application"},"id":{"name":"id","type":"option","char":"i","description":"set the ID of the application"},"config":{"name":"config","type":"option","description":"Use a custom config file (default ~/.quiprc)","hidden":true,"default":"/home/runner/.quiprc"}},"args":[]},"login":{"id":"login","description":"Logs in to Quip and stores credentials in the .quiprc file","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"force":{"name":"force","type":"boolean","char":"f","description":"forces a re-login even if a user is currently logged in","allowNo":false},"site":{"name":"site","type":"option","char":"s","description":"use a specific quip site rather than the standard quip.com login","default":"quip.com"},"with-token":{"name":"with-token","type":"option","char":"t","description":"log in users with your specified access token instead of redirecting to a login page.\nSEE ALSO: https://quip.com/dev/automation/documentation/current#tag/Authentication","helpValue":"token"},"export":{"name":"export","type":"boolean","char":"e","description":"Get a new access token with login, then display the token in the terminal without storing it in the config file.\nNote: You can’t use both the `--export` and `--with-token` options in the same command.","allowNo":false},"port":{"name":"port","type":"option","description":"Use a custom port for the OAuth redirect server (defaults to 9898)","hidden":true,"default":9898},"hostname":{"name":"hostname","type":"option","description":"Use a custom hostname for the OAuth redirect server (defaults to 127.0.0.1)","hidden":true,"default":"127.0.0.1"},"config":{"name":"config","type":"option","description":"Use a custom config file (default ~/.quiprc)","hidden":true,"default":"/home/runner/.quiprc"}},"args":[]},"migration":{"id":"migration","description":"Creates a new migration","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"folder":{"name":"folder","type":"option","char":"f","description":"The folder where your migrations are stored","default":"migrations"},"version":{"name":"version","type":"option","char":"v","description":"The version to generate this migration for. By default, it will use the current version_number in the manifest"},"dry-run":{"name":"dry-run","type":"boolean","char":"d","description":"Print what this would do, but don't create any files.","allowNo":false},"manifest":{"name":"manifest","type":"option","char":"m","description":"A manifest.json file to add the migration to. By default, we'll use the first one we find.","hidden":true}},"args":[{"name":"name","description":"A short description to generate the filename with"}]},"publish":{"id":"publish","description":"Uploads this bundle to the developer console, and sets it as the latest development version.","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"json":{"name":"json","type":"boolean","char":"j","description":"output responses in JSON","allowNo":false},"ignore":{"name":"ignore","type":"option","char":"i","description":"blob to ignore. Defaults to 'node_modules'","default":"node_modules"},"site":{"name":"site","type":"option","char":"s","description":"use a specific quip site rather than the standard quip.com login","default":"quip.com"},"config":{"name":"config","type":"option","description":"Use a custom config file (default ~/.quiprc)","hidden":true,"default":"/home/runner/.quiprc"}},"args":[]},"release":{"id":"release","description":"Release an app to Beta or Production","pluginName":"quip-cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"site":{"name":"site","type":"option","char":"s","description":"use a specific quip site rather than the standard quip.com login","default":"quip.com"},"beta":{"name":"beta","type":"boolean","char":"b","description":"release beta version","allowNo":false},"prod":{"name":"prod","type":"boolean","char":"p","description":"release production version","allowNo":false},"major-changes":{"name":"major-changes","type":"option","description":"First party only: required when using --prod. Pass either YES or NO to indicate if this build contains major security, availability, or confidentiality changes","hidden":true,"helpValue":"(YES|NO)","options":["YES","NO"]},"json":{"name":"json","type":"boolean","char":"j","description":"output responses in JSON","allowNo":false},"config":{"name":"config","type":"option","description":"use a custom config file (default ~/.quiprc)","hidden":true,"default":"/home/runner/.quiprc"}},"args":[{"name":"build","description":"the build number to release"}]}}} |
{ | ||
"name": "quip-cli", | ||
"description": "A Command Line Interface for the Quip Live Apps platform", | ||
"version": "0.2.0-alpha.38", | ||
"version": "0.2.0-alpha.39", | ||
"author": "Quip", | ||
@@ -92,3 +92,3 @@ "bin": { | ||
"types": "lib/index.d.ts", | ||
"gitHead": "4a868afbcbff266f0a2202baa4134d5959616799" | ||
"gitHead": "2aa9e8dd72edd0027953de13836e05d48832298f" | ||
} |
@@ -24,3 +24,3 @@ # Quip CLI | ||
$ quip-cli (-v|--version|version) | ||
quip-cli/0.2.0-alpha.37 darwin-x64 node-v14.18.1 | ||
quip-cli/0.2.0-alpha.38 darwin-x64 node-v14.18.1 | ||
$ quip-cli --help [COMMAND] | ||
@@ -61,3 +61,3 @@ USAGE | ||
_See code: [src/commands/apps.ts](https://github.com/quip/quip-apps/blob/v0.2.0-alpha.37/src/commands/apps.ts)_ | ||
_See code: [src/commands/apps.ts](https://github.com/quip/quip-apps/blob/v0.2.0-alpha.38/src/commands/apps.ts)_ | ||
@@ -88,3 +88,3 @@ ## `quip-cli bump [INCREMENT]` | ||
_See code: [src/commands/bump.ts](https://github.com/quip/quip-apps/blob/v0.2.0-alpha.37/src/commands/bump.ts)_ | ||
_See code: [src/commands/bump.ts](https://github.com/quip/quip-apps/blob/v0.2.0-alpha.38/src/commands/bump.ts)_ | ||
@@ -127,3 +127,3 @@ ## `quip-cli help [COMMAND]` | ||
_See code: [src/commands/init.ts](https://github.com/quip/quip-apps/blob/v0.2.0-alpha.37/src/commands/init.ts)_ | ||
_See code: [src/commands/init.ts](https://github.com/quip/quip-apps/blob/v0.2.0-alpha.38/src/commands/init.ts)_ | ||
@@ -153,3 +153,3 @@ ## `quip-cli login` | ||
_See code: [src/commands/login.ts](https://github.com/quip/quip-apps/blob/v0.2.0-alpha.37/src/commands/login.ts)_ | ||
_See code: [src/commands/login.ts](https://github.com/quip/quip-apps/blob/v0.2.0-alpha.38/src/commands/login.ts)_ | ||
@@ -176,3 +176,3 @@ ## `quip-cli migration [NAME]` | ||
_See code: [src/commands/migration.ts](https://github.com/quip/quip-apps/blob/v0.2.0-alpha.37/src/commands/migration.ts)_ | ||
_See code: [src/commands/migration.ts](https://github.com/quip/quip-apps/blob/v0.2.0-alpha.38/src/commands/migration.ts)_ | ||
@@ -194,3 +194,3 @@ ## `quip-cli publish` | ||
_See code: [src/commands/publish.ts](https://github.com/quip/quip-apps/blob/v0.2.0-alpha.37/src/commands/publish.ts)_ | ||
_See code: [src/commands/publish.ts](https://github.com/quip/quip-apps/blob/v0.2.0-alpha.38/src/commands/publish.ts)_ | ||
@@ -216,3 +216,3 @@ ## `quip-cli release [BUILD]` | ||
_See code: [src/commands/release.ts](https://github.com/quip/quip-apps/blob/v0.2.0-alpha.37/src/commands/release.ts)_ | ||
_See code: [src/commands/release.ts](https://github.com/quip/quip-apps/blob/v0.2.0-alpha.38/src/commands/release.ts)_ | ||
<!-- commandsstop --> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
140757
2404