A modern website for TucsonJS built with Astro, React, and Tailwind CSS.
/
├── .github/
│ └── workflows/
│ └── deploy.yml # GitHub Pages deployment
├── public/
│ └── favicon.svg
├── src/
│ ├── assets/
│ │ ├── astro.svg
│ │ └── background.svg
│ ├── components/
│ │ ├── Home.astro
│ │ └── Welcome.astro
│ ├── layouts/
│ │ └── Layout.astro
│ ├── pages/
│ │ └── index.astro
│ └── styles/
│ └── global.css
├── .prettierrc # Prettier configuration
├── eslint.config.js # ESLint configuration
├── astro.config.mjs # Astro configuration
└── package.json
- Node.js >= 18.20.8 (required for Astro)
- pnpm (recommended package manager)
-
Clone the repository:
git clone <your-repo-url> cd tucsonjs-website
-
Install dependencies:
pnpm install
-
Start the development server:
pnpm dev
| Command | Action |
|---|---|
pnpm dev |
Starts local dev server at localhost:4321 |
pnpm build |
Build your production site to ./dist/ |
pnpm preview |
Preview your build locally, before deploying |
pnpm lint |
Run ESLint on JavaScript/TypeScript files |
pnpm lint:fix |
Run ESLint and fix auto-fixable issues |
pnpm format |
Format code with Prettier |
pnpm format:check |
Check if code is formatted correctly |
pnpm check |
Run both linting and format checking |
This project is configured to automatically deploy to GitHub Pages when you push to the main branch.
- Push your code to a GitHub repository
- Go to your repository settings
- Navigate to "Pages" section
- Set source to "GitHub Actions"
- The workflow will automatically deploy your site
The site will be available at: https://<your-username>.github.io/tucsonjs-website
If you want to deploy manually:
pnpm build
# Upload the contents of ./dist/ to your hosting providerThis project includes:
- ESLint: Code linting for JavaScript/TypeScript files
- Prettier: Code formatting with Astro and Tailwind CSS support
- GitHub Actions: Automated deployment to GitHub Pages
.prettierrc: Prettier configuration with Astro and Tailwind pluginseslint.config.js: ESLint configuration for TypeScript and React.github/workflows/deploy.yml: GitHub Actions workflow for deployment
All commands are run from the root of the project, from a terminal:
| Command | Action |
|---|---|
pnpm install |
Installs dependencies |
pnpm dev |
Starts local dev server at localhost:4321 |
pnpm build |
Build your production site to ./dist/ |
pnpm preview |
Preview your build locally, before deploying |
pnpm astro ... |
Run CLI commands like astro add, astro check |
pnpm astro -- --help |
Get help using the Astro CLI |
Feel free to check our documentation or jump into our Discord server.