mirror of
https://github.com/lainbo/component-party.git
synced 2026-04-05 13:09:03 +08:00
1.3 KiB
1.3 KiB
🧑💻 Contributing
This site is built with Vite and Svelte. Site content is written in Markdown format located in content. For simple edits, you can directly edit the file on GitHub and generate a Pull Request.
Add a new framework
- Fork the project and create a new branch
- Add the new framework SVG logo in
public/framework - Install the ESLint plugin associated to the framework
- In
frameworks.mjs, add a new entry with SVG link and ESLint configuration - If the framework needs a language syntax highlight, add it to the call to
getHighlighter’slangsargument inbuild/lib/generateContent.js - To make a playground link:
- Add a
create${FRAMEWORK}Playground.jsfile inbuild/lib/playground. - That file should export a function that returns an object with a
fromContentByFilenamemethod that accepts an object of filepath keys and file content values, then returns an absolute URL to a framework’s online REPL with those files loaded. - Register its export in
build/lib/playground/index.js
- Add a
Improve website
For local development, pnpm is preferred as package manager:
pnpm i
pnpm run dev
This project requires Node.js to be v14.0.0 or higher, because we use new JavaScript features in our code, such as optional chaining.