Skip to content

Commit

Permalink
Switches to next.
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyleelarson committed Aug 18, 2023
1 parent 2fc3482 commit 76b7e36
Show file tree
Hide file tree
Showing 106 changed files with 19,843 additions and 12,813 deletions.
3 changes: 0 additions & 3 deletions .env.template

This file was deleted.

5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

24 changes: 0 additions & 24 deletions .eslintrc.cjs

This file was deleted.

20 changes: 20 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"extends": "next/core-web-vitals",
"plugins": ["import"],
"rules": {
"import/order": [
"error",
{
"alphabetize": { "order": "asc" },
"groups": [
"builtin",
"external",
"internal",
"parent",
"index",
"sibling"
]
}
]
}
}
2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ jobs:
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_DELIGHTFUL_OCEAN_0DFA1D310 }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: 'upload'
action: "upload"
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
app_location: '/' # App source code path
api_location: '' # Api source code path - optional
output_location: '/dist' # Built app content directory - optional
app_location: "/" # App source code path
api_location: "" # Api source code path - optional
output_location: "/out" # Built app content directory - optional
###### End of Repository/Build Configurations ######

close_pull_request_job:
Expand All @@ -66,4 +66,4 @@ jobs:
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_DELIGHTFUL_OCEAN_0DFA1D310 }}
action: 'close'
action: "close"
38 changes: 26 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,21 +1,35 @@
# build output
dist/
# generated types
.astro/
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
node_modules/
/node_modules
/.pnp
.pnp.js

# logs
# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# local env files
.env*.local

# environment variables
.env
.env.production
# vercel
.vercel

# macOS-specific files
.DS_Store
# typescript
*.tsbuildinfo
next-env.d.ts
4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

4 changes: 0 additions & 4 deletions .prettierignore

This file was deleted.

4 changes: 0 additions & 4 deletions .prettierrc.cjs

This file was deleted.

8 changes: 0 additions & 8 deletions .vscode/extensions.json

This file was deleted.

11 changes: 0 additions & 11 deletions .vscode/launch.json

This file was deleted.

3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
"typescript.tsdk": "node_modules/typescript/lib",
"git.ignoreLimitWarning": true
}
54 changes: 21 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,46 +1,34 @@
# Astro Starter Kit: Minimal
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).

```
npm create astro@latest -- --template minimal
```

[![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)
## Getting Started

> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
First, run the development server:

## 🚀 Project Structure
```bash
npm run dev
# or
yarn dev
# or
pnpm dev
```

Inside of your Astro project, you'll see the following folders and files:
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

```
/
├── public/
├── src/
│ └── pages/
│ └── index.astro
└── package.json
```
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.

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

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

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

## 🧞 Commands
- [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.

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

| 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 |
## Deploy on Vercel

## 👀 Want to learn more?
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.

Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
16 changes: 0 additions & 16 deletions astro.config.mjs

This file was deleted.

4 changes: 4 additions & 0 deletions contentful/export-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"exportDir": "contentful",
"contentFile": "export.json"
}
Loading

0 comments on commit 76b7e36

Please sign in to comment.