Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update what can be updated #162

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15,186 changes: 10,694 additions & 4,492 deletions package-lock.json

Large diffs are not rendered by default.

35 changes: 16 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shoutem/cli",
"version": "0.14.5-rc.0",
"version": "0.14.5-rc.3",
"description": "Command-line tools for Shoutem applications",
"repository": {
"type": "git",
Expand All @@ -19,16 +19,16 @@
},
"license": "ISC",
"dependencies": {
"@babel/eslint-parser": "7.16.3",
"@babel/preset-react": "7.16.0",
"@babel/core": "7.16.0",
"@babel/eslint-parser": "7.22.10",
"@babel/preset-react": "7.22.5",
"@babel/core": "7.22.10",
"@babel/plugin-proposal-object-rest-spread": "7.20.7",
"@babel/preset-env": "7.22.10",
"@babel/register": "7.22.5",
"@shoutem/eslint-config-base": "^1.0.2",
"@shoutem/fetch-token-intercept": "0.3.0",
"@shoutem/fork-terminal": "1.0.0",
"async": "2.0.0-rc.3",
"babel-plugin-transform-object-rest-spread": "6.22.0",
"babel-preset-env": "^1.6.0",
"babel-register": "6.24.0",
"bluebird": "3.4.6",
"child-process-promise": "2.2.0",
"cli-spinner": "0.2.6",
Expand All @@ -37,7 +37,6 @@
"decamelize": "^1.2.0",
"decompress": "4.2.1",
"diff": "^3.3.1",
"download-cached": "1.0.8",
"download-file": "latest",
"eslint": "^7.5.0",
"eslint-plugin-import": "^2.24.2",
Expand All @@ -51,16 +50,15 @@
"fetch-everywhere": "1.0.5",
"form-data": "2.1.4",
"fs-extra": "3.0.1",
"glob-promise": "3.1.0",
"glob-promise": "6.0.3",
"inquirer": "1.0.3",
"ip": "1.1.5",
"json-stringify-safe": "5.0.1",
"jsonapi-serializer": "3.5.3",
"linklocal": "^2.8.1",
"lodash": "4.17.21",
"lodash-get-or-set": "^1.0.2",
"mkdirp": "0.5.1",
"mkdirp-promise": "3.0.1",
"mkdirp": "3.0.1",
"mustache": "2.2.1",
"mv": "2.1.1",
"opn": "^5.1.0",
Expand All @@ -73,18 +71,18 @@
"semver": "5.3.0",
"slugify": "^1.2.1",
"streamsearch": "0.1.2",
"tar.gz": "1.0.2",
"tar": "6.1.15",
"tmp-promise": "1.0.2",
"universal-analytics": "0.4.13",
"uppercamelcase": "^3.0.0",
"urijs": "1.19.11",
"uuid": "3.0.1",
"uuid": "9.0.0",
"yargonaut": "1.1.2",
"yargs": "6.6.0"
},
"devDependencies": {
"babel-cli": "6.8.0",
"babel-plugin-rewire": "1.0.0-rc-2",
"@babel/cli": "7.22.10",
"babel-plugin-rewire": "1.2.0",
"chai": "3.5.0",
"dos2unix-cli": "1.0.1",
"mocha": "2.4.5",
Expand All @@ -95,7 +93,7 @@
"babel": {
"presets": [
[
"env",
"@babel/env",
{
"targets": {
"node": "current"
Expand All @@ -104,11 +102,10 @@
]
],
"plugins": [
"transform-object-rest-spread"
"@babel/plugin-proposal-object-rest-spread"
],
"only": [
"config",
"src"
"./src"
]
}
}
2 changes: 1 addition & 1 deletion src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'colors';
import 'fetch-everywhere';
import yargs from 'yargs';
import { version } from '../package.json';
import apiUrls from '../config/services';
import apiUrls from './config/services';
import autoUpdate from './commands/update-cli';
import * as analytics from './services/analytics';
import { isAscii, containsSpace } from './services/validation';
Expand Down
2 changes: 1 addition & 1 deletion src/cli/builder.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import opn from 'opn';
import services from '../../config/services';
import services from '../config/services';
import { getPlatformConfig } from '../services/platform';
import { executeAndHandleError } from '../services/error-handler';

Expand Down
2 changes: 1 addition & 1 deletion src/cli/install.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import services from '../../config/services';
import services from '../config/services';
import {
createNewApp,
ensureApp,
Expand Down
2 changes: 1 addition & 1 deletion src/clients/app-manager.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import URI from 'urijs';
import * as jsonApi from './json-api-client';
import { appManager } from '../../config/services';
import { appManager } from '../config/services';

const appManagerUri = new URI(appManager);

Expand Down
2 changes: 1 addition & 1 deletion src/clients/auth-service.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import URI from 'urijs';
import { post } from './json-api-client';
import services from '../../config/services';
import services from '../config/services';
import * as cache from '../services/cache-env';
import * as logger from '../services/logger';

Expand Down
5 changes: 2 additions & 3 deletions src/clients/cli-paths.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import mkdirp from 'mkdirp-promise';
import { sync as mkdirpSync } from 'mkdirp';
import { mkdirp } from 'mkdirp';
import getHomeDir from '../home-dir';

export async function getLocalStoragePath() {
Expand All @@ -10,6 +9,6 @@ export async function getLocalStoragePath() {

export function getLocalStoragePathSync() {
const storagePath = getHomeDir();
mkdirpSync(storagePath);
mkdirp.sync(storagePath);
return storagePath;
}
2 changes: 1 addition & 1 deletion src/clients/extension-manager.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import URI from 'urijs';
import { extensionManager } from '../../config/services';
import { extensionManager } from '../config/services';
import { listenStream } from '../services/stream-listener';
import * as jsonApi from './json-api-client';
import FormData from 'form-data';
Expand Down
2 changes: 1 addition & 1 deletion src/clients/legacy-service.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import URI from 'urijs';
import { legacyService } from '../../config/services';
import { legacyService } from '../config/services';
import * as jsonApi from './json-api-client';
import * as logger from '../services/logger';

Expand Down
2 changes: 1 addition & 1 deletion src/commands/clone.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Promise from 'bluebird';
import _ from 'lodash';
import mkdirp from 'mkdirp-promise';
import { mkdirp } from 'mkdirp';
import tmp from 'tmp-promise';
import rmrf from 'rmfr';
import path from 'path';
Expand Down
4 changes: 3 additions & 1 deletion src/commands/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import _ from 'lodash';
import { authorizeRequests, getRefreshToken } from '../clients/auth-service';
import { getDeveloper, createDeveloper } from '../clients/extension-manager';
import msg from '../user_messages';
import urls from '../../config/services';
import urls from '../config/services';
import * as logger from '../services/logger';
import * as cache from '../services/cache-env';

Expand Down Expand Up @@ -104,6 +104,8 @@ export async function loginUser(args) {
...developer,
email: credentials.email,
});

return developer;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/commands/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import path from 'path';

import _ from 'lodash';
import async from 'async';
import mkdirp from 'mkdirp';
import { mkdirp } from 'mkdirp';

import {
loadExtensionJsonCallback,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/show.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getHostEnvName } from '../clients/server-env';
import apisConfig from '../../config/services';
import apisConfig from '../config/services';
import msg from '../user_messages';
import { getValue } from '../services/cache-env';
import getHomeDir from '../home-dir';
Expand Down
2 changes: 1 addition & 1 deletion src/commands/update-cli.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { isLatest } from '../services/npmjs';
import apiUrls from '../../config/services';
import apiUrls from '../config/services';
import msg from '../user_messages';
import { spawn } from 'child-process-promise';
import { version } from '../../package.json';
Expand Down
2 changes: 1 addition & 1 deletion config/services.js → src/config/services.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { getHostEnvName } = require('../src/clients/server-env');
const { getHostEnvName } = require('../clients/server-env');

const envValues = {
production: {
Expand Down
4 changes: 2 additions & 2 deletions src/services/analytics.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as cache from './cache';
import analytics from 'universal-analytics';
import uuid from 'uuid/v4';
import { v4 as uuid } from 'uuid';
import _ from 'lodash';
import { getValue } from './cache-env';
import { analyticsTrackingId } from '../../config/services';
import { analyticsTrackingId } from '../config/services';
import * as logger from './logger';

const reportData = {
Expand Down
2 changes: 1 addition & 1 deletion src/services/cache.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from 'path';
import mkdirp from 'mkdirp-promise';
import { mkdirp } from 'mkdirp';
import { readJsonFile, writeJsonFile } from './data';
import { getLocalStoragePath } from '../clients/cli-paths';

Expand Down
2 changes: 1 addition & 1 deletion src/services/decompress.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import path from 'path';
import decompress from 'decompress';
import downloadCached from 'download-cached';
import downloadCached from './download-cached';
import getHomeDir from '../home-dir';

const cacheDir = path.join(getHomeDir(), 'cache', 'cached-requests');
Expand Down
2 changes: 1 addition & 1 deletion src/services/diff.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import _ from 'lodash';
import path from 'path';
import { diffLines } from 'diff';
import fs from 'fs-extra';
import mkdirp from 'mkdirp-promise';
import { mkdirp } from 'mkdirp';

export async function applyDiffLog(diffLog) {
await Promise.all(
Expand Down
Loading