@salesforce/plugin-deploy-retrieve 0.0.19 → 0.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,34 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.0.23](https://github.com/salesforcecli/plugin-deploy-retrieve/compare/v0.0.22...v0.0.23) (2021-09-16)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * bump to latest sf-plugins-core ([#138](https://github.com/salesforcecli/plugin-deploy-retrieve/issues/138)) ([df49943](https://github.com/salesforcecli/plugin-deploy-retrieve/commit/df4994302baf28518317ec0763115423fe74145b))
11
+
12
+ ### [0.0.22](https://github.com/salesforcecli/plugin-deploy-retrieve/compare/v0.0.21...v0.0.22) (2021-09-15)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * bump sf-plugins-core and consume sfcommand ([#137](https://github.com/salesforcecli/plugin-deploy-retrieve/issues/137)) ([83ff118](https://github.com/salesforcecli/plugin-deploy-retrieve/commit/83ff1181cf7ae87bc109815137c41258af2d776d))
18
+
19
+ ### [0.0.21](https://github.com/salesforcecli/plugin-deploy-retrieve/compare/v0.0.20...v0.0.21) (2021-09-13)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * use sfcommand as base class ([#134](https://github.com/salesforcecli/plugin-deploy-retrieve/issues/134)) ([6822bda](https://github.com/salesforcecli/plugin-deploy-retrieve/commit/6822bda65df3ee4a212207f2d213336dac442578))
25
+
26
+ ### [0.0.20](https://github.com/salesforcecli/plugin-deploy-retrieve/compare/v0.0.19...v0.0.20) (2021-09-08)
27
+
28
+
29
+ ### Features
30
+
31
+ * add deploy-options.json to .gitignore when functions exist ([#131](https://github.com/salesforcecli/plugin-deploy-retrieve/issues/131)) ([5ae94f9](https://github.com/salesforcecli/plugin-deploy-retrieve/commit/5ae94f98c03445f09cfe86a52b29d3b7344e937b))
32
+
5
33
  ### [0.0.19](https://github.com/salesforcecli/plugin-deploy-retrieve/compare/v0.0.18...v0.0.19) (2021-09-02)
6
34
 
7
35
 
package/README.md CHANGED
@@ -69,34 +69,41 @@ This command must be run from within a project.
69
69
 
70
70
  ```
71
71
  USAGE
72
- $ sf deploy
72
+ $ sf deploy [--interactive]
73
73
 
74
- OPTIONS
75
- --interactive
74
+ FLAGS
75
+ --interactive Force the CLI to prompt for all deployment inputs.
76
76
 
77
77
  DESCRIPTION
78
- The command first analyzes your project, your active or logged-into environments, and local defaults to determine what
79
- to deploy and where to deploy it. The command then prompts you for information about this particular deployment and
78
+ Deploy a project interactively to any Salesforce environment.
79
+
80
+ This command must be run from within a project.
81
+
82
+ The command first analyzes your project, your active or logged-into environments, and local defaults to determine what
83
+ to deploy and where to deploy it. The command then prompts you for information about this particular deployment and
80
84
  provides intelligent choices based on its analysis.
81
85
 
82
- For example, if your local project contains a source directory with metadata files in source format, the command asks
83
- if you want to deploy that Salesforce app to an org. The command lists your connected orgs and asks which one you want
84
- to deploy to. The list of orgs starts with scratch orgs, ordered by expiration date with the most recently created one
85
- first, and then Dev Hub and production orgs ordered by name. If the command finds Apex tests, it asks if you want to
86
+ For example, if your local project contains a source directory with metadata files in source format, the command asks
87
+ if you want to deploy that Salesforce app to an org. The command lists your connected orgs and asks which one you want
88
+ to deploy to. The list of orgs starts with scratch orgs, ordered by expiration date with the most recently created one
89
+ first, and then Dev Hub and production orgs ordered by name. If the command finds Apex tests, it asks if you want to
86
90
  run them and at which level.
87
91
 
88
- The command stores your responses in the "deploy-options.json" file in your local project directory and uses them as
92
+ The command stores your responses in the "deploy-options.json" file in your local project directory and uses them as
89
93
  defaults when you rerun the command. Specify --interactive to force the command to reprompt.
90
94
 
91
- Use this command for quick and simple deploys. For more complicated deployments, use the environment-specific
95
+ Use this command for quick and simple deploys. For more complicated deployments, use the environment-specific
92
96
  commands, such as "sf deploy metadata", that provide additional flags.
93
97
 
94
98
  EXAMPLES
95
99
  Deploy a project and use stored values from a previous command run:
96
- sf deploy
100
+
101
+ $ sf deploy
102
+
97
103
  Reprompt for all deployment inputs:
98
- sf deploy --interactive
104
+
105
+ $ sf deploy --interactive
99
106
  ```
100
107
 
101
- _See code: [src/commands/deploy.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/v0.0.18/src/commands/deploy.ts)_
108
+ _See code: [src/commands/deploy.ts](https://github.com/salesforcecli/plugin-deploy-retrieve/blob/v0.0.22/src/commands/deploy.ts)_
102
109
  <!-- commandsstop -->
@@ -1,11 +1,10 @@
1
- import { Command } from '@oclif/core';
2
- import { Deployer } from '@salesforce/sf-plugins-core';
1
+ import { Deployer, SfCommand } from '@salesforce/sf-plugins-core';
3
2
  export declare const DEPLOY_OPTIONS_FILE = "deploy-options.json";
4
- export default class Deploy extends Command {
3
+ export default class Deploy extends SfCommand<void> {
5
4
  static summary: string;
6
5
  static description: string;
7
6
  static examples: string[];
8
- static disableJsonFlag: boolean;
7
+ static enableJsonFlag: boolean;
9
8
  static flags: {
10
9
  interactive: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
10
  };
@@ -16,6 +15,8 @@ export default class Deploy extends Command {
16
15
  */
17
16
  isInteractive(interactive: boolean): Promise<boolean>;
18
17
  readOptions(): Promise<Record<string, Deployer.Options>>;
18
+ commit(): Promise<void>;
19
+ shouldCommit(): Promise<boolean>;
19
20
  askToSave(): Promise<boolean>;
20
21
  selectDeployers(deployers: Deployer[]): Promise<Deployer[]>;
21
22
  }
@@ -7,14 +7,16 @@
7
7
  */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.DEPLOY_OPTIONS_FILE = void 0;
10
+ const os_1 = require("os");
10
11
  const core_1 = require("@oclif/core");
11
12
  const core_2 = require("@salesforce/core");
12
13
  const kit_1 = require("@salesforce/kit");
13
14
  const sf_plugins_core_1 = require("@salesforce/sf-plugins-core");
15
+ const shelljs_1 = require("shelljs");
14
16
  core_2.Messages.importMessagesDirectory(__dirname);
15
17
  const messages = core_2.Messages.loadMessages('@salesforce/plugin-deploy-retrieve', 'deploy');
16
18
  exports.DEPLOY_OPTIONS_FILE = 'deploy-options.json';
17
- class Deploy extends core_1.Command {
19
+ class Deploy extends sf_plugins_core_1.SfCommand {
18
20
  async run() {
19
21
  var _a;
20
22
  process.setMaxListeners(new kit_1.Env().getNumber('SF_MAX_EVENT_LISTENERS') || 1000);
@@ -43,9 +45,13 @@ class Deploy extends core_1.Command {
43
45
  deployOptions[deployer.getName()] = await deployer.setup(flags, opts);
44
46
  }
45
47
  if (flags.interactive && (await this.askToSave())) {
46
- await core_2.fs.writeJson(exports.DEPLOY_OPTIONS_FILE, deployOptions, { space: 2 });
48
+ await core_2.fs.writeJson(exports.DEPLOY_OPTIONS_FILE, deployOptions);
47
49
  this.log();
48
50
  this.log(`Your deploy options have been saved to ${exports.DEPLOY_OPTIONS_FILE}`);
51
+ if (await this.shouldCommit()) {
52
+ await this.commit();
53
+ this.log(`We added ${exports.DEPLOY_OPTIONS_FILE} to the .gitignore for you.`);
54
+ }
49
55
  }
50
56
  for (const deployer of deployers) {
51
57
  await deployer.deploy();
@@ -64,12 +70,24 @@ class Deploy extends core_1.Command {
64
70
  }
65
71
  async readOptions() {
66
72
  if (await core_2.fs.fileExists(exports.DEPLOY_OPTIONS_FILE)) {
67
- return (await core_2.fs.readJson(exports.DEPLOY_OPTIONS_FILE));
73
+ return core_2.fs.readJsonMap(exports.DEPLOY_OPTIONS_FILE);
68
74
  }
69
75
  else {
70
76
  return {};
71
77
  }
72
78
  }
79
+ async commit() {
80
+ const gitignore = await core_2.fs.readFile('.gitignore', 'utf-8');
81
+ if (!gitignore.includes(exports.DEPLOY_OPTIONS_FILE)) {
82
+ const addition = `${os_1.EOL}${os_1.EOL}# Deploy Options${os_1.EOL}${exports.DEPLOY_OPTIONS_FILE}${os_1.EOL}`;
83
+ await core_2.fs.writeFile('.gitignore', `${gitignore}${addition}`);
84
+ }
85
+ shelljs_1.exec('git add .gitignore', { silent: true });
86
+ shelljs_1.exec(`git commit -am "Add ${exports.DEPLOY_OPTIONS_FILE} to .gitignore"`, { silent: true });
87
+ }
88
+ async shouldCommit() {
89
+ return (await core_2.fs.fileExists('.git')) && (await core_2.fs.fileExists('functions'));
90
+ }
73
91
  async askToSave() {
74
92
  const prompter = new sf_plugins_core_1.Prompter();
75
93
  const { save } = await prompter.prompt({
@@ -120,7 +138,7 @@ exports.default = Deploy;
120
138
  Deploy.summary = messages.getMessage('summary');
121
139
  Deploy.description = messages.getMessage('description');
122
140
  Deploy.examples = messages.getMessages('examples');
123
- Deploy.disableJsonFlag = true;
141
+ Deploy.enableJsonFlag = false;
124
142
  Deploy.flags = {
125
143
  interactive: core_1.Flags.boolean({
126
144
  summary: messages.getMessage('flags.interactive.summary'),
@@ -1 +1 @@
1
- {"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../src/commands/deploy.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,sCAA6C;AAC7C,2CAAgD;AAChD,yCAAsC;AACtC,iEAA2G;AAE3G,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAE5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,oCAAoC,EAAE,QAAQ,CAAC,CAAC;AAE1E,QAAA,mBAAmB,GAAG,qBAAqB,CAAC;AAEzD,MAAqB,MAAO,SAAQ,cAAO;IAYlC,KAAK,CAAC,GAAG;;QACd,OAAO,CAAC,eAAe,CAAC,IAAI,SAAG,EAAE,CAAC,SAAS,CAAC,wBAAwB,CAAC,IAAI,IAAI,CAAC,CAAC;QAC/E,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAE3C,KAAK,CAAC,WAAW,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAChE,MAAM,OAAO,GAAG,MAAM,IAAI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AK,GAAG;IACpB,WAAW,EAAE,YAAK,CAAC,OAAO,CAAC;QACzB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,2BAA2B,CAAC;KAC1D,CAAC;CACH,CAAC"}
@@ -1 +1 @@
1
- {"version":"0.0.19","commands":{"deploy":{"id":"deploy","summary":"Deploy a project interactively to any Salesforce environment.","description":"This command must be run from within a project.\n\nThe command first analyzes your project, your active or logged-into environments, and local defaults to determine what to deploy and where to deploy it. The command then prompts you for information about this particular deployment and provides intelligent choices based on its analysis.\n\nFor example, if your local project contains a source directory with metadata files in source format, the command asks if you want to deploy that Salesforce app to an org. The command lists your connected orgs and asks which one you want to deploy to. The list of orgs starts with scratch orgs, ordered by expiration date with the most recently created one first, and then Dev Hub and production orgs ordered by name. If the command finds Apex tests, it asks if you want to run them and at which level.\n\nThe command stores your responses in the \"deploy-options.json\" file in your local project directory and uses them as defaults when you rerun the command. Specify --interactive to force the command to reprompt.\n\nUse this command for quick and simple deploys. For more complicated deployments, use the environment-specific commands, such as \"sf deploy metadata\", that provide additional flags.","pluginName":"@salesforce/plugin-deploy-retrieve","pluginType":"core","aliases":[],"examples":["Deploy a project and use stored values from a previous command run:\n<%= config.bin %> <%= command.id %>","Reprompt for all deployment inputs:\n<%= config.bin %> <%= command.id %> --interactive"],"flags":{"interactive":{"name":"interactive","type":"boolean","summary":"Force the CLI to prompt for all deployment inputs.","allowNo":false}},"args":[]}}}
1
+ {"version":"0.0.23","commands":{"deploy":{"id":"deploy","summary":"Deploy a project interactively to any Salesforce environment.","description":"This command must be run from within a project.\n\nThe command first analyzes your project, your active or logged-into environments, and local defaults to determine what to deploy and where to deploy it. The command then prompts you for information about this particular deployment and provides intelligent choices based on its analysis.\n\nFor example, if your local project contains a source directory with metadata files in source format, the command asks if you want to deploy that Salesforce app to an org. The command lists your connected orgs and asks which one you want to deploy to. The list of orgs starts with scratch orgs, ordered by expiration date with the most recently created one first, and then Dev Hub and production orgs ordered by name. If the command finds Apex tests, it asks if you want to run them and at which level.\n\nThe command stores your responses in the \"deploy-options.json\" file in your local project directory and uses them as defaults when you rerun the command. Specify --interactive to force the command to reprompt.\n\nUse this command for quick and simple deploys. For more complicated deployments, use the environment-specific commands, such as \"sf deploy metadata\", that provide additional flags.","strict":true,"pluginName":"@salesforce/plugin-deploy-retrieve","pluginAlias":"@salesforce/plugin-deploy-retrieve","pluginType":"core","aliases":[],"examples":["Deploy a project and use stored values from a previous command run:\n<%= config.bin %> <%= command.id %>","Reprompt for all deployment inputs:\n<%= config.bin %> <%= command.id %> --interactive"],"flags":{"interactive":{"name":"interactive","type":"boolean","summary":"Force the CLI to prompt for all deployment inputs.","allowNo":false}},"args":[],"enableJsonFlag":false}}}
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-deploy-retrieve",
3
3
  "description": "deploy and retrieve commands for sf",
4
- "version": "0.0.19",
4
+ "version": "0.0.23",
5
5
  "author": "Salesforce",
6
- "bugs": "https://github.com/forcedotcom/cli/issues",
6
+ "bugs": "https://github.com/salesforcecli/cli/issues",
7
7
  "dependencies": {
8
- "@oclif/core": "^0.5.34",
9
- "@salesforce/core": "3.4.2",
10
- "@salesforce/sf-plugins-core": "^0.0.13",
8
+ "@oclif/core": "^0.5.38",
9
+ "@salesforce/core": "3.6.1",
10
+ "@salesforce/sf-plugins-core": "^0.0.23",
11
+ "shelljs": "^0.8.4",
11
12
  "tslib": "^2"
12
13
  },
13
14
  "devDependencies": {
@@ -15,11 +16,12 @@
15
16
  "@salesforce/cli-plugins-testkit": "^1.3.0",
16
17
  "@salesforce/dev-config": "^2.1.2",
17
18
  "@salesforce/dev-scripts": "^0.9.18",
18
- "@salesforce/plugin-command-reference": "^1.3.5",
19
- "@salesforce/plugin-deploy-retrieve-metadata": "^0.0.23",
20
- "@salesforce/plugin-functions": "^0.2.29",
19
+ "@salesforce/plugin-command-reference": "^1.3.15",
20
+ "@salesforce/plugin-deploy-retrieve-metadata": "^0.0.30",
21
+ "@salesforce/plugin-functions": "^0.2.32",
21
22
  "@salesforce/prettier-config": "^0.0.2",
22
23
  "@salesforce/ts-sinon": "1.3.18",
24
+ "@types/shelljs": "^0.8.9",
23
25
  "@typescript-eslint/eslint-plugin": "^4.2.0",
24
26
  "@typescript-eslint/parser": "^4.2.0",
25
27
  "chai": "^4.2.0",
@@ -37,7 +39,7 @@
37
39
  "lint-staged": "^11.0.0",
38
40
  "mocha": "^8.4.0",
39
41
  "nyc": "^15.1.0",
40
- "oclif": "^2.0.0-main.1",
42
+ "oclif": "^2.0.0-main.2",
41
43
  "prettier": "^2.0.5",
42
44
  "pretty-quick": "^3.1.0",
43
45
  "shx": "0.3.3",
@@ -106,7 +108,7 @@
106
108
  "test:deprecation-policy": "./bin/dev snapshot:compare",
107
109
  "test:json-schema": "./bin/dev schema:compare",
108
110
  "test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel",
109
- "version": "oclif-dev readme"
111
+ "version": "oclif readme"
110
112
  },
111
113
  "husky": {
112
114
  "hooks": {
@@ -119,7 +121,7 @@
119
121
  "access": "public"
120
122
  },
121
123
  "sfdx": {
122
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-deploy-retrieve/0.0.19.crt",
123
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-deploy-retrieve/0.0.19.sig"
124
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-deploy-retrieve/0.0.23.crt",
125
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-deploy-retrieve/0.0.23.sig"
124
126
  }
125
127
  }