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

support: Stop managing font files with Git LFS #9351

Merged
merged 3 commits into from
Nov 1, 2024
Merged
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
1 change: 0 additions & 1 deletion .devcontainer/postCreateCommand.sh
Original file line number Diff line number Diff line change
@@ -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

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
@@ -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
5 changes: 0 additions & 5 deletions apps/app/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"
5 changes: 0 additions & 5 deletions apps/app/docker/codebuild/buildspec.yml
Original file line number Diff line number Diff line change
@@ -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:
1 change: 0 additions & 1 deletion apps/app/package.json
Original file line number Diff line number Diff line change
@@ -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",
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
@@ -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",
@@ -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
},