Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2 from developerforce/douglascayers-patch-1
Browse files Browse the repository at this point in the history
Great looking out Doug! I've been so swept up in getting the content, didn't even circle back to the GIT. Thank YOU!!!!!
  • Loading branch information
E DeGroot authored Aug 8, 2019
2 parents abda583 + 4865f31 commit 91913d2
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 18 deletions.
11 changes: 10 additions & 1 deletion .forceignore
Original file line number Diff line number Diff line change
@@ -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__/**
31 changes: 31 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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/
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<h1 align="center">Trailhead Packaging Permission Sets Project</h1>
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](#tool-versioning)
- [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
Expand All @@ -26,38 +26,38 @@ git clone [email protected]: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=<username|alias>
sfdx force:config:set defaultdevhubusername=<username|alias>
```
### Create a scratch org
### 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
### 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!
Expand All @@ -67,4 +67,4 @@ sfdx force:package:version:promote -p [email protected] -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).
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).

0 comments on commit 91913d2

Please sign in to comment.