Skip to content

Commit

Permalink
feat: introduce incremental deployment concept (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
scolladon authored May 23, 2022
1 parent 43ac0e6 commit 9392add
Show file tree
Hide file tree
Showing 3 changed files with 808 additions and 785 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<h3 align="center">SFDX-Git-Delta </h3>

<p align="center">
Generate salesforce deployment content from two git commits!
SFDX plugin to generate Incremental Salesforce deployments manifests and artifacts
<br />
<a href="https://github.com/scolladon/sfdx-git-delta/issues/new?assignees=scolladon&labels=bug&template=issue.md">Report Bug</a>
·
Expand Down Expand Up @@ -92,8 +92,8 @@ If you are a Technical Architect or Developer, then it’s a very useful tool fo

SGD is designed to be part of a CI/CD pipeline (Jenkins, Bitbucket Pipelines, GitLab CI, GitHub Actions, Azure DevOps...) that handles the deployment of the sources to the Salesforce org(s).

Pro tip: Make sure your pipeline works **before** implementing delta deployments. Otherwise it will just make it harder to debug your pipeline.
It's also important to implement a way to switch back to full deployment in case the delta deployment does not behave as expected.
Pro tip: Make sure your pipeline works **before** implementing incremental deployments. Otherwise it will just make it harder to debug your pipeline.
It's also important to implement a way to switch back to full deployment in case the incremental deployment does not behave as expected.

**DISCLAIMER:**

Expand Down Expand Up @@ -279,7 +279,7 @@ Note: it is also possible to generate a **source** folder containing added/chang

### Deploy the delta metadata

The simplest option to deploy the delta changes is to use `force:source:deploy` command with `-x` parameter:
The simplest option to deploy the incremental changes is to use `force:source:deploy` command with `-x` parameter:

```sh
sfdx force:source:deploy -x package/package.xml --postdestructivechanges destructiveChanges/destructiveChanges.xml
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@
"increment:apiversion": "jq '.sfdc.latestApiVersion = (.sfdc.latestApiVersion|tonumber + 1 |tostring)' package.json | sponge package.json && filename=`ls src/metadata/v*.json | tail -1` && version=${filename//[!0-9]/} && ((version++)) && targetname=\"src/metadata/v${version}.json\" && \\cp $filename $targetname && yarn pack"
},
"devDependencies": {
"@commitlint/cli": "^16",
"@commitlint/config-angular": "^16",
"@commitlint/prompt-cli": "^16",
"@commitlint/cli": "^17",
"@commitlint/config-angular": "^17",
"@commitlint/prompt-cli": "^17",
"@oclif/dev-cli": "^1.26.10",
"@oclif/plugin-help": "^5.1.10",
"@oclif/test": "^2.0.3",
Expand All @@ -83,12 +83,12 @@
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-jsdoc": "^39.2.7",
"eslint-plugin-prettier": "^4.0.0",
"husky": "^7.0.2",
"husky": "^8.0.1",
"jest": "^28.0.2",
"lint-staged": "^12.1.2",
"nyc": "^15.1.0",
"prettier": "^2.4.1",
"prettier-eslint": "^14.0.2",
"prettier-eslint": "^15.0.0",
"standard-version": "^9.3.1",
"ts-node": "^10.2.1",
"typescript": "^4.4.3"
Expand Down
Loading

0 comments on commit 9392add

Please sign in to comment.