Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebuild with Astro #3

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 11 additions & 26 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,35 +1,20 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# build output
dist/
.output/

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

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

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

# local env files
.env*.local

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

# typescript
*.tsbuildinfo
# macOS-specific files
.DS_Store
10 changes: 10 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"recommendations": [
"astro-build.astro-vscode",
"csstools.postcss",
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint",
"ecmel.vscode-html-css",
"bradlc.vscode-tailwindcss"
]
}
16 changes: 16 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"css.validate": false,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"tailwindCSS.emmetCompletions": true,
"tailwindCSS.validate": true,
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
}
8 changes: 8 additions & 0 deletions astro.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import Tailwind from '@astrojs/tailwind';
import { defineConfig } from 'astro/config'

export default defineConfig({
integrations: [
Tailwind(),
]
});
5 changes: 0 additions & 5 deletions next-env.d.ts

This file was deleted.

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

This file was deleted.

38 changes: 17 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,24 @@
{
"name": "cta-landing-next",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
"name": "cta-landing-next",
"version": "0.2.0",
"prettier": {
"plugins": [
"prettier-plugin-astro"
]
},
"dependencies": {
"next": "12.1.6",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hot-toast": "^2.2.0"
"scripts": {
"build": "astro build",
"dev": "TAILWIND_MODE=watch astro dev",
"format": "prettier -w ./src",
"preview": "astro preview"
},
"devDependencies": {
"@types/node": "18.0.0",
"@types/react": "18.0.14",
"@types/react-dom": "18.0.5",
"autoprefixer": "^10.4.7",
"eslint": "8.18.0",
"eslint-config-next": "12.1.6",
"postcss": "^8.4.14",
"tailwindcss": "^3.1.3",
"typescript": "4.7.4"
"@astrojs/tailwind": "^0.2.4",
"@types/node": "^18.0.4",
"astro": "^1.0.0-beta.70",
"prettier": "^2.7.1",
"prettier-plugin-astro": "^0.1.1",
"typescript": "^4.7.4"
}
}
8 changes: 0 additions & 8 deletions pages/_app.tsx

This file was deleted.

62 changes: 0 additions & 62 deletions pages/_document.tsx

This file was deleted.

13 changes: 0 additions & 13 deletions pages/api/hello.ts

This file was deleted.

82 changes: 0 additions & 82 deletions pages/index.tsx

This file was deleted.

Loading