Skip to content

Commit 46463a7

Browse files
authored
chore: release package version 1.4.0 (#81)
* chore: create package version 1.4. * add deploy images * fix: move install images to same line * chore: update package description
1 parent bbff33c commit 46463a7

File tree

6 files changed

+50
-20
lines changed

6 files changed

+50
-20
lines changed

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,30 @@ The class and test class are found in this [folder](/force-app/main/default/clas
2222

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

25-
## Installation
25+
## Installation (via VCS)
2626

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

30+
## Package Installation
31+
32+
<a href="https://login.salesforce.com/packaging/installPackage.apexp?p0=04tQm0000009IIfIAM">
33+
<img alt="Deploy to Salesforce"
34+
src="./media/deploy-package-to-prod.png">
35+
</a>
36+
<a href="https://test.salesforce.com/packaging/installPackage.apexp?p0=04tQm0000009IIfIAM">
37+
<img alt="Deploy to Salesforce Sandbox"
38+
src="./media/deploy-package-to-sandbox.png">
39+
</a>
40+
41+
<br/>
42+
3043
## [Changelog](./CHANGELOG.md)
3144

32-
- 2023-09 Overload getRecordTypeFromId so it doesn't require a SobjectType string
45+
- 2023-09
46+
47+
- Overload getRecordTypeFromId so it doesn't require a SobjectType string
48+
- Release unlocked package
3349

3450
- 2023-08
3551

media/deploy-package-to-prod.png

1023 Bytes
Loading
1.12 KB
Loading

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,19 @@
44
"version": "1.4.0",
55
"description": "Salesforce Record Types Utility",
66
"scripts": {
7-
"prettier:apex:local": "prettier --apex-standalone-parser built-in --write \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
8-
"prettier:verify:apex:local": "prettier --apex-standalone-parser built-in --check \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
97
"apex:local:start": "node node_modules/prettier-plugin-apex/bin/start-apex-server.js",
108
"apex:local:stop": "node node_modules/prettier-plugin-apex/bin/stop-apex-server.js",
11-
"prettier": "prettier --write \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
12-
"prettier:verify": "prettier --list-different \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
13-
"prettier:apex:verify": "prettier --list-different \"force-app/**/*.{cls,trigger}\"",
14-
"prettier:docs": "prettier --write \"docs/*.html\"",
9+
"devhub-x2od": "sf config set target-dev-hub=x2od",
1510
"initialize": ". scripts/initialize.sh",
1611
"orginit": ". scripts/orginit.sh",
1712
"postinstall": "husky install",
1813
"precommit": "lint-staged",
14+
"prettier:apex:local": "prettier --apex-standalone-parser built-in --write \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
15+
"prettier:apex:verify": "prettier --list-different \"force-app/**/*.{cls,trigger}\"",
16+
"prettier:docs": "prettier --write \"docs/*.html\"",
17+
"prettier:verify:apex:local": "prettier --apex-standalone-parser built-in --check \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
18+
"prettier:verify": "prettier --list-different \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
19+
"prettier": "prettier --write \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
1920
"updateHighlight": ". scripts/updateHighlight.sh"
2021
},
2122
"devDependencies": {

scripts/packagedev/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
sf package version create --code-coverage --installation-key-bypass --wait 20 --verbose --definition-file config/project-scratch-def.json --target-dev-hub x2od

sfdx-project.json

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,23 @@
11
{
2-
"packageDirectories": [
3-
{
4-
"path": "force-app",
5-
"default": true,
6-
"versionNumber": "1.4.0.NEXT"
7-
}
8-
],
9-
"name": "record-types",
10-
"namespace": "",
11-
"sfdcLoginUrl": "https://login.salesforce.com",
12-
"sourceApiVersion": "56.0"
13-
}
2+
"packageDirectories": [
3+
{
4+
"path": "force-app",
5+
"default": true,
6+
"versionNumber": "1.4.0.NEXT",
7+
"definitionFile": "config/project-scratch-def.json",
8+
"package": "Record Types",
9+
"versionName": "ver 1.4",
10+
"versionDescription": "Record Type library/utility class for fast code execution",
11+
"ancestorVersion": "HIGHEST"
12+
}
13+
],
14+
"name": "record-types",
15+
"namespace": "",
16+
"sfdcLoginUrl": "https://login.salesforce.com",
17+
"sourceApiVersion": "58.0",
18+
"packageAliases": {
19+
"Record Types": "0HoQm00000000BJKAY",
20+
"RecordTypes": "0HoQm00000000BJKAY",
21+
"Record [email protected]": "04tQm0000009IIfIAM"
22+
}
23+
}

0 commit comments

Comments
 (0)