Skip to content

Commit ce3ef08

Browse files
committed
init
0 parents commit ce3ef08

21 files changed

+38171
-0
lines changed

.forceignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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__/**

.gitignore

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# This file is used for Git repositories to specify intentionally untracked files that Git should ignore.
2+
# If you are not using git, you can delete this file. For more information see: https://git-scm.com/docs/gitignore
3+
# For useful gitignore templates see: https://github.com/github/gitignore
4+
5+
# Salesforce cache
6+
.sf/
7+
.sfdx/
8+
.localdevserver/
9+
deploy-options.json
10+
11+
# LWC VSCode autocomplete
12+
**/lwc/jsconfig.json
13+
14+
# LWC Jest coverage reports
15+
coverage/
16+
17+
# Logs
18+
logs
19+
*.log
20+
npm-debug.log*
21+
yarn-debug.log*
22+
yarn-error.log*
23+
24+
# Dependency directories
25+
node_modules/
26+
27+
# Eslint cache
28+
.eslintcache
29+
30+
# MacOS system files
31+
.DS_Store
32+
33+
# Windows system files
34+
Thumbs.db
35+
ehthumbs.db
36+
[Dd]esktop.ini
37+
$RECYCLE.BIN/
38+
39+
# Local environment variables
40+
.env
41+
42+
# Python Salesforce Functions
43+
**/__pycache__/
44+
**/.venv/
45+
**/venv/

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm run precommit

.prettierignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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/

.prettierrc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
}

.vscode/extensions.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"recommendations": [
3+
"salesforce.salesforcedx-vscode",
4+
"redhat.vscode-xml",
5+
"dbaeumer.vscode-eslint",
6+
"esbenp.prettier-vscode",
7+
"financialforce.lana"
8+
]
9+
}

.vscode/launch.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Launch Apex Replay Debugger",
9+
"type": "apex-replay",
10+
"request": "launch",
11+
"logFile": "${command:AskForLogFileName}",
12+
"stopOnEntry": true,
13+
"trace": true
14+
}
15+
]
16+
}

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"search.exclude": {
3+
"**/node_modules": true,
4+
"**/bower_components": true,
5+
"**/.sfdx": true
6+
}
7+
}

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Lightning Web Component - Development Preview
2+
3+
**Note: This project is still in development.**
4+
5+
## Overview
6+
7+
This project aims to integrate a core module into a Lightning Web Component (LWC) in Salesforce. The core module is successfully being loaded as a static resource. However, due to an error regarding the absence of the __dirname variable, a node-specific variable probably in use by one of our dependencies related to file parsing.
8+
9+
Error:
10+
`Failed to load script at /resource/1715776405000/lfs: __dirname is not defined [__dirname is not defined]
11+
`
12+
13+
This error is related to [webpack Issue #14072](https://github.com/webpack/webpack/issues/14072), which discusses the necessity for webpack to support free __filename and __dirname references in CommonJS files when building an ECMAScript Module (ESM) build. The feature request aims to address compatibility issues encountered in projects using dependencies that are still in the CommonJS format. Despite encountering this error, the project demonstrates promising progress towards realizing a Lightning Web Component.
14+
15+
## Core Module
16+
17+
The core module is loaded as a single JavaScript file static resource. The JavaScript file can be generated using `ncc` on the core module as follows:
18+
19+
`git clone https://github.com/Lightning-Flow-Scanner/lightning-flow-scanner-core.git`
20+
21+
`cd lightning-flow-scanner-core`
22+
23+
`ncc build ./dist/index.js -o <outputdir>`
24+
25+
## Development Status
26+
27+
Despite the current error, this project demonstrates promising progress towards realizing a Lightning Web Component. Further testing and adjustments are required and future iterations may involve creating a variant of the core module that excludes file parsing, essentially removing the dependendencies that are likely causing the errors, and parsing flows leveraging the Tooling API.

config/project-scratch-def.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"orgName": "LightningFlowScannerDemo",
3+
"edition": "Developer",
4+
"features": ["EnableSetPasswordInApi"],
5+
"settings": {
6+
"lightningExperienceSettings": {
7+
"enableS1DesktopEnabled": true
8+
},
9+
"mobileSettings": {
10+
"enableS1EncryptedStoragePref2": false
11+
}
12+
}
13+
}

0 commit comments

Comments
 (0)