From 290141fc337d47c922ccf26ba3cdc4ceef6358cd Mon Sep 17 00:00:00 2001 From: Doug Ayers <4142577+douglascayers@users.noreply.github.com> Date: Wed, 7 Aug 2019 20:19:40 -0500 Subject: [PATCH 1/4] Update README.md * Fix tools link * Change alias from `"Hub Org"` (two words) to `DevHub` (one word) to match later instructions and doesn't require the use of quotes as one word * Remove extra whitespace in code snippets --- README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 6ded47d..c4b9286 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ This project contains the sample custom objects and custom tab for the Trailhead =========================== #### Contents: -- [Tools](#tool-versioning) +- [Tools](#tools) - [Resources](#resources) =========================== @@ -26,38 +26,38 @@ git clone git@github.com:developerforce/sfdx-package-profiles-to-permsets ``` … to clone the repository. Then, open the directory. ``` - cd sfdx-package-profiles-to-permsets +cd sfdx-package-profiles-to-permsets ``` ### Authorize Dev Hub in your Trailhead Playground Log into your Dev Hub org. ``` - sfdx force:auth:web:login -d -a "Hub Org" - ``` +sfdx force:auth:web:login -d -a DevHub +``` Proceed to log in with your dev hub credentials. If you already have an authorized Dev Hub, set it as the default: ``` - sfdx force:config:set defaultdevhubusername= +sfdx force:config:set defaultdevhubusername= ``` ### Create a scratch org ``` - sfdx force:org:create -s -f config/project-scratch-def.json +sfdx force:org:create -s -f config/project-scratch-def.json ``` ### Push the source to your scratch org ``` - sfdx force:source:push +sfdx force:source:push ``` -### Open the scratch org. +### Open the scratch org and make some changes. ``` - sfdx force:org:open +sfdx force:org:open ``` ### Pull the changes ``` - sfdx force:org:pull +sfdx force:org:pull ``` ### Create a new Package Version ``` - sfdx force:package:version:create -p nameofApp -d force-app -k test1234 --wait 10 -v DevHub +sfdx force:package:version:create -p packageName -d force-app -k test1234 --wait 10 -v DevHub ``` After installing the package into a scratch org and testing it out, next you release the package! @@ -67,4 +67,4 @@ sfdx force:package:version:promote -p packageName@1.0.0-1 -v DevHub =========================== ### Resources -For details on using sfdx-simple, please review the [Salesforce DX Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev). \ No newline at end of file +For details on using sfdx-simple, please review the [Salesforce DX Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev). From 269a2208135fb1dca33bcb711166a3ab5d4f176c Mon Sep 17 00:00:00 2001 From: Doug Ayers Date: Wed, 7 Aug 2019 20:26:15 -0500 Subject: [PATCH 2/4] default config from force:project:create command --- .forceignore | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.forceignore b/.forceignore index 29af63a..7b5b5a7 100644 --- a/.forceignore +++ b/.forceignore @@ -1,3 +1,12 @@ -**/jsconfig.json +# List files or directories below to ignore them when running force:source:push, force:source:pull, and force:source:status +# More information: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_exclude_source.htm +# + +package.xml +# LWC configuration files +**/jsconfig.json **/.eslintrc.json + +# LWC Jest +**/__tests__/** \ No newline at end of file From 37a6c6c71a6c82c58769712db8c8a6f36ccdbfc0 Mon Sep 17 00:00:00 2001 From: Doug Ayers Date: Wed, 7 Aug 2019 20:26:39 -0500 Subject: [PATCH 3/4] make sfdx-cli version image be a link to install page --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index c4b9286..e18d1f4 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,16 @@

Trailhead Packaging Permission Sets Project

-This project contains the sample custom objects and custom tab for the Trailhead project 'Packaging Permission Sets with Salesforce DX'. The objective of this training is to show the trailblazer how to create and package a custom permission set using Salesforce DX CLI and working with Unlocked Packages. +This project contains the sample custom objects and custom tab for the Trailhead project 'Packaging Permission Sets with Salesforce DX'. The objective of this training is to show the trailblazer how to create and package a custom permission set using Salesforce DX CLI and working with Unlocked Packages. =========================== #### Contents: -- [Tools](#tools) +- [Tools](#tools) - [Resources](#resources) =========================== #### Tools | Tool: | Version: | -| ------------ | ---------- | -| **SFDX-CLI** | ![npm](https://img.shields.io/npm/v/sfdx-cli.svg?label=SFDX-CLI&logo=Salesforce&style=Popout) | +| ------------ | ---------- | +| **SFDX-CLI** | [![npm](https://img.shields.io/npm/v/sfdx-cli.svg?label=SFDX-CLI&logo=Salesforce&style=Popout)](https://developer.salesforce.com/tools/sfdxcli) | =========================== ## The Project Overview @@ -39,7 +39,7 @@ If you already have an authorized Dev Hub, set it as the default: ``` sfdx force:config:set defaultdevhubusername= ``` -### Create a scratch org +### Create a scratch org ``` sfdx force:org:create -s -f config/project-scratch-def.json ``` @@ -49,11 +49,11 @@ sfdx force:source:push ``` ### Open the scratch org and make some changes. ``` -sfdx force:org:open +sfdx force:org:open ``` -### Pull the changes +### Pull the changes ``` -sfdx force:org:pull +sfdx force:org:pull ``` ### Create a new Package Version ``` From 4865f3134f910280b6761b9b85c941d1982e6415 Mon Sep 17 00:00:00 2001 From: Doug Ayers Date: Wed, 7 Aug 2019 20:26:53 -0500 Subject: [PATCH 4/4] default ignore list from force:project:create --- .gitignore | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4016f43 --- /dev/null +++ b/.gitignore @@ -0,0 +1,31 @@ +# This file is used for Git repositories to specify intentionally untracked files that Git should ignore. +# If you are not using git, you can delete this file. For more information see: https://git-scm.com/docs/gitignore +# For useful gitignore templates see: https://github.com/github/gitignore + +# Visual Studio Code system files +.vscode/ + +# Salesforce cache +.sfdx/ + +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Dependency directories +node_modules/ + +# Eslint cache +.eslintcache + +# MacOS system files +.DS_Store + +# Windows system files +Thumbs.db +ehthumbs.db +[Dd]esktop.ini +$RECYCLE.BIN/ \ No newline at end of file