-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add type-check * Switch to NPM * Add Prisma Migrate and Dockerfile
- Loading branch information
1 parent
6d579a7
commit 5ec890a
Showing
16 changed files
with
15,378 additions
and
9,062 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
npm-debug.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
NODE_ENV=development | ||
DATABASE_URL=mysql://festival:uyuUWZuc16TczBH6wrVRqpMUiDVBE7@localhost:3306/festival | ||
AZURE_STORAGE_ACCOUNT=sndfli | ||
AZURE_STORAGE_KEY=lAvDgmqK14DK8HaBYOvFxIRaHVO0TQm4imw3orVTUBkKYYSv/65IHgXzFvQX0xEK7InxVTAxEMEGpNepHwBkTA== | ||
AZURE_STORAGE_WEBSITE_DOMAIN=sndfli.z13.web.core.windows.net |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Lint | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: npm | ||
|
||
- run: npm install | ||
|
||
- run: npm run type-check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
# system files | ||
.DS_Store | ||
|
||
# npm | ||
node_modules/ | ||
npm-debug.log | ||
|
||
# build | ||
.cache/ | ||
build/ | ||
.env | ||
|
||
# runtime | ||
upload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
pnpm lint-staged | ||
npx lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
pnpm-lock.yaml | ||
/node_modules/ | ||
/.cache/ | ||
/build/ | ||
/public/build/ | ||
/media/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
FROM node:lts-alpine as deps | ||
|
||
WORKDIR /app | ||
|
||
ADD package.json .npmrc ./ | ||
RUN npm install --include=dev | ||
|
||
FROM node:lts-alpine as production-deps | ||
|
||
WORKDIR /app | ||
|
||
COPY --from=deps /app/node_modules /app/node_modules | ||
ADD package.json .npmrc ./ | ||
RUN npm prune --omit=dev | ||
|
||
FROM node:lts-alpine as build | ||
|
||
WORKDIR /app | ||
|
||
COPY --from=deps /app/node_modules /app/node_modules | ||
|
||
ADD prisma . | ||
RUN npx prisma generate | ||
|
||
ADD . . | ||
RUN npm run build | ||
|
||
FROM node:lts-alpine | ||
|
||
WORKDIR /app | ||
|
||
COPY --from=production-deps /app/node_modules /app/node_modules | ||
COPY --from=build /app/node_modules/.prisma /app/node_modules/.prisma | ||
|
||
COPY --from=build /app/build /app/build | ||
COPY --from=build /app/public /app/public | ||
COPY --from=build /app/package.json /app/package.json | ||
COPY --from=build /app/start.sh /app/start.sh | ||
COPY --from=build /app/prisma /app/prisma | ||
|
||
ENTRYPOINT [ "./start.sh" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.