Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@apollosproject/cli

Package Overview
Dependencies
Maintainers
4
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apollosproject/cli - npm Package Compare versions

Comparing version 0.0.14 to 0.0.15

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

## [0.0.15](https://github.com/apollosproject/cli/compare/v0.0.14...v0.0.15) (2022-06-02)
### Bug Fixes
* adds android offsets and skips metadata and fixes ios beta deploys ([0604a5a](https://github.com/apollosproject/cli/commit/0604a5ae22ca4900524b90b473780d3f88c24b14))
## [0.0.14](https://github.com/apollosproject/cli/compare/v0.0.13...v0.0.14) (2022-05-19)

@@ -7,0 +14,0 @@

158

commands/deploy.js

@@ -1,9 +0,9 @@

import fs from 'fs';
import path, { dirname } from 'path';
import { fileURLToPath } from 'url';
import { execa } from 'execa';
import prompts from 'prompts';
import { Command, Argument } from 'commander';
import consola from 'consola';
import ora from 'ora';
import fs from "fs";
import path, { dirname } from "path";
import { fileURLToPath } from "url";
import { execa } from "execa";
import prompts from "prompts";
import { Command, Argument } from "commander";
import consola from "consola";
import ora from "ora";

@@ -13,17 +13,17 @@ const __dirname = dirname(fileURLToPath(import.meta.url));

export default () => {
const deploy = new Command('deploy');
deploy.description('Manage deployments');
const deploy = new Command("deploy");
deploy.description("Manage deployments");
const ios = new Command('ios');
ios.description('Manage iOS deployments');
const ios = new Command("ios");
ios.description("Manage iOS deployments");
ios
.command('init')
.description('Setup iOS deployments')
.command("init")
.description("Setup iOS deployments")
.action(async () => {
const appleIDquestion = [
{
type: 'text',
name: 'appleID',
message: 'Admin Apple Developer email?',
type: "text",
name: "appleID",
message: "Admin Apple Developer email?",
},

@@ -33,11 +33,11 @@ ];

{
type: 'confirm',
name: 'confirm',
message: 'Finished with the above commands?',
type: "confirm",
name: "confirm",
message: "Finished with the above commands?",
initial: true,
},
{
type: 'text',
name: 'certsRepo',
message: 'Private Github repo to store certificates?',
type: "text",
name: "certsRepo",
message: "Private Github repo to store certificates?",
validate: (value) =>

@@ -47,25 +47,25 @@ value.match(/^http.*/)[0] === value ? true : `Must be a valid URL!`,

{
type: 'text',
name: 'ghUser',
message: 'Github username?',
type: "text",
name: "ghUser",
message: "Github username?",
},
{
type: 'text',
name: 'ghToken',
message: 'Github personal access token?',
type: "text",
name: "ghToken",
message: "Github personal access token?",
},
{
type: 'text',
name: 'keyID',
message: 'App Store Connect API - Key ID?',
type: "text",
name: "keyID",
message: "App Store Connect API - Key ID?",
},
{
type: 'text',
name: 'issuerID',
message: 'App Store Connect API - Issuer ID?',
type: "text",
name: "issuerID",
message: "App Store Connect API - Issuer ID?",
},
{
type: 'text',
name: 'key',
message: 'App Store Connect API - P8 file?',
type: "text",
name: "key",
message: "App Store Connect API - P8 file?",
validate: (value) =>

@@ -75,10 +75,10 @@ fs.existsSync(path.normalize(value)) || "File doesn't exist!",

{
type: 'text',
name: 'teamID',
message: 'Apple Developer Team ID?',
type: "text",
name: "teamID",
message: "Apple Developer Team ID?",
},
{
type: 'text',
name: 'teamName',
message: 'Apple Developer Team Name?',
type: "text",
name: "teamName",
message: "Apple Developer Team Name?",
},

@@ -88,12 +88,11 @@ ];

consola.info(
'We use Fastlane for iOS deploys. There are some steps that cannot be automated.'
"We use Fastlane for iOS deploys. There are some steps that cannot be automated."
);
consola.info(
'Run the following commands before proceeding in a separate terminal to create the bundle identifiers:'
"Run the following commands before proceeding in a separate terminal to create the bundle identifiers:"
);
const {
stdout,
} = await execa(`${__dirname}/../scripts/display-ios-setup-commands.sh`, [
appleID,
]);
const { stdout } = await execa(
`${__dirname}/../scripts/display-ios-setup-commands.sh`,
[appleID]
);
consola.log(stdout);

@@ -115,9 +114,9 @@ const response = await prompts(questions);

const iosTrack = new Argument('[track]')
.choices(['internal', 'beta', 'production'])
.default('internal');
const iosTrack = new Argument("[track]")
.choices(["internal", "beta", "production"])
.default("internal");
ios
.command('publish')
.description('Publish app to App Store')
.command("publish")
.description("Publish app to App Store")
.addArgument(iosTrack)

@@ -129,21 +128,22 @@ .action(async (track) => {

} catch (e) {
spinner.fail('Failed');
spinner.fail("Failed");
consola.log(e.stdout);
consola.log(e.stderr);
process.exit(1);
}
spinner.succeed('Deployed!');
spinner.succeed("Deployed!");
});
const android = new Command('android');
android.description('Manage Android deployments');
const android = new Command("android");
android.description("Manage Android deployments");
android
.command('init')
.description('Setup Android deployments')
.command("init")
.description("Setup Android deployments")
.action(async () => {
const questions = [
{
type: 'text',
name: 'key',
message: 'Google Service Account Upload Key?',
type: "text",
name: "key",
message: "Google Service Account Upload Key?",
validate: (value) =>

@@ -163,3 +163,3 @@ fs.existsSync(path.normalize(value)) || "File doesn't exist!",

// we'll just leave them all as "Unknown"
child.stdin.write('\n\n\n\n\n\nyes\n');
child.stdin.write("\n\n\n\n\n\nyes\n");
child.stdin.end();

@@ -169,20 +169,28 @@ }

const androidTrack = new Argument('[track]')
.choices(['internal', 'alpha', 'beta', 'production'])
.default('internal');
const androidTrack = new Argument("[track]")
.choices(["internal", "alpha", "beta", "production"])
.default("internal");
android
.command('publish')
.description('Publish app to Google Play Store')
.command("publish")
.description("Publish app to Google Play Store")
.option(
"-o, --version-code-offset <offset>",
"Uses commits + offset for version code",
0
)
.addArgument(androidTrack)
.action(async (track) => {
.action(async (track, options) => {
const spinner = ora(`Deploying to ${track}...`).start();
try {
await execa(`${__dirname}/../scripts/deploy-android.sh`, [track]);
await execa(`${__dirname}/../scripts/deploy-android.sh`, [
track,
options.offset,
]);
} catch (e) {
spinner.fail('Failed');
spinner.fail("Failed");
consola.log(e.stdout);
process.exit(1);
}
spinner.succeed('Deployed!');
spinner.succeed("Deployed!");
});

@@ -189,0 +197,0 @@

{
"name": "@apollosproject/cli",
"version": "0.0.14",
"version": "0.0.15",
"repository": "github:apollosproject/cli",

@@ -5,0 +5,0 @@ "description": "",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc