Skip to content

Commit

Permalink
Switch to NextJS
Browse files Browse the repository at this point in the history
  • Loading branch information
shartte committed Oct 29, 2023
1 parent 36ec9dc commit 4193135
Show file tree
Hide file tree
Showing 100 changed files with 8,341 additions and 3,941 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VITE_GUIDE_ASSETS_URL=https://guide-assets.appliedenergistics.org/index.json
GUIDE_ASSET_INDEX_PATH=data/index.json
16 changes: 0 additions & 16 deletions .eslintrc.cjs

This file was deleted.

3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,18 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "18"
node-version: "20"
cache: npm
- name: Install dependencies
run: npm ci
- name: Download Assets
run: node scripts/download_data.mjs
- name: Build
run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./dist
path: ./out

# Deployment job
deploy:
Expand Down
54 changes: 33 additions & 21 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,24 +1,36 @@
# Logs
logs
*.log
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules

# source build-data
/data/

# 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

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

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
13 changes: 0 additions & 13 deletions index.html

This file was deleted.

14 changes: 14 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/** @type {import('next').NextConfig} */
const path = require("node:path");

const nextConfig = {
output: "export",
images: {
unoptimized: true,
},
env: {
GUIDE_DATA_ROOT: path.join(__dirname, "data"),
},
};

module.exports = nextConfig;
Loading

0 comments on commit 4193135

Please sign in to comment.