Get the latest experimental features for
Drupal Canvas Code Components
with this template repository for
@drupal-canvas/create.
Instead of cloning this repository, create a new project interactively by
choosing balintbrews/canvas-starter as your template after running the
following command:
npx @drupal-canvas/create@latest
| Command | Description |
|---|---|
npx canvas [command] [options] |
Runs Drupal Canvas CLI commands |
npm run dev |
Starts Canvas Workbench |
npm run code:check |
Runs all code checks |
npm run code:check:prettier |
Checks code formatting with Prettier |
npm run code:check:eslint |
Checks code with ESLint |
npm run code:check:type |
Runs TypeScript typechecking |
npm run code:fix |
Runs all code fixes |
npm run code:fix:prettier |
Fixes code formatting with Prettier |
npm run code:fix:eslint |
Fixes code with ESLint |