Skip to content

Commit

Permalink
chore: release package version 1.4.0 (#81)
Browse files Browse the repository at this point in the history
* chore: create package version 1.4.

* add deploy images

* fix: move install images to same line

* chore: update package description
  • Loading branch information
dschach authored Sep 18, 2023
1 parent bbff33c commit 46463a7
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 20 deletions.
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,30 @@ The class and test class are found in this [folder](/force-app/main/default/clas

[ApexDox](https://dschach.github.io/record-types/RecordTypes.html) (generated with [ApexDox](https://github.com/no-stack-dub-sack/apexdox-vs-code))

## Installation
## Installation (via VCS)

- Clone this repository and run `. scripts/orginit.sh` to set up a scratch org with the classes installed and a single Account Record Type.
- To set up a scratch org without creating a Record Type, run `.scripts/orginit-norecordtypes.sh`

## Package Installation

<a href="https://login.salesforce.com/packaging/installPackage.apexp?p0=04tQm0000009IIfIAM">
<img alt="Deploy to Salesforce"
src="./media/deploy-package-to-prod.png">
</a>
<a href="https://test.salesforce.com/packaging/installPackage.apexp?p0=04tQm0000009IIfIAM">
<img alt="Deploy to Salesforce Sandbox"
src="./media/deploy-package-to-sandbox.png">
</a>

<br/>

## [Changelog](./CHANGELOG.md)

- 2023-09 Overload getRecordTypeFromId so it doesn't require a SobjectType string
- 2023-09

- Overload getRecordTypeFromId so it doesn't require a SobjectType string
- Release unlocked package

- 2023-08

Expand Down
Binary file added media/deploy-package-to-prod.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/deploy-package-to-sandbox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,19 @@
"version": "1.4.0",
"description": "Salesforce Record Types Utility",
"scripts": {
"prettier:apex:local": "prettier --apex-standalone-parser built-in --write \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
"prettier:verify:apex:local": "prettier --apex-standalone-parser built-in --check \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
"apex:local:start": "node node_modules/prettier-plugin-apex/bin/start-apex-server.js",
"apex:local:stop": "node node_modules/prettier-plugin-apex/bin/stop-apex-server.js",
"prettier": "prettier --write \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
"prettier:verify": "prettier --list-different \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
"prettier:apex:verify": "prettier --list-different \"force-app/**/*.{cls,trigger}\"",
"prettier:docs": "prettier --write \"docs/*.html\"",
"devhub-x2od": "sf config set target-dev-hub=x2od",
"initialize": ". scripts/initialize.sh",
"orginit": ". scripts/orginit.sh",
"postinstall": "husky install",
"precommit": "lint-staged",
"prettier:apex:local": "prettier --apex-standalone-parser built-in --write \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
"prettier:apex:verify": "prettier --list-different \"force-app/**/*.{cls,trigger}\"",
"prettier:docs": "prettier --write \"docs/*.html\"",
"prettier:verify:apex:local": "prettier --apex-standalone-parser built-in --check \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
"prettier:verify": "prettier --list-different \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
"prettier": "prettier --write \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
"updateHighlight": ". scripts/updateHighlight.sh"
},
"devDependencies": {
Expand Down
3 changes: 3 additions & 0 deletions scripts/packagedev/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

sf package version create --code-coverage --installation-key-bypass --wait 20 --verbose --definition-file config/project-scratch-def.json --target-dev-hub x2od
34 changes: 22 additions & 12 deletions sfdx-project.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
{
"packageDirectories": [
{
"path": "force-app",
"default": true,
"versionNumber": "1.4.0.NEXT"
}
],
"name": "record-types",
"namespace": "",
"sfdcLoginUrl": "https://login.salesforce.com",
"sourceApiVersion": "56.0"
}
"packageDirectories": [
{
"path": "force-app",
"default": true,
"versionNumber": "1.4.0.NEXT",
"definitionFile": "config/project-scratch-def.json",
"package": "Record Types",
"versionName": "ver 1.4",
"versionDescription": "Record Type library/utility class for fast code execution",
"ancestorVersion": "HIGHEST"
}
],
"name": "record-types",
"namespace": "",
"sfdcLoginUrl": "https://login.salesforce.com",
"sourceApiVersion": "58.0",
"packageAliases": {
"Record Types": "0HoQm00000000BJKAY",
"RecordTypes": "0HoQm00000000BJKAY",
"Record Types@1.4.0-1": "04tQm0000009IIfIAM"
}
}

0 comments on commit 46463a7

Please sign in to comment.