Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

Commit

Permalink
Merge pull request #18 from msrivastav13/0.2.6
Browse files Browse the repository at this point in the history
0.2.7 release
  • Loading branch information
msrivastav13 authored Dec 17, 2019
2 parents 2c5ea0f + bf7e805 commit 98a405b
Show file tree
Hide file tree
Showing 20 changed files with 473 additions and 797 deletions.
29 changes: 13 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
{
"name": "mo-dx-plugin",
"version": "0.2.6",
"version": "0.2.7",
"author": "Mohith Shrivastava",
"bugs": "https://github.com/ForceProjects/mo-dx-plugin/issues",
"dependencies": {
"@oclif/command": "^1",
"@oclif/config": "^1",
"@oclif/errors": "^1",
"@oclif/plugin-help": "^2",
"@salesforce/command": "^1.4.1",
"@salesforce/core": "^1.3.2",
"@oclif/command": "^1.5.8",
"@oclif/config": "^1.12.6",
"@oclif/errors": "^1.2.2",
"@salesforce/command": "^2.1.3",
"@salesforce/ts-types": "^1.0.1",
"adm-zip": "^0.4.13",
"chalk": "^2.4.1",
"chalk": "^3.0.0",
"fs-extra": "^8.1.0",
"lodash": "^4.17.13",
"mime-types": "^2.1.24",
"tslib": "^1"
"tslib": "^1.9.3"
},
"devDependencies": {
"@oclif/dev-cli": "^1",
"@oclif/dev-cli": "^1.21.0",
"@oclif/plugin-help": "^2",
"@oclif/test": "^1",
"@salesforce/dev-config": "1.1.4",
Expand All @@ -34,10 +32,10 @@
"chai": "^4",
"globby": "8",
"mocha": "^5",
"nyc": "^12",
"nyc": "^14",
"sinon": "5",
"ts-node": "^7",
"typescript": "~3.3"
"typescript": "~3.3.3"
},
"engines": {
"node": ">=8.0.0"
Expand Down Expand Up @@ -69,11 +67,10 @@
},
"repository": "ForceProjects/mo-dx-plugin",
"scripts": {
"postpack": "rm -f oclif.manifest.json npm-shrinkwrap.json",
"postpack": "rm -f oclif.manifest.json",
"posttest": "tsc -p test --noEmit && tslint -p test -t stylish",
"prepack": "rm -rf lib && tsc && oclif-dev manifest && oclif-dev readme && npm shrinkwrap",
"prepare": "rm -rf lib && tsc && oclif-dev manifest && oclif-dev readme && npm shrinkwrap",
"test": "nyc mocha --forbid-only \"test/**/*.test.ts\"",
"prepack": "rm -rf lib && tsc && oclif-dev manifest && oclif-dev readme",
"test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
"version": "oclif-dev readme && git add README.md"
}
}
2 changes: 1 addition & 1 deletion src/commands/deploy/apex.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { core, flags, SfdxCommand } from '@salesforce/command';
import { AnyJson } from '@salesforce/ts-types';
import chalk from 'chalk';
import * as chalk from 'chalk';
import fs = require('fs-extra');
import { SobjectResult } from '../../models/sObjectResult';
import { Deploy, DeployResult } from '../../service/deploy';
Expand Down
2 changes: 1 addition & 1 deletion src/commands/deploy/aura.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {core, flags, SfdxCommand} from '@salesforce/command';
import {AnyJson} from '@salesforce/ts-types';
import chalk from 'chalk';
import * as chalk from 'chalk';
import fs = require('fs-extra');
import {SobjectResult} from '../../models/sObjectResult';
import {displaylog} from '../../service/displayError';
Expand Down
2 changes: 1 addition & 1 deletion src/commands/deploy/lwc.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {core, flags, SfdxCommand} from '@salesforce/command';
import {AnyJson} from '@salesforce/ts-types';
import chalk from 'chalk';
import * as chalk from 'chalk';
import fs = require('fs-extra');
import {SobjectResult} from '../../models/sObjectResult';
import {displaylog} from '../../service/displayError';
Expand Down
2 changes: 1 addition & 1 deletion src/commands/deploy/staticresource.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { core, flags, SfdxCommand } from "@salesforce/command";
import { AnyJson } from "@salesforce/ts-types";
import * as AdmZip from "adm-zip";
import chalk from "chalk";
import * as chalk from 'chalk';
import fs = require("fs-extra");
import * as Mime from "mime-types";
import { displaylog } from "../../service/displayError";
Expand Down
2 changes: 1 addition & 1 deletion src/commands/deploy/trigger.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {core, flags, SfdxCommand} from '@salesforce/command';
import {AnyJson} from '@salesforce/ts-types';
import chalk from 'chalk';
import * as chalk from 'chalk';
import fs = require('fs-extra');
import {SobjectResult} from '../../models/sObjectResult';
import {Deploy, DeployResult} from '../../service/deploy';
Expand Down
2 changes: 1 addition & 1 deletion src/commands/deploy/vf.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {core, flags, SfdxCommand} from '@salesforce/command';
import {AnyJson} from '@salesforce/ts-types';
import chalk from 'chalk';
import * as chalk from 'chalk';
import fs = require('fs-extra');
import {SobjectResult} from '../../models/sObjectResult';
import {Deploy, DeployResult} from '../../service/deploy';
Expand Down
2 changes: 1 addition & 1 deletion src/commands/deploy/vfcomponent.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {core, flags, SfdxCommand} from '@salesforce/command';
import {AnyJson} from '@salesforce/ts-types';
import chalk from 'chalk';
import * as chalk from 'chalk';
import fs = require('fs-extra');
import {SobjectResult} from '../../models/sObjectResult';
import {Deploy, DeployResult} from '../../service/deploy';
Expand Down
2 changes: 1 addition & 1 deletion src/commands/metadata/rename.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { core, flags, SfdxCommand } from '@salesforce/command';
import { AnyJson } from '@salesforce/ts-types';
import chalk from 'chalk';
import * as chalk from 'chalk';
import { SaveResult } from 'jsforce';

