Initial commit
This commit is contained in:
12
.forceignore
Normal file
12
.forceignore
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# 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__/**
|
||||||
48
.gitignore
vendored
Normal file
48
.gitignore
vendored
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
# 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
|
||||||
|
|
||||||
|
# Salesforce cache
|
||||||
|
.sf/
|
||||||
|
.sfdx/
|
||||||
|
.localdevserver/
|
||||||
|
deploy-options.json
|
||||||
|
|
||||||
|
# LWC VSCode autocomplete
|
||||||
|
**/lwc/jsconfig.json
|
||||||
|
|
||||||
|
# LWC Jest coverage reports
|
||||||
|
coverage/
|
||||||
|
|
||||||
|
# Logs
|
||||||
|
logs
|
||||||
|
*.log
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
|
||||||
|
# Dependency directories
|
||||||
|
node_modules/
|
||||||
|
|
||||||
|
# ApexPMD cache
|
||||||
|
.pmdCache
|
||||||
|
|
||||||
|
# Eslint cache
|
||||||
|
.eslintcache
|
||||||
|
|
||||||
|
# MacOS system files
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
|
# Windows system files
|
||||||
|
Thumbs.db
|
||||||
|
ehthumbs.db
|
||||||
|
[Dd]esktop.ini
|
||||||
|
$RECYCLE.BIN/
|
||||||
|
|
||||||
|
# Local environment variables
|
||||||
|
.env
|
||||||
|
|
||||||
|
# Python Salesforce Functions
|
||||||
|
**/__pycache__/
|
||||||
|
**/.venv/
|
||||||
|
**/venv/
|
||||||
1
.husky/pre-commit
Normal file
1
.husky/pre-commit
Normal file
@@ -0,0 +1 @@
|
|||||||
|
npm run precommit
|
||||||
11
.prettierignore
Normal file
11
.prettierignore
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# List files or directories below to ignore them when running prettier
|
||||||
|
# More information: https://prettier.io/docs/en/ignore.html
|
||||||
|
#
|
||||||
|
|
||||||
|
**/staticresources/**
|
||||||
|
.localdevserver
|
||||||
|
.sfdx
|
||||||
|
.sf
|
||||||
|
.vscode
|
||||||
|
|
||||||
|
coverage/
|
||||||
17
.prettierrc
Normal file
17
.prettierrc
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"trailingComma": "none",
|
||||||
|
"plugins": [
|
||||||
|
"prettier-plugin-apex",
|
||||||
|
"@prettier/plugin-xml"
|
||||||
|
],
|
||||||
|
"overrides": [
|
||||||
|
{
|
||||||
|
"files": "**/lwc/**/*.html",
|
||||||
|
"options": { "parser": "lwc" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"files": "*.{cmp,page,component}",
|
||||||
|
"options": { "parser": "html" }
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
9
.vscode/extensions.json
vendored
Normal file
9
.vscode/extensions.json
vendored
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"recommendations": [
|
||||||
|
"salesforce.salesforcedx-vscode",
|
||||||
|
"redhat.vscode-xml",
|
||||||
|
"dbaeumer.vscode-eslint",
|
||||||
|
"esbenp.prettier-vscode",
|
||||||
|
"financialforce.lana"
|
||||||
|
]
|
||||||
|
}
|
||||||
16
.vscode/launch.json
vendored
Normal file
16
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
// Use IntelliSense to learn about possible attributes.
|
||||||
|
// Hover to view descriptions of existing attributes.
|
||||||
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "Launch Apex Replay Debugger",
|
||||||
|
"type": "apex-replay",
|
||||||
|
"request": "launch",
|
||||||
|
"logFile": "${command:AskForLogFileName}",
|
||||||
|
"stopOnEntry": true,
|
||||||
|
"trace": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
8
.vscode/settings.json
vendored
Normal file
8
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"search.exclude": {
|
||||||
|
"**/node_modules": true,
|
||||||
|
"**/bower_components": true,
|
||||||
|
"**/.sf": true,
|
||||||
|
"**/.sfdx": true
|
||||||
|
}
|
||||||
|
}
|
||||||
18
README.md
Normal file
18
README.md
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# Salesforce DX Project: Next Steps
|
||||||
|
|
||||||
|
Now that you’ve created a Salesforce DX project, what’s next? Here are some documentation resources to get you started.
|
||||||
|
|
||||||
|
## How Do You Plan to Deploy Your Changes?
|
||||||
|
|
||||||
|
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).
|
||||||
|
|
||||||
|
## Configure Your Salesforce DX Project
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
## Read All About It
|
||||||
|
|
||||||
|
- [Salesforce Extensions Documentation](https://developer.salesforce.com/tools/vscode/)
|
||||||
|
- [Salesforce CLI Setup Guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_intro.htm)
|
||||||
|
- [Salesforce DX Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_intro.htm)
|
||||||
|
- [Salesforce CLI Command Reference](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference.htm)
|
||||||
13
config/project-scratch-def.json
Normal file
13
config/project-scratch-def.json
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"orgName": "Demo company",
|
||||||
|
"edition": "Developer",
|
||||||
|
"features": ["EnableSetPasswordInApi"],
|
||||||
|
"settings": {
|
||||||
|
"lightningExperienceSettings": {
|
||||||
|
"enableS1DesktopEnabled": true
|
||||||
|
},
|
||||||
|
"mobileSettings": {
|
||||||
|
"enableS1EncryptedStoragePref2": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
55
eslint.config.js
Normal file
55
eslint.config.js
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
const { defineConfig } = require('eslint/config');
|
||||||
|
const eslintJs = require('@eslint/js');
|
||||||
|
const jestPlugin = require('eslint-plugin-jest');
|
||||||
|
const auraConfig = require('@salesforce/eslint-plugin-aura');
|
||||||
|
const lwcConfig = require('@salesforce/eslint-config-lwc/recommended');
|
||||||
|
const globals = require('globals');
|
||||||
|
|
||||||
|
module.exports = defineConfig([
|
||||||
|
// Aura configuration
|
||||||
|
{
|
||||||
|
files: ['**/aura/**/*.js'],
|
||||||
|
extends: [
|
||||||
|
...auraConfig.configs.recommended,
|
||||||
|
...auraConfig.configs.locker
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
// LWC configuration
|
||||||
|
{
|
||||||
|
files: ['**/lwc/**/*.js'],
|
||||||
|
extends: [lwcConfig]
|
||||||
|
},
|
||||||
|
|
||||||
|
// LWC configuration with override for LWC test files
|
||||||
|
{
|
||||||
|
files: ['**/lwc/**/*.test.js'],
|
||||||
|
extends: [lwcConfig],
|
||||||
|
rules: {
|
||||||
|
'@lwc/lwc/no-unexpected-wire-adapter-usages': 'off'
|
||||||
|
},
|
||||||
|
languageOptions: {
|
||||||
|
globals: {
|
||||||
|
...globals.node
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// Jest mocks configuration
|
||||||
|
{
|
||||||
|
files: ['**/jest-mocks/**/*.js'],
|
||||||
|
languageOptions: {
|
||||||
|
sourceType: 'module',
|
||||||
|
ecmaVersion: 'latest',
|
||||||
|
globals: {
|
||||||
|
...globals.node,
|
||||||
|
...globals.es2021,
|
||||||
|
...jestPlugin.environments.globals.globals
|
||||||
|
}
|
||||||
|
},
|
||||||
|
plugins: {
|
||||||
|
eslintJs
|
||||||
|
},
|
||||||
|
extends: ['eslintJs/recommended']
|
||||||
|
}
|
||||||
|
]);
|
||||||
6
jest.config.js
Normal file
6
jest.config.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
const { jestConfig } = require('@salesforce/sfdx-lwc-jest/config');
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
...jestConfig,
|
||||||
|
modulePathIgnorePatterns: ['<rootDir>/.localdevserver']
|
||||||
|
};
|
||||||
36
manifest/package.xml
Normal file
36
manifest/package.xml
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
|
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
|
||||||
|
<types>
|
||||||
|
<members>*</members>
|
||||||
|
<name>ApexClass</name>
|
||||||
|
</types>
|
||||||
|
<types>
|
||||||
|
<members>*</members>
|
||||||
|
<name>ApexComponent</name>
|
||||||
|
</types>
|
||||||
|
<types>
|
||||||
|
<members>*</members>
|
||||||
|
<name>ApexPage</name>
|
||||||
|
</types>
|
||||||
|
<types>
|
||||||
|
<members>*</members>
|
||||||
|
<name>ApexTestSuite</name>
|
||||||
|
</types>
|
||||||
|
<types>
|
||||||
|
<members>*</members>
|
||||||
|
<name>ApexTrigger</name>
|
||||||
|
</types>
|
||||||
|
<types>
|
||||||
|
<members>*</members>
|
||||||
|
<name>AuraDefinitionBundle</name>
|
||||||
|
</types>
|
||||||
|
<types>
|
||||||
|
<members>*</members>
|
||||||
|
<name>LightningComponentBundle</name>
|
||||||
|
</types>
|
||||||
|
<types>
|
||||||
|
<members>*</members>
|
||||||
|
<name>StaticResource</name>
|
||||||
|
</types>
|
||||||
|
<version>65.0</version>
|
||||||
|
</Package>
|
||||||
44
package.json
Normal file
44
package.json
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
{
|
||||||
|
"name": "salesforce-app",
|
||||||
|
"private": true,
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "Salesforce App",
|
||||||
|
"scripts": {
|
||||||
|
"lint": "eslint **/{aura,lwc}/**/*.js",
|
||||||
|
"test": "npm run test:unit",
|
||||||
|
"test:unit": "sfdx-lwc-jest",
|
||||||
|
"test:unit:watch": "sfdx-lwc-jest --watch",
|
||||||
|
"test:unit:debug": "sfdx-lwc-jest --debug",
|
||||||
|
"test:unit:coverage": "sfdx-lwc-jest --coverage",
|
||||||
|
"prettier": "prettier --write \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
|
||||||
|
"prettier:verify": "prettier --check \"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"",
|
||||||
|
"prepare": "husky || true",
|
||||||
|
"precommit": "lint-staged"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@lwc/eslint-plugin-lwc": "^3.1.0",
|
||||||
|
"@prettier/plugin-xml": "^3.4.1",
|
||||||
|
"@salesforce/eslint-config-lwc": "^4.0.0",
|
||||||
|
"@salesforce/eslint-plugin-aura": "^3.0.0",
|
||||||
|
"@salesforce/eslint-plugin-lightning": "^2.0.0",
|
||||||
|
"@salesforce/sfdx-lwc-jest": "^7.0.2",
|
||||||
|
"eslint": "^9.29.0",
|
||||||
|
"eslint-plugin-import": "^2.31.0",
|
||||||
|
"eslint-plugin-jest": "^28.14.0",
|
||||||
|
"husky": "^9.1.7",
|
||||||
|
"lint-staged": "^16.1.2",
|
||||||
|
"prettier": "^3.5.3",
|
||||||
|
"prettier-plugin-apex": "^2.2.6"
|
||||||
|
},
|
||||||
|
"lint-staged": {
|
||||||
|
"**/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}": [
|
||||||
|
"prettier --write"
|
||||||
|
],
|
||||||
|
"**/{aura,lwc}/**/*.js": [
|
||||||
|
"eslint"
|
||||||
|
],
|
||||||
|
"**/lwc/**": [
|
||||||
|
"sfdx-lwc-jest -- --bail --findRelatedTests --passWithNoTests"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
10
scripts/apex/hello.apex
Normal file
10
scripts/apex/hello.apex
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
// Use .apex files to store anonymous Apex.
|
||||||
|
// You can execute anonymous Apex in VS Code by selecting the
|
||||||
|
// apex text and running the command:
|
||||||
|
// SFDX: Execute Anonymous Apex with Currently Selected Text
|
||||||
|
// You can also execute the entire file by running the command:
|
||||||
|
// SFDX: Execute Anonymous Apex with Editor Contents
|
||||||
|
|
||||||
|
string tempvar = 'Enter_your_name_here';
|
||||||
|
System.debug('Hello World!');
|
||||||
|
System.debug('My name is ' + tempvar);
|
||||||
6
scripts/soql/account.soql
Normal file
6
scripts/soql/account.soql
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
// Use .soql files to store SOQL queries.
|
||||||
|
// You can execute queries in VS Code by selecting the
|
||||||
|
// query text and running the command:
|
||||||
|
// SFDX: Execute SOQL Query with Currently Selected Text
|
||||||
|
|
||||||
|
SELECT Id, Name FROM Account
|
||||||
12
sfdx-project.json
Normal file
12
sfdx-project.json
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"packageDirectories": [
|
||||||
|
{
|
||||||
|
"path": "force-app",
|
||||||
|
"default": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"name": "CursorShopify",
|
||||||
|
"namespace": "",
|
||||||
|
"sfdcLoginUrl": "https://login.salesforce.com",
|
||||||
|
"sourceApiVersion": "65.0"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user