Add .devcontainer + minor changes
Some checks failed
forgejo/Procyon/seedling/pipeline/head There was a failure building this commit
forgejo/Procyon/seedling/pipeline/pr-master There was a failure building this commit

This commit is contained in:
Roman Jaroš 2023-12-22 17:48:27 +00:00
parent 99831ff824
commit ed0957becd
15 changed files with 59 additions and 20 deletions

View file

@ -0,0 +1 @@
FROM local/nodejs/dev:18

View file

@ -0,0 +1,7 @@
{
"name": "$(appName)",
"workspaceFolder": "/home/project/$(appName)",
"dockerComposeFile": "docker-compose.yml",
"service": "$(appName)",
"postCreateCommand": "sudo chown iamuser:iamuser -R /home/project",
}

View file

@ -0,0 +1,18 @@
version: "3"
name: $(appName)
volumes:
node_modules:
pnpm-store:
services:
seedling:
build:
context: .
container_name: $(appName)
volumes:
- ../:/home/project/$(appName)
- node_modules:/home/project/seedling/node_modules
- pnpm-store:/home/project/seedling/.pnpm-store
command: sleep infinity

1
source/common/.env Normal file
View file

@ -0,0 +1 @@
COMPOSE_PROJECT_NAME=$(appName)

View file

@ -1,7 +1,7 @@
const { merge } = require('webpack-merge');
const common = require('./webpack-common');
const myEnv = require('dotenv').config({ path: 'config/local/.env' }).parsed;
const myEnv = require('dotenv').config({ path: 'config/app/.env.local' }).parsed;
module.exports = (env, args) => {
return merge(common(env, args, myEnv), {

View file

@ -1,6 +1,6 @@
const { merge } = require('webpack-merge');
const myEnv = require('dotenv').config({ path: 'config/prod/.env' }).parsed;
const myEnv = require('dotenv').config({ path: 'config/app/.env.prod' }).parsed;
const common = require('./webpack-common');
// const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');

View file

@ -0,0 +1,13 @@
declare global {
interface Window {
__REDUX_DEVTOOLS_EXTENSION_COMPOSE__: any;
}
namespace NodeJS {
interface ProcessEnv {
ENDPOINT_BASE_URL: string;
}
}
}
export default global;