Skip to content

Commit

Permalink
Merge branch 'master' into imprv/125884-154071-eliminate-req.t()
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki-takei committed Nov 5, 2024
2 parents 22bcbab + a187f0f commit ddb0874
Show file tree
Hide file tree
Showing 438 changed files with 35,450 additions and 24,135 deletions.
7 changes: 5 additions & 2 deletions .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@
"@growi/custom-icons",
"@growi/editor",
"@growi/presentation",
"@growi/preset-*",
"@growi/remark-*",
"@growi/preset-templates",
"@growi/preset-themes",
"@growi/remark-attachment-refs",
"@growi/remark-drawio",
"@growi/remark-lsx",
"@growi/slack",
"@growi/ui"
]
Expand Down
59 changes: 0 additions & 59 deletions .devcontainer/Dockerfile

This file was deleted.

25 changes: 3 additions & 22 deletions .devcontainer/docker-compose.yml → .devcontainer/compose.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,12 @@
#-------------------------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
#-------------------------------------------------------------------------------------------------------------

version: '3'
services:
node:
# Uncomment the next line to use a non-root user for all processes. You can also
# simply use the "remoteUser" property in devcontainer.json if you just want VS Code
# and its sub-processes (terminals, tasks, debugging) to execute as the user. On Linux,
# you may need to update USER_UID and USER_GID in .devcontainer/Dockerfile to match your
# user if not 1000. See https://aka.ms/vscode-remote/containers/non-root for details.
user: node

build:
context: .
dockerfile: Dockerfile

image: mcr.microsoft.com/devcontainers/base:ubuntu
volumes:
- ..:/workspace/growi:delegated
- pnpm-store:/workspace/growi/.pnpm-store
- node_modules:/workspace/growi/node_modules
- node_modules_app:/workspace/growi/apps/app/node_modules
- node_modules_slackbot-proxy:/workspace/growi/apps/slackbot-proxy/node_modules
- buildcache_app:/workspace/growi/apps/app/.next
- ../../growi-docker-compose:/workspace/growi-docker-compose:delegated

tty: true

mongo:
Expand Down Expand Up @@ -59,7 +41,6 @@ services:
- ../../growi-docker-compose/elasticsearch/v8/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml

volumes:
pnpm-store:
node_modules:
node_modules_app:
node_modules_slackbot-proxy:
buildcache_app:
67 changes: 34 additions & 33 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,45 @@
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.117.1/containers/javascript-node-12-mongo
// If you want to run as a non-root user in the container, see .devcontainer/docker-compose.yml.
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
{
"name": "GROWI-Dev",
"dockerComposeFile": "docker-compose.yml",
"dockerComposeFile": "compose.yml",
"service": "node",
"workspaceFolder": "/workspace/growi",

// Set *default* container specific settings.json values on container create.
"settings": {
"terminal.integrated.defaultProfile.linux": "bash"
"features": {
"ghcr.io/devcontainers/features/node:1": {
"version": "20.18.0"
}
},

// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"dbaeumer.vscode-eslint",
"mhutchie.git-graph",
"eamodio.gitlens",
"github.vscode-pull-request-github",
"cschleiden.vscode-github-actions",
"cweijan.vscode-database-client2",
"mongodb.mongodb-vscode",
"msjsdiag.debugger-for-chrome",
"firefox-devtools.vscode-firefox-debug",
"editorconfig.editorconfig",
"shinnn.stylelint",
"stylelint.vscode-stylelint",
"vitest.explorer",
"ms-playwright.playwright"
],

// Uncomment the next line if you want start specific services in your Docker Compose config.
// "runServices": [],

// Uncomment the line below if you want to keep your containers running after VS Code shuts down.
// "shutdownAction": "none",
// 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": "git-lfs pull & turbo run bootstrap",
"postCreateCommand": "/bin/bash ./.devcontainer/postCreateCommand.sh",

// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": [
"dbaeumer.vscode-eslint",
"mhutchie.git-graph",
"eamodio.gitlens",
"github.vscode-pull-request-github",
"cschleiden.vscode-github-actions",
"cweijan.vscode-database-client2",
"mongodb.mongodb-vscode",
"msjsdiag.debugger-for-chrome",
"firefox-devtools.vscode-firefox-debug",
"editorconfig.editorconfig",
"shinnn.stylelint",
"stylelint.vscode-stylelint",
"vitest.explorer",
"ms-playwright.playwright"
],
}
},

// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node"
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
17 changes: 17 additions & 0 deletions .devcontainer/postCreateCommand.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
sudo chown -R vscode:vscode /workspace;

# Instal additional packages
sudo apt update
sudo apt-get install -y --no-install-recommends \
iputils-ping net-tools dnsutils
sudo apt-get clean -y

# Setup pnpm
SHELL=bash pnpm setup
eval "$(cat /home/vscode/.bashrc)"

# Install turbo
pnpm install turbo --global

# Install dependencies
turbo run bootstrap
2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ updates:
- dependency-name: handsontable
- dependency-name: typeorm
- dependency-name: mysql2

- dependency-name: "@codemirror/*"

2 changes: 1 addition & 1 deletion .github/mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ pull_request_rules:
- name: Automatic queue to merge
conditions:
- '#approved-reviews-by >= 1'
- '#changes-requested-reviews-by = 0'
- '#review-requested = 0'
- check-success = check-title
actions:
queue:

Expand Down
22 changes: 14 additions & 8 deletions .github/workflows/ci-app-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,27 @@ on:
branches:
- master
- dev/7.*.x
- dev/6.*.x
paths:
- .github/mergify.yml
- .github/workflows/ci-app-prod.yml
- .github/workflows/reusable-app-prod.yml
- .github/workflows/reusable-app-reg-suit.yml
- tsconfig.base.json
- turbo.json
- yarn.lock
- pnpm-lock.yaml
- package.json
- apps/app/**
- '!apps/app/docker/**'
- packages/**
pull_request:
branches:
- master
- dev/7.*.x
- dev/6.*.x
- release/*
types: [opened, reopened, synchronize]
paths:
- .github/mergify.yml
- .github/workflows/ci-app-prod.yml
- .github/workflows/reusable-app-prod.yml
- .github/workflows/reusable-app-reg-suit.yml
- tsconfig.base.json
- yarn.lock
- pnpm-lock.yaml
- turbo.json
- package.json
- apps/app/**
Expand All @@ -47,6 +41,12 @@ jobs:

test-prod-node18:
uses: weseek/growi/.github/workflows/reusable-app-prod.yml@master
if: |
( github.event_name == 'push'
|| github.base_ref == 'master'
|| github.base_ref == 'dev/7.*.x'
|| startsWith( github.base_ref, 'release/' )
|| startsWith( github.head_ref, 'mergify/merge-queue/' ))
with:
node-version: 18.x
skip-e2e-test: true
Expand All @@ -56,6 +56,12 @@ jobs:

test-prod-node20:
uses: weseek/growi/.github/workflows/reusable-app-prod.yml@master
if: |
( github.event_name == 'push'
|| github.base_ref == 'master'
|| github.base_ref == 'dev/7.*.x'
|| startsWith( github.base_ref, 'release/' )
|| startsWith( github.head_ref, 'mergify/merge-queue/' ))
with:
node-version: 20.x
skip-e2e-test: ${{ contains( github.event.pull_request.labels.*.name, 'dependencies' ) }}
Expand Down
Loading

0 comments on commit ddb0874

Please sign in to comment.