Skip to content

Commit

Permalink
feat: migrate to Next.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Ni55aN committed Sep 2, 2023
1 parent 90cd81e commit 933ab99
Show file tree
Hide file tree
Showing 43 changed files with 2,581 additions and 470 deletions.
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = {
env: { browser: true, es2020: true },
extends: [
'next/core-web-vitals',
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@ jobs:
with:
node-version: "16"
- name: Install dependencies
run: npm ci
run: npm i
- name: Lint
run: npm run lint -- --quiet
- name: Build
run: npm run build
run: npm run build -- --no-lint
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./dist
path: ./out

# Deployment job
deploy:
Expand Down
31 changes: 31 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,34 @@ dist-ssr
*.njsproj
*.sln
*.sw?

# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
14 changes: 14 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const { loadExamples } = require('./src/rete/languages/javascript/tests/utils')

/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
compiler: {
styledComponents: true
},
env: {
JS_EXAMPLES: JSON.stringify(loadExamples())
}
}

module.exports = nextConfig
Loading

0 comments on commit 933ab99

Please sign in to comment.