-
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.
Merge branch 'release/jest-readme-add'
add Jest and complete README
- Loading branch information
Showing
15 changed files
with
9,975 additions
and
4,453 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,4 @@ | ||
{ | ||
"presets": ["next/babel"] | ||
} | ||
|
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,19 @@ | ||
# 選擇一個 Node.js 環境作為基礎映像 | ||
FROM node:alpine | ||
|
||
WORKDIR /app | ||
|
||
# 複製 package.json 和 package-lock.json 檔案 | ||
COPY package*.json ./ | ||
|
||
RUN apk add --no-cache python3 | ||
RUN apk add --no-cache make | ||
RUN apk add --no-cache make g++ | ||
RUN npm install -g [email protected] | ||
RUN npm install | ||
|
||
COPY . . | ||
RUN npm run build | ||
|
||
CMD ["npm", "start"] | ||
|
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,8 @@ | ||
version: '3' | ||
services: | ||
web: | ||
build: . | ||
ports: | ||
- "3000:3000" | ||
environment: | ||
- NODE_ENV=production |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,14 @@ | ||
module.exports = { | ||
preset: 'ts-jest', | ||
testEnvironment: 'jsdom', | ||
// testPathIgnorePatterns: ["/node_modules/", "/.next/"], | ||
setupFilesAfterEnv: ["<rootDir>/setupTests.ts"], | ||
transform: { | ||
"^.+\\.(ts|tsx)$": "ts-jest", // 處理 TypeScript 檔案 | ||
// "^.+\\.(js|jsx)$": "babel-jest" // 處理 JavaScript 檔案 | ||
}, | ||
moduleNameMapper: { | ||
"\\.(css|less|sass|scss)$": "identity-obj-proxy", | ||
"\\.(gif|ttf|eot|svg)$": "identity-obj-proxy" | ||
} | ||
}; |
Oops, something went wrong.
fe151b0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
hidden-gem-spots – ./
hidden-gem.xyz
hidden-gem-spots-git-main-steward379.vercel.app
hidden-gem-spots.vercel.app
hidden-gem-spots-steward379.vercel.app
www.hidden-gem.xyz