-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
870 additions
and
17 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
cd core && npx tsc -b && npm run format && npm run build | ||
cd core && npm run format && npx tsc -b && npm run build | ||
cd ../docker-builder npm run format && npm run build |
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 @@ | ||
.next | ||
.cache | ||
package-lock.json | ||
public | ||
node_modules | ||
next-env.d.ts | ||
next.config.ts | ||
yarn.lock |
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,10 @@ | ||
{ | ||
"bracketSpacing": true, | ||
"endOfLine": "lf", | ||
"printWidth": 80, | ||
"semi": true, | ||
"singleQuote": false, | ||
"tabWidth": 2, | ||
"trailingComma": "all", | ||
"plugins": ["prettier-plugin-tailwindcss"] | ||
} |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export default async function Page() { | ||
return ( | ||
<div className="w-screen h-screen flex items-center justify-center text-white"></div> | ||
<div className="flex h-screen w-screen items-center justify-center text-white"></div> | ||
); | ||
} |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,5 @@ | ||
output*/ | ||
tsconfig.tsbuildinfo | ||
node_modules/ | ||
.env | ||
dist/ |
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,38 @@ | ||
# Ignore node_modules | ||
node_modules | ||
|
||
# Ignore build output | ||
dist | ||
build | ||
|
||
# Ignore coverage reports | ||
coverage | ||
|
||
# Ignore environment files | ||
.env | ||
.env.local | ||
.env.*.local | ||
|
||
# Ignore log files | ||
*.log | ||
|
||
# Ignore TypeScript declaration files | ||
*.d.ts | ||
|
||
# Ignore temporary files | ||
tmp | ||
temp | ||
|
||
# Ignore IDE and editor config files | ||
.vscode | ||
.idea | ||
*.sublime-workspace | ||
*.sublime-project | ||
|
||
# Ignore all test files | ||
**/*.spec.ts | ||
**/*.test.ts | ||
|
||
# Ignore other non-source files | ||
*.tsbuildinfo | ||
output/ |
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,9 @@ | ||
{ | ||
"bracketSpacing": true, | ||
"endOfLine": "lf", | ||
"printWidth": 80, | ||
"semi": true, | ||
"singleQuote": false, | ||
"tabWidth": 2, | ||
"trailingComma": "all" | ||
} |
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,12 @@ | ||
FROM node:latest | ||
|
||
WORKDIR /app | ||
|
||
COPY package*.json . | ||
|
||
RUN npm install | ||
|
||
COPY src/ ./src/ | ||
COPY tsconfig.json ./tsconfig.json | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
IMAGE_NAME=pulkitxm/vercel-builder-test | ||
CONTAINER_NAME=test-vercel-builder | ||
DOCKERFILE_PATH=Dockerfile | ||
ENV_FILE=.env | ||
DESTINATION_DIR=output | ||
BUILD_FOLDER=build | ||
|
||
help: | ||
@echo "Makefile commands:" | ||
@echo " build - Build Docker image" | ||
@echo " run - Run Docker container" | ||
@echo " stop - Stop Docker container" | ||
@echo " clean - Remove Docker container and image" | ||
@echo " logs - View container logs" | ||
@echo " shell - Open shell inside running container" | ||
@echo " check - Check if Docker container is running" | ||
|
||
build: | ||
@echo "Building Docker image..." | ||
docker build -t $(IMAGE_NAME) -f $(DOCKERFILE_PATH) . | ||
|
||
buildf: | ||
@echo "Building Docker image..." | ||
docker build -t $(IMAGE_NAME) --no-cache -f $(DOCKERFILE_PATH) . | ||
@echo "" | ||
|
||
run: stop | ||
@echo "Running Docker container..." | ||
docker run --env-file $(ENV_FILE) --name $(CONTAINER_NAME) $(IMAGE_NAME) | ||
@echo "" | ||
|
||
stop: | ||
@echo "Stopping Docker container..." | ||
-docker stop $(CONTAINER_NAME) | ||
-docker rm $(CONTAINER_NAME) | ||
@echo "" | ||
|
||
reset: | ||
@echo "Removing Docker container..." | ||
-docker rm $(CONTAINER_NAME) | ||
@echo "" | ||
|
||
@echo "Removing Docker image..." | ||
-docker rmi $(IMAGE_NAME) | ||
@echo "" | ||
|
||
clean: stop | ||
@echo "Removing Docker image..." | ||
rm -rf build dist project DESTINATION_DIR | ||
@echo "" | ||
|
||
logs: | ||
@echo "Showing logs..." | ||
docker logs -f $(CONTAINER_NAME) | ||
@echo "" | ||
|
||
shell: | ||
@echo "Opening shell inside running container..." | ||
docker exec -it $(CONTAINER_NAME) sh | ||
@echo "" | ||
|
||
copy: | ||
@echo "Copying build artifacts to $(DESTINATION_DIR)..." | ||
docker cp $(CONTAINER_NAME):'/app/$(BUILD_FOLDER)' '$(DESTINATION_DIR)' | ||
@echo "" | ||
|
||
serve: | ||
@echo "Serving build artifacts..." | ||
serve -s $(DESTINATION_DIR) | ||
@echo "" | ||
|
||
check: | ||
@echo "Checking if Docker container is running..." | ||
docker inspect --format '{{ .State.Running }}' $(CONTAINER_NAME) > /dev/null 2>&1 |
Oops, something went wrong.