https://github.com/joaopalmeiro/template-astro
Opinionated Astro template for new projects.
https://github.com/joaopalmeiro/template-astro
Last synced: about 1 month ago
JSON representation
Opinionated Astro template for new projects.
- Host: GitHub
- URL: https://github.com/joaopalmeiro/template-astro
- Owner: joaopalmeiro
- License: mit
- Created: 2024-04-11T19:26:36.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-06T11:31:50.000Z (7 months ago)
- Last Synced: 2025-01-31T07:12:16.064Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# template-astro
Opinionated [Astro](https://astro.build/) template for new projects.
## Getting Started
1. Go to or create the project folder.
2. Get the template files:```bash
npx giget github:joaopalmeiro/template-astro . --force
```3. Search for `template-astro` and replace it with the project name. Ignore the template repository URL in the [NOTES.md](NOTES.md) file.
4. Search for `Opinionated Astro template for new projects.`/`Opinionated [Astro](https://astro.build/) template for new projects.` and replace it with the (short) project description.
5. Search for `João Palmeiro` and replace it with the author's name.
6. Search for `[email protected]` and replace it with the author's email address.
7. Change the `author.url` field in the `package.json` file to the author's website/social media profile.
8. Install [fnm](https://github.com/Schniz/fnm) (if necessary).
9. Run the first two commands in the [`Development`](#development) section to install [Node.js](https://nodejs.org/en) and the development dependencies.
10. Open the [NOTES.md](NOTES.md) file and install the project-specific dependencies according to the first command in the [`Commands`](NOTES.md#commands) section.
11. Remove `minimal-demo/` from the [.gitignore](.gitignore) file.
12. Delete the [TEMPLATE.md](TEMPLATE.md) file.
13. Delete the [`Getting Started`](#getting-started) section.## Development
Install [fnm](https://github.com/Schniz/fnm) (if necessary).
```bash
fnm install && fnm use && node --version && npm --version
``````bash
npm install
``````bash
npm run dev
``````bash
npm run lint
``````bash
npm run format
```## Deployment
```bash
npm run build
```