feat: Add .gitpod.yml

This commit is contained in:
Lucàs
2024-11-14 17:32:15 +01:00
parent d177ebb064
commit ed627e6f22
2 changed files with 20 additions and 1 deletions
+19
View File
@@ -0,0 +1,19 @@
image: gitpod/workspace-bun
tasks:
- name: Init a bun project and run
init: |
# Init a project if needed
if test ! -e package.json; then {
bun init -y
} fi
# Install dependencies
bun install
command: |
# Run project
bun run index.ts
ports:
- port: 3000
onOpen: open-preview
+1 -1
View File
@@ -39,6 +39,6 @@ function isValidDateParam(date: String): boolean {
|| date.match(/\d+/) !== null; || date.match(/\d+/) !== null;
} }
app.listen(80, () => { app.listen(3000, () => {
console.log('Server is running on port 3000'); console.log('Server is running on port 3000');
}); });