Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1471 from EddieHubCommunity/nextjs
Browse files Browse the repository at this point in the history
feat: migration to nextjs
  • Loading branch information
eddiejaoude committed Nov 5, 2022
2 parents e8bf0ed + 10b77d5 commit b542e88
Show file tree
Hide file tree
Showing 850 changed files with 12,864 additions and 36,953 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ CHANGELOG.md
CODE_OF_CONDUCT.md
kubernetes
reviewpad.yml
cypress.json
playwright.config.js
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
LINKFREE_MONGO_CONNECTION_STRING="mongodb://localhost:27017/linkfree"
GA_MEASUREMENT_ID=""
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", "plugin:storybook/recommended"]
}
22 changes: 0 additions & 22 deletions .eslintrc.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 🐛 Bug
description: Report an issue to help improve the project.
labels: ['🛠 goal: fix']
labels: ["🛠 goal: fix"]
body:
- type: textarea
id: description
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/docs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: 📄 Documentation issue
description: Found an issue in the documentation? You can use this one!
title: '[DOCS] <description>'
labels: ['📄 aspect: text']
title: "[DOCS] <description>"
labels: ["📄 aspect: text"]
body:
- type: textarea
id: description
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: 💡 General Feature Request
description: Have a new idea/feature for LinkFree? Please suggest!
title: '[FEATURE] <description>'
labels: ['⭐ goal: addition']
title: "[FEATURE] <description>"
labels: ["⭐ goal: addition"]
body:
- type: textarea
id: description
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/other.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Other
description: Use this for any other issues. Please do NOT create blank issues
title: '[OTHER]'
labels: ['🚦 status: awaiting triage']
title: "[OTHER]"
labels: ["🚦 status: awaiting triage"]
body:
- type: markdown
attributes:
value: '# Other issue'
value: "# Other issue"
- type: textarea
id: issuedescription
attributes:
Expand Down
18 changes: 13 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ on:
paths:
- public/**
- src/**
- cypress/**
- test/**
pull_request:
paths:
- public/**
- src/**
- cypress/**
- test/**

jobs:
build:
Expand All @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
node-version: "16"
- name: install dependencies
run: npm ci
- name: run linter
Expand All @@ -27,13 +27,21 @@ jobs:
run: npm run build

tests:
needs: build
runs-on: ubuntu-latest
services:
mongo:
image: mongo
ports:
- 27017:27017
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
node-version: "16"
- name: install dependencies
run: npm ci
- name: Install Playwright's dependencies
run: npx playwright install --with-deps
- name: run tests
run: npm run test:e2e
run: npm run test
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
node-version: "16"
- name: install dependencies
run: npm ci
- name: run build
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
push: true
secrets: |
'GH_TOKEN=${{ secrets.GITHUB_TOKEN }}'
build-args: 'github_token=${{ secrets.GITHUB_TOKEN }}'
build-args: "github_token=${{ secrets.GITHUB_TOKEN }}"
tags: |
ghcr.io/eddiehubcommunity/linkfree:v${{ steps.package-version.outputs.current-version}}
ghcr.io/eddiehubcommunity/linkfree:latest
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Format
on:
push:
paths:
- 'public/data/**'
- 'data/**'

jobs:
format:
Expand All @@ -12,12 +12,12 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
node-version: "16"
- run: npm ci
- name: Prettier
run: npx prettier --write public/data/*.json
run: npx prettier --write data/*.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'style: format files'
commit_message: "style: format files"
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: TriPSs/conventional-changelog-action@v3.7.1
with:
github-token: ${{ secrets.CHANGELOG_RELEASE }}
version-file: './package.json,./package-lock.json'
version-file: "./package.json,./package-lock.json"

- name: create release
uses: actions/create-release@v1
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Storybook
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "16"
- name: install dependencies
run: npm ci
# - name: run build
# run: npm run build-storybook
Loading

0 comments on commit b542e88

Please sign in to comment.