Shared baseline files for MIE Web open source projects — Copilot instructions, .gitignore, and more.
bash <(curl -sL https://raw.githubusercontent.com/mieweb/template-mieweb-opensource/main/apply.sh)The npx support lives on the npx branch to keep main clean as a template.
npx github:mieweb/template-mieweb-opensource#npx- Fetches each template file from this repo
- Checks if it already exists in your project
- If it doesn't exist → prompts to create or skip
- If it exists but differs → prompts to:
- (o)verwrite — replace with the template version
- (a)ppend — add the template content at the end
- (m)erge — deduplicate lines (great for
.gitignore) - (s)kip — leave your file untouched
- If it's already identical → skips automatically
| File | Purpose |
|---|---|
.github/copilot-instructions.md |
Code quality, accessibility, i18n, docs standards for GitHub Copilot |
.gitignore |
Standard ignores for Node.js projects |
Edit the TEMPLATE_FILES array in:
- apply.sh (shell script — always on
main) bin/apply-template.mjs(Node.js CLI — on thenpxbranch)
- Use this repo as a GitHub template
- Replace this README with your own — consider Working Backwards
- Use
npx createto scaffold your framework - Use API-first thinking (no UI-first)
If your project is an HTML project with a UI, consider using the MIE Web UI component library:
npm install @mieweb/ui
# or
yarn add @mieweb/ui
# or
pnpm add @mieweb/uiNote: This only applies to HTML/UI projects. If your project is Python, a pure API, or another non-UI stack, skip this step.