Skip to content

Commit

Permalink
TG-1074 Maintenance - Reorganize core project files to use the src fo…
Browse files Browse the repository at this point in the history
…lder pattern (#34)

* Move all project core files into a src folder

* Adapt docker files to properly handle the src folder

---------

Co-authored-by: Luca <[email protected]>
Co-authored-by: Luca <[email protected]>
  • Loading branch information
3 people authored Jan 26, 2024
1 parent ac397a7 commit 53728d4
Show file tree
Hide file tree
Showing 25 changed files with 3 additions and 13 deletions.
7 changes: 1 addition & 6 deletions {{cookiecutter.project_dirname}}/docker-compose/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@ services:
dockerfile: ${SERVICE_DOCKER_FILE:-docker/test.Dockerfile}
volumes:
- ./__tests__:/app/__tests__:ro
- ./components:/app/components:ro
- ./declarations:/app/declarations:ro
- ./models:/app/models:ro
- ./pages:/app/pages:ro
- ./public:/app/public:ro
- ./store:/app/store:ro
- ./styles:/app/styles:ro
- ./utils:/app/utils:ro
- ./src:/app/src:ro
user: ${USER:-nextjs}
7 changes: 1 addition & 6 deletions {{cookiecutter.project_dirname}}/docker/remote.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,9 @@ RUN \
elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i; \
else echo "Lockfile not found." && exit 1; \
fi
COPY components ./components
COPY declarations ./declarations
COPY models ./models
COPY pages ./pages
COPY public ./public
COPY store ./store
COPY styles ./styles
COPY utils ./utils
COPY src ./src
COPY tsconfig.json next.config.js sentry.client.config.js sentry.server.config.js middleware.ts ./
ARG SENTRY_AUTH_TOKEN \
SENTRY_ORG \
Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.project_dirname}}/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"allowJs": true,
"baseUrl": ".",
"baseUrl": "./src",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"incremental": true,
Expand Down

0 comments on commit 53728d4

Please sign in to comment.