Skip to content

Commit 4cd2d49

Browse files
committed
chore: add devspace
1 parent e3d8503 commit 4cd2d49

File tree

7 files changed

+2411
-11008
lines changed

7 files changed

+2411
-11008
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,6 @@ lerna-debug.log*
3333
!.vscode/tasks.json
3434
!.vscode/launch.json
3535
!.vscode/extensions.json
36-
ormconfig.json
36+
ormconfig.json
37+
38+
.devspace

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

devcontainer.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/bash
2+
set +e # Continue on errors
3+
4+
export NODE_ENV=development
5+
if [ -f "package.json" ]; then
6+
echo "Installing NPM Dependencies"
7+
npm install --legacy-peer-deps
8+
fi
9+
10+
COLOR_BLUE="\033[0;94m"
11+
COLOR_GREEN="\033[0;92m"
12+
COLOR_RESET="\033[0m"
13+
14+
# Print useful output for user
15+
echo -e "${COLOR_BLUE}
16+
Welcome to your development container!
17+
This is how you can work with it:
18+
- Files will be synchronized between your local machine and this container
19+
- You can run any commands that you run generally to manage the application.
20+
"
21+
22+
# Set terminal prompt
23+
export PS1="\[${COLOR_BLUE}\]devspace\[${COLOR_RESET}\] ./\W \[${COLOR_BLUE}\]\\$\[${COLOR_RESET}\] "
24+
if [ -z "$BASH" ]; then export PS1="$ "; fi
25+
26+
# Include project's bin/ folder in PATH
27+
export PATH="./bin:$PATH"
28+
29+
# Open shell
30+
bash --norc

devspace.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
version: v2beta1
2+
name: quizz
3+
4+
pipelines:
5+
dev:
6+
run: |-
7+
ensure_pull_secrets --all
8+
start_dev app
9+
dev:
10+
app:
11+
imageSelector: ghcr.io/polyflix/quizz:main
12+
devImage: ghcr.io/loft-sh/devspace-containers/typescript:18-alpine
13+
sync:
14+
- path: ./
15+
excludePaths:
16+
- .git/
17+
uploadExcludePaths:
18+
- Dockerfile
19+
- node_modules
20+
- dist
21+
terminal:
22+
command: ./devcontainer.sh
23+
ports:
24+
- port: "5003:8080"

0 commit comments

Comments
 (0)