diff --git a/party-cathedral/.devcontainer/devcontainer.json b/party-cathedral/.devcontainer/devcontainer.json new file mode 100644 index 0000000..0d20a64 --- /dev/null +++ b/party-cathedral/.devcontainer/devcontainer.json @@ -0,0 +1,32 @@ +{ + "name": "Node.js App Dev Container", + "image": "mcr.microsoft.com/devcontainers/javascript-node:24", + + // Features to add to the dev container. More info: https://containers.dev/features. + "features": { + "ghcr.io/devcontainers/features/git:1": {} + }, + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + "forwardPorts": [ + 5173, // dev mode for vite + 4173 // preview mode for vite + ], + + // Use 'postCreateCommand' to run commands after the container is created. + "postCreateCommand": "npm install", + + // Configure tool-specific properties. + "customizations": { + // Configure properties specific to VS Code. + "vscode": { + "extensions": [ + "dbaeumer.vscode-eslint", + "esbenp.prettier-vscode", + "ms-azuretools.vscode-docker" + ] + } + } + + // "remoteUser": "node" +} diff --git a/party-cathedral/package-lock.json b/party-cathedral/package-lock.json index 5e630b0..5f2fb43 100644 --- a/party-cathedral/package-lock.json +++ b/party-cathedral/package-lock.json @@ -879,6 +879,7 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, diff --git a/party-cathedral/package.json b/party-cathedral/package.json index 678457d..c091dad 100644 --- a/party-cathedral/package.json +++ b/party-cathedral/package.json @@ -4,7 +4,9 @@ "description": "", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "dev": "vite", + "build": "vite build", + "preview": "vite preview" }, "author": "", "license": "ISC",