-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from linea-it/4-install-reactjs
4 install reactjs
- Loading branch information
Showing
31 changed files
with
8,519 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,76 +1,84 @@ | ||
// For format details, see https://containers.dev/implementors/json_reference/ | ||
{ | ||
"name": "sky_viewer_dev", | ||
"dockerComposeFile": [ | ||
"../docker-compose.local.yml", | ||
"docker-compose.yml" | ||
], | ||
"init": true, | ||
"mounts": [ | ||
{ | ||
"source": "./.devcontainer/bash_history", | ||
"target": "/home/dev-user/.bash_history", | ||
"type": "bind" | ||
"name": "sky_viewer_dev", | ||
"dockerComposeFile": [ | ||
"../docker-compose.local.yml", | ||
"docker-compose.yml" | ||
], | ||
"init": true, | ||
"mounts": [ | ||
{ | ||
"source": "./.devcontainer/bash_history", | ||
"target": "/home/dev-user/.bash_history", | ||
"type": "bind" | ||
}, | ||
{ | ||
"source": "~/.ssh", | ||
"target": "/home/dev-user/.ssh", | ||
"type": "bind" | ||
}, | ||
{ | ||
"source": "..", | ||
"target": "/workspaces", | ||
"type": "bind" | ||
} | ||
], | ||
// Tells devcontainer.json supporting services / tools whether they should run | ||
// /bin/sh -c "while sleep 1000; do :; done" when starting the container instead of the container’s default command | ||
"overrideCommand": false, | ||
"service": "vscode", | ||
// "remoteEnv": {"PATH": "/home/dev-user/.local/bin:${containerEnv:PATH}"}, | ||
// "remoteUser": "dev-user", | ||
// The optional 'workspaceFolder' property is the path VS Code should open by default when | ||
// connected. This is typically a file mount in .devcontainer/docker-compose.yml | ||
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", | ||
// Set *default* container specific settings.json values on container create. | ||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
"features": { | ||
"ghcr.io/devcontainers/features/node:1": {}, | ||
"ghcr.io/devcontainers/features/github-cli:1": {} | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"editor.formatOnSave": true, | ||
"[python]": { | ||
"analysis.autoImportCompletions": true, | ||
"analysis.typeCheckingMode": "basic", | ||
"defaultInterpreterPath": "/usr/local/bin/python", | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": "always" | ||
}, | ||
"editor.defaultFormatter": "charliermarsh.ruff", | ||
"languageServer": "Pylance", | ||
"linting.enabled": true, | ||
"linting.mypyEnabled": true, | ||
"linting.mypyPath": "/usr/local/bin/mypy", | ||
}, | ||
{ | ||
"source": "~/.ssh", | ||
"target": "/home/dev-user/.ssh", | ||
"type": "bind" | ||
"[javascript]": { | ||
"editor.tabSize": 2 | ||
}, | ||
{ | ||
"source": "..", | ||
"target": "/workspaces", | ||
"type": "bind" | ||
} | ||
], | ||
// Tells devcontainer.json supporting services / tools whether they should run | ||
// /bin/sh -c "while sleep 1000; do :; done" when starting the container instead of the container’s default command | ||
"overrideCommand": false, | ||
"service": "vscode", | ||
// "remoteEnv": {"PATH": "/home/dev-user/.local/bin:${containerEnv:PATH}"}, | ||
// "remoteUser": "dev-user", | ||
// The optional 'workspaceFolder' property is the path VS Code should open by default when | ||
// connected. This is typically a file mount in .devcontainer/docker-compose.yml | ||
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", | ||
// Set *default* container specific settings.json values on container create. | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"editor.formatOnSave": true, | ||
"[python]": { | ||
"analysis.autoImportCompletions": true, | ||
"analysis.typeCheckingMode": "basic", | ||
"defaultInterpreterPath": "/usr/local/bin/python", | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": "always" | ||
}, | ||
"editor.defaultFormatter": "charliermarsh.ruff", | ||
"languageServer": "Pylance", | ||
"linting.enabled": true, | ||
"linting.mypyEnabled": true, | ||
"linting.mypyPath": "/usr/local/bin/mypy", | ||
} | ||
}, | ||
// https://code.visualstudio.com/docs/remote/devcontainerjson-reference#_vs-code-specific-properties | ||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"davidanson.vscode-markdownlint", | ||
"mrmlnc.vscode-duplicate", | ||
"visualstudioexptteam.vscodeintellicode", | ||
"visualstudioexptteam.intellicode-api-usage-examples", | ||
// python | ||
"ms-python.python", | ||
"ms-python.vscode-pylance", | ||
"charliermarsh.ruff", | ||
// django | ||
"batisteo.vscode-django" | ||
] | ||
} | ||
}, | ||
// Uncomment the next line if you want start specific services in your Docker Compose config. | ||
// "runServices": [], | ||
// Uncomment the next line if you want to keep your containers running after VS Code shuts down. | ||
// "shutdownAction": "none", | ||
// Uncomment the next line to run commands after the container is created. | ||
"postCreateCommand": "cat .devcontainer/bashrc.override.sh >> ~/.bashrc" | ||
}, | ||
// https://code.visualstudio.com/docs/remote/devcontainerjson-reference#_vs-code-specific-properties | ||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"davidanson.vscode-markdownlint", | ||
"mrmlnc.vscode-duplicate", | ||
"visualstudioexptteam.vscodeintellicode", | ||
"visualstudioexptteam.intellicode-api-usage-examples", | ||
// python | ||
"ms-python.python", | ||
"ms-python.vscode-pylance", | ||
"charliermarsh.ruff", | ||
// django | ||
"batisteo.vscode-django" | ||
] | ||
} | ||
}, | ||
// Uncomment the next line if you want start specific services in your Docker Compose config. | ||
// "runServices": [], | ||
// Uncomment the next line if you want to keep your containers running after VS Code shuts down. | ||
// "shutdownAction": "none", | ||
// Uncomment the next line to run commands after the container is created. | ||
"postCreateCommand": "cat .devcontainer/bashrc.override.sh >> ~/.bashrc" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,6 +42,16 @@ repos: | |
- id: djlint-reformat-django | ||
- id: djlint-django | ||
|
||
- repo: https://github.com/pre-commit/mirrors-eslint | ||
rev: v8.56.0 | ||
hooks: | ||
- id: eslint | ||
name: Eslint | ||
entry: bash -c 'cd frontend && npm run lint' | ||
additional_dependencies: | ||
- [email protected] | ||
- [email protected] | ||
|
||
# sets up .pre-commit-ci.yaml to ensure pre-commit dependencies stay up to date | ||
ci: | ||
autoupdate_schedule: weekly | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM node:22.7.0-bookworm-slim AS base | ||
|
||
ENV GENERATE_SOURCEMAP=false | ||
ENV NODE_OPTIONS=--max_old_space_size=8192 | ||
|
||
COPY ./compose/local/react/start /start | ||
RUN sed -i 's/\r$//g' /start | ||
RUN chmod +x /start | ||
|
||
RUN mkdir /app && chown -R node:node /app | ||
|
||
COPY ./frontend /app | ||
WORKDIR /app | ||
|
||
USER node | ||
|
||
RUN yarn -v | ||
RUN yarn --non-interactive --ignore-optional --network-timeout 500000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o nounset | ||
|
||
yarn dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "next/core-web-vitals" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
.yarn/install-state.gz | ||
|
||
# testing | ||
/coverage | ||
|
||
# next.js | ||
/.next/ | ||
/out/ | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
*.pem | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# local env files | ||
.env*.local | ||
|
||
# vercel | ||
.vercel | ||
|
||
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts |
Oops, something went wrong.