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

Update dependencies and remove unused files #2

Open
wants to merge 16 commits into
base: feature/main-menu
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
3 changes: 3 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM mcr.microsoft.com/devcontainers/javascript-node:1-22-bookworm

RUN npm uninstall -g pnpm && corepack enable pnpm
32 changes: 32 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node
{
"name": "DevChum",
"build": {
"dockerfile": "Dockerfile",
"cacheFrom": "ghcr.io/nid-kt/devchum-devcontainer"
},

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "corepack prepare && pnpm i --frozen-lockfile",

// Configure tool-specific properties.
"customizations": {
"vscode": {
"settings": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"extensions": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
}
}

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
84 changes: 0 additions & 84 deletions .eslintrc.js

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"
}
22 changes: 22 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for more information:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
# https://containers.dev/guide/dependabot

version: 2
updates:
- package-ecosystem: "devcontainers"
directory: "/"
schedule:
interval: daily

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
20 changes: 20 additions & 0 deletions .github/workflows/ci-in-devcontainer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: CI in DevContainer

on:
push:
pull_request:

jobs:
ci-in-devcontainer:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Export
uses: devcontainers/[email protected]
with:
cacheFrom: ghcr.io/nid-kt/devchum-devcontainer
push: never
runCmd: pnpm export
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

on:
push:
pull_request:

jobs:
ci:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up pnpm
uses: pnpm/action-setup@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
cache: "pnpm"

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Export
run: pnpm export

- name: Upload
uses: actions/upload-artifact@v4
with:
name: DevChum
path: extensions

- name: Lint
run: pnpm lint

- name: Check Formatting
run: pnpm prettier --check .
30 changes: 30 additions & 0 deletions .github/workflows/push-devcontainer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Push DevContainer

on:
push:
branches:
- main

jobs:
push-devcontainer:
runs-on: ubuntu-latest
permissions:
packages: write

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push DevContainer
uses: devcontainers/[email protected]
with:
imageName: ghcr.io/nid-kt/devchum-devcontainer
cacheFrom: ghcr.io/nid-kt/devchum-devcontainer
push: always
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ node_modules
.next
yarn.lock
package-lock.json
public
pnpm-lock.yaml
public
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
"files.eol": "\n",
"typescript.preferences.importModuleSpecifier": "non-relative",
"typescript.tsdk": "node_modules/typescript/lib"
}
}
23 changes: 0 additions & 23 deletions next.config.js

This file was deleted.

18 changes: 18 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
basePath: "/dest",
output: "export",
distDir: "extensions/dest",

// webpack: (config, { isServer }) => {
// config.experiments = {
// asyncWebAssembly: true,
// };
// config.output.webassemblyModuleFilename =
// (isServer ? "../" : "") + "static/wasm/webassembly.wasm";
// return config;
// },
};

export default nextConfig;
Loading
Loading