@sfdc-webapps/base-sfdx-project 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.forceignore ADDED
@@ -0,0 +1,12 @@
1
+ # List files or directories below to ignore them when running force:source:push, force:source:pull, and force:source:status
2
+ # More information: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_exclude_source.htm
3
+ #
4
+
5
+ package.xml
6
+
7
+ # LWC configuration files
8
+ **/jsconfig.json
9
+ **/.eslintrc.json
10
+
11
+ # LWC Jest
12
+ **/__tests__/**
@@ -0,0 +1,4 @@
1
+ #!/bin/sh
2
+ . "$(dirname "$0")/_/husky.sh"
3
+
4
+ yarn precommit
@@ -0,0 +1,11 @@
1
+ # List files or directories below to ignore them when running prettier
2
+ # More information: https://prettier.io/docs/en/ignore.html
3
+ #
4
+
5
+ **/staticresources/**
6
+ .localdevserver
7
+ .sfdx
8
+ .sf
9
+ .vscode
10
+
11
+ coverage/
package/.prettierrc ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "trailingComma": "none",
3
+ "plugins": [
4
+ "prettier-plugin-apex",
5
+ "@prettier/plugin-xml"
6
+ ],
7
+ "overrides": [
8
+ {
9
+ "files": "**/lwc/**/*.html",
10
+ "options": { "parser": "lwc" }
11
+ },
12
+ {
13
+ "files": "*.{cmp,page,component}",
14
+ "options": { "parser": "html" }
15
+ }
16
+ ]
17
+ }
package/README.md ADDED
@@ -0,0 +1,18 @@
1
+ # Salesforce DX Project: Next Steps
2
+
3
+ Now that you’ve created a Salesforce DX project, what’s next? Here are some documentation resources to get you started.
4
+
5
+ ## How Do You Plan to Deploy Your Changes?
6
+
7
+ Do you want to deploy a set of changes, or create a self-contained application? Choose a [development model](https://developer.salesforce.com/tools/vscode/en/user-guide/development-models).
8
+
9
+ ## Configure Your Salesforce DX Project
10
+
11
+ The `sfdx-project.json` file contains useful configuration information for your project. See [Salesforce DX Project Configuration](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_ws_config.htm) in the _Salesforce DX Developer Guide_ for details about this file.
12
+
13
+ ## Read All About It
14
+
15
+ - [Salesforce Extensions Documentation](https://developer.salesforce.com/tools/vscode/)
16
+ - [Salesforce CLI Setup Guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_intro.htm)
17
+ - [Salesforce DX Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_intro.htm)
18
+ - [Salesforce CLI Command Reference](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference.htm)
@@ -0,0 +1,13 @@
1
+ {
2
+ "orgName": "jared.kahn company",
3
+ "edition": "Developer",
4
+ "features": ["EnableSetPasswordInApi"],
5
+ "settings": {
6
+ "lightningExperienceSettings": {
7
+ "enableS1DesktopEnabled": true
8
+ },
9
+ "mobileSettings": {
10
+ "enableS1EncryptedStoragePref2": false
11
+ }
12
+ }
13
+ }
package/jest.config.js ADDED
@@ -0,0 +1,6 @@
1
+ const { jestConfig } = require('@salesforce/sfdx-lwc-jest/config');
2
+
3
+ module.exports = {
4
+ ...jestConfig,
5
+ modulePathIgnorePatterns: ['<rootDir>/.localdevserver']
6
+ };
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "@sfdc-webapps/base-sfdx-project",
3
+ "version": "1.0.2",
4
+ "description": "Base SFDX project template",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "scripts": {
9
+ "lint": "eslint **/{aura,lwc}/**/*.js",
10
+ "test": "yarn test:unit",
11
+ "test:unit": "sfdx-lwc-jest",
12
+ "test:unit:watch": "sfdx-lwc-jest --watch",
13
+ "test:unit:debug": "sfdx-lwc-jest --debug",
14
+ "test:unit:coverage": "sfdx-lwc-jest --coverage",
15
+ "prettier": "prettier --write \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
16
+ "prettier:verify": "prettier --check \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
17
+ "postinstall": "husky install",
18
+ "precommit": "lint-staged"
19
+ },
20
+ "devDependencies": {
21
+ "@lwc/eslint-plugin-lwc": "^1.1.2",
22
+ "@prettier/plugin-xml": "^3.2.2",
23
+ "@salesforce/eslint-config-lwc": "^3.2.3",
24
+ "@salesforce/eslint-plugin-aura": "^2.0.0",
25
+ "@salesforce/eslint-plugin-lightning": "^1.0.0",
26
+ "@salesforce/sfdx-lwc-jest": "^7.0.1",
27
+ "eslint": "8.57.1",
28
+ "eslint-plugin-import": "^2.25.4",
29
+ "eslint-plugin-jest": "^28.8.1",
30
+ "husky": "^9.1.5",
31
+ "lint-staged": "^15.1.0",
32
+ "prettier": "^3.1.0",
33
+ "prettier-plugin-apex": "^2.0.1"
34
+ },
35
+ "lint-staged": {
36
+ "**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}": [
37
+ "prettier --write"
38
+ ],
39
+ "**/{aura,lwc}/**/*.js": [
40
+ "eslint"
41
+ ]
42
+ }
43
+ }
@@ -0,0 +1,10 @@
1
+ // Use .apex files to store anonymous Apex.
2
+ // You can execute anonymous Apex in VS Code by selecting the
3
+ // apex text and running the command:
4
+ // SFDX: Execute Anonymous Apex with Currently Selected Text
5
+ // You can also execute the entire file by running the command:
6
+ // SFDX: Execute Anonymous Apex with Editor Contents
7
+
8
+ string tempvar = 'Enter_your_name_here';
9
+ System.debug('Hello World!');
10
+ System.debug('My name is ' + tempvar);
@@ -0,0 +1,6 @@
1
+ // Use .soql files to store SOQL queries.
2
+ // You can execute queries in VS Code by selecting the
3
+ // query text and running the command:
4
+ // SFDX: Execute SOQL Query with Currently Selected Text
5
+
6
+ SELECT Id, Name FROM Account
@@ -0,0 +1,12 @@
1
+ {
2
+ "packageDirectories": [
3
+ {
4
+ "path": "force-app",
5
+ "default": true
6
+ }
7
+ ],
8
+ "name": "MyProject",
9
+ "namespace": "",
10
+ "sfdcLoginUrl": "https://login.salesforce.com",
11
+ "sourceApiVersion": "62.0"
12
+ }