New project
Configure, preview every file, download.
my-app · Salesforce DX
20 files
README.md# my-app
my-app — generated with DevHub
## Getting started
```bash
npm install
sf org login web --set-default-dev-hub --alias devhub
sf org create scratch --definition-file config/project-scratch-def.json --alias dev --set-default
sf project deploy start
sf apex run test --tests GreetingControllerTest --wait 10
```
## Commands
| Command | What it does |
|---|---|
| `npm test` | Run the LWC Jest tests (no org needed) |
| `npm run lint` | ESLint with the LWC rules |
| `npm run format` | Prettier with the Apex plugin |
| `sf project deploy start` | Deploy to the default org |
## Project structure
```
force-app/main/default/classes Apex controller + test class
force-app/main/default/lwc myAppGreeting component (+ Jest tests)
config/ scratch org definition
```
Requires the [Salesforce CLI](https://developer.salesforce.com/tools/salesforcecli) and a Dev Hub org for scratch orgs.
ESLint stays on v9 here because Salesforce's LWC rules (`@salesforce/eslint-config-lwc`) don't support v10 yet.
## CI
Every push and pull request runs the checks in `.github/workflows/ci.yml`.
## License
MIT
---
Generated with [DevHub](https://github.com/codeitronics/devhub) by CodeITronics.