Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,6 @@ lerna-debug.log*
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
ormconfig.json
ormconfig.json

.devspace
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

30 changes: 30 additions & 0 deletions devcontainer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash
set +e # Continue on errors

export NODE_ENV=development
if [ -f "package.json" ]; then
echo "Installing NPM Dependencies"
npm install --legacy-peer-deps
fi

COLOR_BLUE="\033[0;94m"
COLOR_GREEN="\033[0;92m"
COLOR_RESET="\033[0m"

# Print useful output for user
echo -e "${COLOR_BLUE}
Welcome to your development container!
This is how you can work with it:
- Files will be synchronized between your local machine and this container
- You can run any commands that you run generally to manage the application.
"

# Set terminal prompt
export PS1="\[${COLOR_BLUE}\]devspace\[${COLOR_RESET}\] ./\W \[${COLOR_BLUE}\]\\$\[${COLOR_RESET}\] "
if [ -z "$BASH" ]; then export PS1="$ "; fi

# Include project's bin/ folder in PATH
export PATH="./bin:$PATH"

# Open shell
bash --norc
24 changes: 24 additions & 0 deletions devspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: v2beta1
name: quizz

pipelines:
dev:
run: |-
ensure_pull_secrets --all
start_dev app
dev:
app:
imageSelector: ghcr.io/polyflix/quizz:main
devImage: ghcr.io/loft-sh/devspace-containers/typescript:18-alpine
sync:
- path: ./
excludePaths:
- .git/
uploadExcludePaths:
- Dockerfile
- node_modules
- dist
terminal:
command: ./devcontainer.sh
ports:
- port: "5003:8080"
Loading