Hi there, I really appreciate you considering contributing to this repository! This readme hopefully contains what you need to get started. If you have any questions please open an issue or PM me on twitter @RuneMehlsen.
- Clone the monorepo:
git clone https://github.com/runem/lit-analyzer.git
- Install dependencies:
npm ci
- Run tests:
npm test
Readme's are built because a lot of information is repeated in individual readmes. If you want to change something in a readme, please change files in /docs/readme, /packages/lit-analyzer/readme, /packages/ts-lit-plugin/readme, /packages/vscode-lit-plugin/readme. Never change the README.md directly because it will be overwritten.
Please run npm run readme
when you want to rebuild all readme files.
You can always try out the CLI by running ./cli.js path-to-a-file.js
from packages/lit-analyzer
.
You can try out changes to lit-analyzer and/or ts-lit-plugin directly from the Typescript Language Service in VS Code:
- Run
npm run dev
from/
to open a playground in VS Code (lit-plugin is disabled in that session to prevent interference). - Run
npm run dev:logs
from/
to watch logs in real time.
You can run either npm run watch
or npm run build
from the repository root or from any subpackage.
In order to debug vscode-lit-plugin
you can open vscode from packages/vscode-lit-plugin
and press the start debugging button in vscode.
You can use this script if you want to generate an installable package of vscode-lit-plugin. Afterwards, run code --install-extension ./packages/vscode-lit-plugin/out/packaged.vsix
to install it.
All syntaxes come from vscode-lit-html and vscode-styled-components. Because these repositories are not published as npm-packages, they are instead installed from Github URLs. Therefore, as of now, changes to syntaxes must be upstreamed to one of these repositories.