Skip to content

Commit

Permalink
Astro base
Browse files Browse the repository at this point in the history
  • Loading branch information
carloskelly13 committed Aug 4, 2023
1 parent 946e169 commit ee65f2c
Show file tree
Hide file tree
Showing 36 changed files with 3,544 additions and 1,888 deletions.
3 changes: 1 addition & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@next/next/recommended",
"plugin:prettier/recommended",
"plugin:import/recommended",
"plugin:import/typescript"
Expand All @@ -22,4 +21,4 @@
}
}]
}
}
}
114 changes: 13 additions & 101 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,109 +1,21 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output
# build output
dist/
# generated types
.astro/

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
# dependencies
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz
# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
# environment variables
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# Next.js build output
.next

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/
.env.production

# TernJS port file
.tern-port
# macOS-specific files
.DS_Store
.vscode
out
.vs
.idea
4 changes: 2 additions & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"semi": false,
"arrowParens": "avoid",
"xmlWhitespaceSensitivity": "ignore",
"htmlWhitespaceSensitivity": "ignore",
"proseWrap": "always"
}
}
57 changes: 33 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,47 @@
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
# Astro Starter Kit: Minimal

## Getting Started

First, run the development server:

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
```
npm create astro@latest -- --template minimal
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/minimal)
[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/minimal)
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/minimal/devcontainer.json)

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`.
## 🚀 Project Structure

The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
Inside of your Astro project, you'll see the following folders and files:

```
/
├── public/
├── src/
│ └── pages/
│ └── index.astro
└── package.json
```

This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.

## Learn More
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.

To learn more about Next.js, take a look at the following resources:
Any static assets, like images, can be placed in the `public/` directory.

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
## 🧞 Commands

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
All commands are run from the root of the project, from a terminal:

## Deploy on Vercel
| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `npm install` | Installs dependencies |
| `npm run dev` | Starts local dev server at `localhost:3000` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
| `npm run astro -- --help` | Get help using the Astro CLI |

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
## 👀 Want to learn more?

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
8 changes: 8 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { defineConfig } from "astro/config";

import tailwind from "@astrojs/tailwind";

// https://astro.build/config
export default defineConfig({
integrations: [tailwind()]
});
5 changes: 0 additions & 5 deletions next-env.d.ts

This file was deleted.

18 changes: 0 additions & 18 deletions next.config.js

This file was deleted.

51 changes: 21 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,30 @@
{
"name": "carlos.dev",
"version": "0.1.0",
"private": true,
"name": "packages-web",
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"clsx": "^1.2.1",
"framer-motion": "^10.12.16",
"next": "13.4.12",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-icons": "^4.10.1"
"@astrojs/tailwind": "^4.0.0",
"astro": "^2.10.1",
"astro-icon": "^0.8.1",
"react-icons": "^4.10.1",
"tailwindcss": "^3.0.24"
},
"devDependencies": {
"@next/eslint-plugin-next": "^13.2.1",
"@types/node": "18.11.18",
"@types/react": "18.0.27",
"@types/react-dom": "18.0.10",
"@typescript-eslint/eslint-plugin": "^5.48.1",
"@typescript-eslint/parser": "^5.48.1",
"autoprefixer": "^10.4.14",
"eslint": "8.32.0",
"eslint-config-next": "13.2.1",
"eslint-config-prettier": "^8.6.0",
"@typescript-eslint/eslint-plugin": "^6.2.1",
"@typescript-eslint/parser": "^6.2.1",
"eslint": "8.46.0",
"eslint-config-prettier": "^8.10.0",
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^4.2.1",
"formidable-oss-badges": "^1.1.0",
"postcss": "^8.4.24",
"prettier": "^2.8.3",
"tailwindcss": "^3.3.2",
"typescript": "4.9.4"
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-prettier": "^5.0.0",
"prettier": "^3.0.1",
"prettier-plugin-astro": "^0.11.0"
}
}
Loading

0 comments on commit ee65f2c

Please sign in to comment.