Skip to content

Commit

Permalink
refactor: to next
Browse files Browse the repository at this point in the history
  • Loading branch information
YanYuanFE committed May 2, 2024
1 parent 260440e commit 42ed45c
Show file tree
Hide file tree
Showing 30 changed files with 3,581 additions and 2,933 deletions.
18 changes: 0 additions & 18 deletions .eslintrc.cjs

This file was deleted.

6 changes: 6 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "next/core-web-vitals",
"rules": {
"@next/next/no-img-element": 0
}
}
54 changes: 36 additions & 18 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,24 +1,42 @@
# Logs
logs
*.log
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz

# 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*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local
# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

.env

log/*.log
13 changes: 0 additions & 13 deletions index.html

This file was deleted.

5 changes: 5 additions & 0 deletions next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
5 changes: 5 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
};

module.exports = nextConfig;
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@
"name": "Astro editor",
"version": "1.0.0",
"description": "Online Starknet Cairo editor.",
"type": "module",
"homepage": "https://starknetastro.github.io/AstroEditor/",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"predeploy": "npm run build",
"deploy": "gh-pages -d dist",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@hookform/resolvers": "^3.3.1",
Expand Down Expand Up @@ -49,6 +46,8 @@
"dayjs": "^1.11.9",
"lodash-es": "^4.17.21",
"lucide-react": "^0.276.0",
"next": "^14.2.3",
"next-themes": "^0.3.0",
"react": "^18.2.0",
"react-day-picker": "^8.8.1",
"react-dom": "^18.2.0",
Expand All @@ -59,6 +58,7 @@
"tailwind-merge": "^1.14.0",
"tailwind-variants": "^0.1.18",
"tailwindcss-animate": "^1.0.7",
"wasm-cairo": "^0.8.8",
"zod": "^3.22.2",
"zustand": "^4.4.1"
},
Expand Down
Loading

0 comments on commit 42ed45c

Please sign in to comment.