Skip to content

Commit

Permalink
Merge pull request #9351 from weseek/support/stop-managing-with-git-lfs
Browse files Browse the repository at this point in the history
support: Stop managing font files with Git LFS
  • Loading branch information
yuki-takei authored Nov 1, 2024
2 parents e1016ce + 5c79aba commit 5717b75
Show file tree
Hide file tree
Showing 11 changed files with 3 additions and 25 deletions.
1 change: 0 additions & 1 deletion .devcontainer/postCreateCommand.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ sudo chown -R vscode:vscode /workspace;
# Instal additional packages
sudo apt update
sudo apt-get install -y --no-install-recommends \
git-lfs \
iputils-ping net-tools dnsutils
sudo apt-get clean -y

Expand Down
2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

4 changes: 0 additions & 4 deletions .github/workflows/reusable-app-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install Git LFS
run: |
git lfs install
- uses: pnpm/action-setup@v4

- uses: actions/setup-node@v4
Expand Down
5 changes: 0 additions & 5 deletions apps/app/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ WORKDIR ${optDir}
# install tools
RUN apt-get update && apt-get install -y ca-certificates wget curl --no-install-recommends

# install git and git-lfs
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash \
&& apt-get update && apt-get install -y git git-lfs --no-install-recommends \
&& git lfs install

# install pnpm
RUN wget -qO- https://get.pnpm.io/install.sh | ENV="$HOME/.shrc" SHELL="$(which sh)" sh -
ENV PNPM_HOME="/root/.local/share/pnpm"
Expand Down
5 changes: 0 additions & 5 deletions apps/app/docker/codebuild/buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ env:
phases:
pre_build:
commands:
# install Git LFS
- curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh | bash
- yum install -y git-lfs
# fetch LFS files
- git-lfs pull
# login to docker.io
- echo ${DOCKER_REGISTRY_PASSWORD} | docker login --username wsmoogle --password-stdin
build:
Expand Down
1 change: 0 additions & 1 deletion apps/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"server:ci": "pnpm run server --ci",
"preserver": "cross-env NODE_ENV=production pnpm run migrate",
"pre:styles": "vite build -c vite.styles-prebuilt.config.ts",
"pre:lfs": "git lfs pull",
"migrate": "node -r dotenv-flow/config node_modules/migrate-mongo/bin/migrate-mongo up -f config/migrate-mongo-config.js",
"//// for development": "",
"dev": "cross-env NODE_ENV=development nodemon --exec pnpm run ts-node --inspect src/server/app.ts",
Expand Down
Binary file not shown.
Binary file modified apps/app/resource/fonts/PressStart2P-latin.woff2
Binary file not shown.
Binary file modified apps/app/resource/fonts/SourceHanCodeJP-Regular-subset-jis2.woff2
Binary file not shown.
Binary file modified apps/app/resource/fonts/SourceHanCodeJP-Regular-subset-main.woff2
Binary file not shown.
10 changes: 3 additions & 7 deletions apps/app/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,8 @@
],
"outputLogs": "new-only"
},
"pre:lfs": {
"outputs": ["resource/fonts/**"],
"outputLogs": "new-only"
},
"build": {
"dependsOn": ["^build", "pre:styles", "pre:lfs"],
"dependsOn": ["^build", "pre:styles"],
"outputs": [".next/**", "!.next/cache/**", "dist/**"],
"inputs": [
"next.config.js",
Expand Down Expand Up @@ -49,13 +45,13 @@
"outputLogs": "new-only"
},
"dev": {
"dependsOn": ["^dev", "dev:migrate", "dev:pre:styles", "pre:lfs"],
"dependsOn": ["^dev", "dev:migrate", "dev:pre:styles"],
"cache": false,
"persistent": true
},

"launch-dev:ci": {
"dependsOn": ["^dev", "dev:migrate", "dev:pre:styles", "pre:lfs"],
"dependsOn": ["^dev", "dev:migrate", "dev:pre:styles"],
"cache": false
},

Expand Down

0 comments on commit 5717b75

Please sign in to comment.