// Initialize Messages with the current plugin directory
Expand Down
2 changes: 1 addition & 1 deletion src/commands/retrieve/dxsource.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { core, flags, SfdxCommand } from '@salesforce/command';
import { AnyJson } from '@salesforce/ts-types';
import * as AdmZip from 'adm-zip';
import chalk from 'chalk';
import * as chalk from 'chalk';
import * as child from 'child_process';
import fs = require('fs-extra');
import * as util from 'util';
Expand Down
2 changes: 1 addition & 1 deletion src/commands/retrieve/pkgsource.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { core, flags, SfdxCommand } from '@salesforce/command';
import { AnyJson } from '@salesforce/ts-types';
import * as AdmZip from 'adm-zip';
import chalk from 'chalk';
import * as chalk from 'chalk';
import * as child from 'child_process';
import fs = require('fs-extra');
import * as util from 'util';
Expand Down
4 changes: 2 additions & 2 deletions src/service/containerasyncRequest.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import {Connection} from '@salesforce/core';
import {core} from '@salesforce/command';
import {QueryResult} from '../models/queryResult';
import {SobjectResult} from '../models/sObjectResult';
import {delay} from './delay';
import {executeToolingQuery} from './toolingQuery';

export async function createDeployRequest(containerId: string, ischeck: boolean, conn: Connection): Promise<QueryResult> {
export async function createDeployRequest(containerId: string, ischeck: boolean, conn: core.Connection): Promise<QueryResult> {

interface ContainerAsyncRequest {
IsCheckOnly: boolean;
Expand Down
4 changes: 2 additions & 2 deletions src/service/createmetadataContainer.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Connection} from '@salesforce/core';
import {core} from '@salesforce/command';

export async function createMetadataContainer(name: string, conn: Connection): Promise<object> {
export async function createMetadataContainer(name: string, conn: core.Connection): Promise<object> {

interface MetadataContainer {
Name: string;
Expand Down
4 changes: 2 additions & 2 deletions src/service/createmetadataMember.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Connection} from '@salesforce/core';
import {core} from '@salesforce/command';

export async function createMetadataMember(name: string, containerId: string, body: string, entityId: string, conn: Connection): Promise<object> {
export async function createMetadataMember(name: string, containerId: string, body: string, entityId: string, conn: core.Connection): Promise<object> {

interface MetadataMember {
MetadataContainerId: string;
Expand Down
6 changes: 3 additions & 3 deletions src/service/deploy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Connection} from '@salesforce/core';
import {core} from '@salesforce/command';
import {QueryResult} from '../models/queryResult';
import {SobjectResult} from '../models/sObjectResult';
import {createDeployRequest} from '../service/containerasyncRequest';
Expand All @@ -16,10 +16,10 @@ export class Deploy {
public containerType: string;
public classMember: string;
public componentId: string;
public conn: Connection;
public conn: core.Connection;
public componentBody: string;

constructor(containerType: string, classMember: string, componentId: string, componentBody: string, conn: Connection) {
constructor(containerType: string, classMember: string, componentId: string, componentBody: string, conn: core.Connection) {
this.containerType = containerType;
this.classMember = classMember;
this.componentId = componentId;
Expand Down
2 changes: 1 addition & 1 deletion src/service/displayError.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {UX} from '@salesforce/command';
import chalk from 'chalk';
import * as chalk from 'chalk';
import { CompileErrors, ConsoleError } from '../types/errorLog';
import { DeployResult } from './deploy';

Expand Down
2 changes: 1 addition & 1 deletion src/service/displayTable.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {UX} from '@salesforce/command';
import chalk from 'chalk';
import * as chalk from 'chalk';
import { DeployResult } from '../service/deploy';
import { CompileErrors } from '../types/errorLog';

Expand Down
4 changes: 2 additions & 2 deletions src/service/getNamespacePrefix.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {Connection} from '@salesforce/core';
import {core} from '@salesforce/command';
import {QueryResult} from '../models/queryResult';

export async function getNameSpacePrefix(conn: Connection) {
export async function getNameSpacePrefix(conn: core.Connection) {
const query = 'Select NamespacePrefix from Organization';
const organization = await conn.query(query) as QueryResult;
if (organization.totalSize > 0) {
Expand Down
4 changes: 2 additions & 2 deletions src/service/toolingQuery.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Connection} from '@salesforce/core';
import {core} from '@salesforce/command';

export async function executeToolingQuery(queryString: string, conn: Connection): Promise<object> {
export async function executeToolingQuery(queryString: string, conn: core.Connection): Promise<object> {
return await conn.tooling.query(queryString);
}
Loading

0 comments on commit 98a405b

Please sign in to comment.