This commit is contained in:
Luke Gustafson
2024-11-27 01:38:13 +00:00
parent 3272aef529
commit c66d43c529
89 changed files with 15 additions and 26604 deletions

View File

@@ -1,279 +0,0 @@
ls
cd .git
ls
cd ..
rm -rf .git
ls
nano .gitignoree
nano .gitignore
git init
git remote add origin https://github.com/LukeGus/ssh-project.git
git add .
git commit -m "Initial commit"
git push -u origin master
git removpe .
git remove .
git push -u origin master
git reset
git reset --soft HEAD~1
git reset HEAD~1
git reset --hard HEAD~1
git add .
git push -u origin master
git commit -m "Initial commit"
git push -u origin main
git push -u origin master
git reset
git clean -fd
git add .
git commit -m "Initial commit"
git push -u origin master
git reset
git clean -fd
git add .
git commit -m "Initial commit"
git push -u origin master
git reset
git clean -fd
git add .
git push -u origin master
git reset
git clean -fd
git add .
git commit -m "Initial commit"
git push -u origin master
git reset
git clean -fd
git commit -m "Initial commit"
git add .
git commit -m "Initial commit"
git push -u origin master
git rm --cached .vscode-server/cli/servers/Stable-f1a4fb101478ce6ec82fe9627c43efbf9e98c813/server/node
git commit -m "Remove large file from Git history"
git push -u origin master
git ls-files .vscode-server/
git rm --cached .vscode-server
git rm -r --cached .vscode-server
git add .
git commit -m "Initial Commit"
git push -f
git push -u origin master
git rm --cached .vscode-server/cli/servers/Stable-f1a4fb101478ce6ec82fe9627c43efbf9e98c813/server/node
git rm --cached .cache/code-server/code-server-4.95.3-linux-amd64.tar.gz
git commit -m "Remove large files from Git history"
git push origin master
sudo apt install git-filter-repo
ls
rm .git
rm -rf .git
sudo apt remove git
apt update
sudo apt update
sudo apt install git
git init
git remote add origin https://github.com/LukeGus/ssh-project.git
git add .
git commit -m "Initial commit"
git push -u origin master
git push -u origin main
git checkout main
git push origin main
git push --set-upstream origin main
git push origin master
git branch -m master main
git push -u origin main
git add .
git commit -m "Commit"
git push
git pull
git add .
git commit -m "Test"
<<<<<<< HEAD
<<<<<<< HEAD
ls
cd /home/bugattiguy527
ls
pwd
ls
cd /docker
ls
cd docker
ls
docker-compose build
docker compose
docker
sudo update
sudo apt update
sudo apt updrade
sudo apt upgrade
docker
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
docker-compose build
docker compose build
sudo dockere compose build
sudo docker compose build
sudo systemctl start docker
ps -p 1 -o comm=
sudo dockerd &
docker-compose build
git add .
git commit -m "Commit"
git push
git pull
git aadd .
git add .
git commit -m "Commit"
git push
git reset
git add .
git commit -m "Commit"
git push
git pull
git add .
git commit -m "Commit"
git push
git add .
git commit -m "Commit"
git push
git add .
git commit -m "Commit"
git push
git reset
git add .
git commit -m "Commit"
git push
ls
cd ..
ls
cd src
ls
cd components
ls
node server.js
apt install node
sudo su
apt install node
node server.js
git a dd .
git add .
git commit -m "Commit"
git push
git add .
git commit -m "Commit"
git push
git reset
git add .
git commit -m "Commit"
git add .
git commit -m "Commit"
git push
git reset
git add .
git commit -m "Commit"
git push
git reset
git add .
git commit -m "Commit"
git add .
git push
git pull
git reset
git reset --soft HEAD~2
git push
git add .
git pull
git commit -m "Commit"
git add .
git reset
git add .
git reset
git add .
git commit -m "Commit:
git commit -m "Commit"
git add .
git push
git pull
gitt add .
git add .
git commit -m "Commit"
git push
git status
git fetch
git pull
git rm --cached -r .
git reset --hard
git add .
git commit -m "Commit"
git push
git reeset --hhard
git reeset --hard
git reset
git add .
git commit -m "Commit"
git push
git reset --hard
git add .
git commit -m "Commit"
git push
git push origin main
ls
cd ~
ls
rm -rf .git
apt remove git
sudo apt remove git
apt install git
sudo apt install git
git init
git remote add origin https://github.com/LukeGus/ssh-project.git
git add .
git commit -m "Commit"
git branch -m master main
git push -u origin main
git push
git pull
git push
git push --set-upstream origin main
git pull origin main --rebase
git pull origin main
git status
git add .
git commit -m "Commit"
git pushh
git push
git push origin HEAD:main
git add .
git commit -m "Commit"
git push -f
git push origin HEAD:main -f
git add .
git commit -m "Commit"
git push
git reset
git add .
git commit -m "Commit"
git push
git push origin HEAD:main
git add .
git commit -m "Commit"
git push origin HEAD:main
git add .
git commit -m "Commit"
git push origin HEAD:main
git add .
git commit -m "Commit"
git push origin HEAD:main
git add .
git commit -m "Commit"
git push origin HEAD:main
=======
>>>>>>> fc03385d60aedd35d147f7af3ce97533fa67a8d7
=======
>>>>>>> fc03385d60aedd35d147f7af3ce97533fa67a8d7

117
.bashrc
View File

@@ -1,117 +0,0 @@
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color|*-256color) color_prompt=yes;;
esac
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes
if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# colored GCC warnings and errors
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi

View File

@@ -1,4 +0,0 @@
bind-addr: 127.0.0.1:8080
auth: password
password: 704cd31bbfead3cfadb5cbb7
cert: false

View File

@@ -1,11 +0,0 @@
version: 2
authtoken: 2H3ZoIoYvRBckudPKvb7iyNvTgW_48SFniUxViJjuvcUvr1tA
tunnels:
first:
proto: http
addr: http://localhost:3000
second:
proto: tcp
addr: 3001

View File

@@ -1,3 +0,0 @@
version: "3"
agent:
authtoken: 2H3ZoIoYvRBckudPKvb7iyNvTgW_48SFniUxViJjuvcUvr1tA

View File

@@ -1,18 +0,0 @@
-----BEGIN X509 CRL-----
MIIC3TCBxgIBATANBgkqhkiG9w0BAQwFADBiMQswCQYDVQQGEwJVUzEVMBMGA1UE
ChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSEwHwYD
VQQDExhEaWdpQ2VydCBUcnVzdGVkIFJvb3QgRzQXDTI0MTExOTIxMDg1OVoXDTI0
MTIxMDIxMDg1OVqgMDAuMB8GA1UdIwQYMBaAFOzX44LScV1kTN8uZz/nupiuHA9P
MAsGA1UdFAQEAgICojANBgkqhkiG9w0BAQwFAAOCAgEASW99eLNOfhm7qGKK7r2I
kiK4Rj6+YjmzEDmfCIgoGqbVbEi8IQtQch9Y5xKNX8rgPKdDlfGE03TcgZ6w6ygR
cQ62ocVEn5g/ipULaxQaKstyTqSY/3vf19+QYxTGPfcvTwtHgPrevgyqkXvSy+Iu
YcRpPX2RfEN5hBeFfhWnlLDj9jbqTtJw1rKzBpfvKZN/6IsxzTtRRdlceClVknyM
Ohc2oKAKBs2RKC1UnxgKl5Y30jnWbARiidJY89QaD3YBjFfMYKsRddSjJVR/Vk9I
RpkwikER9b1QmMO1kGl2tFr+mbluMCprs4x3C21Bgjllvyfrd/6F1suOx5RiHoeX
iokKUH+GCNfJMsMAWAKbE3BoCzdaFrKIyBO9w+0R5HPOJ+DqIGYZgRM5RiK30Rbn
ShaPzpU22OUvYcuZGGHa8W5snUlXuFYOzCV6ieEDGthCv9/mM9UyEDpodwYOqjJi
zVGHX39p6BhOpLDP5j3j/6kARtFm7yVQ3I5qD2N9CnNZOwErectFCLW50eJW4Oe2
N+r8Q0VqkBuf3slyBEfaQrVUAq9wvxn4gGUTd2HU3zhSw+tYkRkh06yBMipMwmf/
Z3imZj9ll4mhSpWqRkITKryKgZOwU3vWzngClgITeR1RRi+uMEsnitALzysV+U6B
t/uiR5yEPaAniMqIZ5yI7NM=
-----END X509 CRL-----

View File

@@ -1,18 +0,0 @@
-----BEGIN X509 CRL-----
MIIC3jCBxwIBATANBgkqhkiG9w0BAQsFADBjMQswCQYDVQQGEwJVUzEXMBUGA1UE
ChMORGlnaUNlcnQsIEluYy4xOzA5BgNVBAMTMkRpZ2lDZXJ0IFRydXN0ZWQgRzQg
UlNBNDA5NiBTSEEyNTYgVGltZVN0YW1waW5nIENBFw0yNDExMjUyMzAxMzdaFw0y
NDEyMDIyMzAxMzdaoDAwLjAfBgNVHSMEGDAWgBS6FtltTYUvcyl2mi91jGogj57I
bzALBgNVHRQEBAICA84wDQYJKoZIhvcNAQELBQADggIBAAi34UKL2UDOAGgb/iWI
2/YZ7RSmH1J2sUFLVWxb6f50USYYZGXj1FFeQWogaRhmSWtnSKFcpx//yZLWOEZZ
4hEA5H/nijAjmpN354p8AjGXxONDCaluZQtVDGIgfOPMT197GBX9UWpe7Y8thdax
o7b8KkiO2tk7Nigu3ciLI6cxr93KIgnFipbt+nMwdTUtGMGNqhqB/RVrUZ3lIu9B
PtDVFvhkG4W5rHYr9N2pGeIzQO6t1SDpfLxX2ye1zeE1tuwgMLs6kEMvhwiqyC7R
BsztpwttUYIKQzvCXYmXX1vEc5XIDCAku+DdxniXoDoZGvx8B7kplz8SfMyTcixy
UvQEqO88549QIbn/NXH2lQJ94v5TEzEJlbqrp7Qx+lH4OffpYJk2gN2yZWcWAlBz
utvzn1hLhgtDD1ILLkqK/s9EubMpqNg27cSRSgyBrEWVm5P6EFhR2qh5SsoOlbx6
/+HuF4LcHdxQ9/FrBSYiIKNuJc49wx4pngW9L+hDrYzBtVtXgn89r2BMcw59kCfI
ebyKq6UfdIpEVVkeSeCQAdRr43NmCbh2A610suWOs2yba7A5Lth3kfUMdcutj7Nv
jsVM2jWdYxnt58vJvrAqtFyAKH+YRDIBXAzrPYqHtNjSdhqae0DEXPFjyzIQyG9c
jJe0e3FgoOHoWrgEdo5uisM5
-----END X509 CRL-----

File diff suppressed because it is too large Load Diff

17
.gitignore vendored
View File

@@ -128,7 +128,20 @@ yarn-error.log*
# VSCode Files # VSCode Files
.vscode-server/ .vscode-server/
/vscode-server
# Configs # Configs
.config .config/
# .dotnet
.dotnet/
# .local
.local/
# Extras
.bash_history
.bashrc
.init_done
.profile
.sudo_as_admin_successful
.wget-hsts

View File

View File

@@ -1 +0,0 @@
{"input":{"location":{"$mid":1,"fsPath":"/home/bugattiguy527/.local/share/code-server/extensions/extensions.json","external":"file:///home/bugattiguy527/.local/share/code-server/extensions/extensions.json","path":"/home/bugattiguy527/.local/share/code-server/extensions/extensions.json","scheme":"file"},"mtime":1732635039605,"profile":true,"profileScanOptions":{"bailOutWhenFileNotFound":true},"type":1,"excludeObsolete":true,"validate":true,"productVersion":"1.95.3","productDate":"2024-11-15T19:35:09.428Z","productCommit":"912a7a9d89f560d1a204caf205833db0850e7b4b","devMode":false,"language":"en","translations":{}},"result":[]}

View File

@@ -1,3 +0,0 @@
{
"workbench.colorTheme": "Default Dark Modern"
}

View File

@@ -1,4 +0,0 @@
{
"workbench.colorTheme": "Default Dark Modern",
"javascript.updateImportsOnFileMove.enabled": "always"
}

View File

@@ -1 +0,0 @@
{"version":1,"resource":"vscode-remote:/home/bugattiguy527/.local/share/code-server/User/settings.json","entries":[{"id":"LtdN.json","timestamp":1732635057113},{"id":"ZieZ.json","timestamp":1732669893385}]}

View File

@@ -1,35 +0,0 @@
# Stage 1: Build the React app (Frontend)
FROM node:18-slim AS frontend-build
WORKDIR /app
# Copy all project files into the image
COPY . .
# Install dependencies
RUN npm install
# Build the application
RUN npm run build
# Stage 2: Setup Nginx to serve the React App
FROM nginx:alpine AS frontend-server
# Copy built files from builder stage to nginx
COPY --from=frontend-build /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
# Stage 3: Setup the Backend
FROM node:18-slim AS backend
WORKDIR /app
# Copy package.json and package-lock.json
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy server.js from its new location
COPY src/components/server.js /app/
EXPOSE 3001
CMD ["node", "server.js"]

View File

@@ -1,35 +0,0 @@
# Stage 1: Build the React app (Frontend)
FROM node:18-slim AS frontend-build
WORKDIR /app
# Copy all project files into the image
COPY . .
# Install dependencies
RUN npm install
# Build the application
RUN npm run build
# Stage 2: Setup Nginx to serve the React App
FROM nginx:alpine AS frontend-server
# Copy built files from builder stage to nginx
COPY --from=frontend-build /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
# Stage 3: Setup the Backend
FROM node:18-slim AS backend
WORKDIR /app
# Copy package.json and package-lock.json
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy server.js from its new location
COPY /home/bugattiguy527/src/components/server.js /app/src/components
EXPOSE 3001
CMD ["node", "server.js"]

View File

@@ -1 +0,0 @@
{"version":1,"resource":"vscode-remote://coder.karmaashomepage.online/home/bugattiguy527/Dockerfile","entries":[{"id":"UqhJ","timestamp":1732636530341},{"id":"obRf","timestamp":1732636548561},{"id":"abiG","timestamp":1732636571673},{"id":"nkvD","timestamp":1732636588673},{"id":"ubTA","timestamp":1732636760308},{"id":"uFei","timestamp":1732650991346}]}

View File

@@ -1,35 +0,0 @@
# Stage 1: Build the React app (Frontend)
FROM node:18-slim AS frontend-build
WORKDIR /app
# Copy all project files into the image
COPY . .
# Install dependencies
RUN npm install
# Build the application
RUN npm run build
# Stage 2: Setup Nginx to serve the React App
FROM nginx:alpine AS frontend-server
# Copy built files from builder stage to nginx
COPY --from=frontend-build /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
# Stage 3: Setup the Backend
FROM node:18-slim AS backend
WORKDIR /app
# Copy package.json and package-lock.json
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy server.js from its new location
COPY /app/src/components/server.js /app/src/components
EXPOSE 3001
CMD ["node", "server.js"]

View File

@@ -1,35 +0,0 @@
# Stage 1: Build the React app (Frontend)
FROM node:18-slim AS frontend-build
WORKDIR /app
# Copy all project files into the image
COPY . .
# Install dependencies
RUN npm install
# Build the application
RUN npm run build
# Stage 2: Setup Nginx to serve the React App
FROM nginx:alpine AS frontend-server
# Copy built files from builder stage to nginx
COPY --from=frontend-build /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
# Stage 3: Setup the Backend
FROM node:18-slim AS backend
WORKDIR /app
# Copy package.json and package-lock.json
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy server.js from its new location
COPY /home/bugattiguy527/src/components/server.js /app/src/components
EXPOSE 3001
CMD ["node", "server.js"]

View File

@@ -1,35 +0,0 @@
# Stage 1: Build the React app (Frontend)
FROM node:18-slim AS frontend-build
WORKDIR /app
# Copy all project files into the image
COPY . .
# Install dependencies
RUN npm install
# Build the application
RUN npm run build
# Stage 2: Setup Nginx to serve the React App
FROM nginx:alpine AS frontend-server
# Copy built files from builder stage to nginx
COPY --from=frontend-build /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
# Stage 3: Setup the Backend
FROM node:18-slim AS backend
WORKDIR /app
# Copy package.json and package-lock.json
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy server.js from its new location
COPY /app/src/components/server.js /app
EXPOSE 3001
CMD ["node", "/app/src/components/server.js"]

View File

@@ -1,35 +0,0 @@
# Stage 1: Build the React app (Frontend)
FROM node:18-slim AS frontend-build
WORKDIR /app
# Copy all project files into the image
COPY . .
# Install dependencies
RUN npm install
# Build the application
RUN npm run build
# Stage 2: Setup Nginx to serve the React App
FROM nginx:alpine AS frontend-server
# Copy built files from builder stage to nginx
COPY --from=frontend-build /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
# Stage 3: Setup the Backend
FROM node:18-slim AS backend
WORKDIR /app
# Copy package.json and package-lock.json
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy server.js from its new location
COPY /app/src/components/server.js /app/src/components
EXPOSE 3001
CMD ["node", "/app/src/components/server.js"]

View File

@@ -1,40 +0,0 @@
name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install dependencies and build frontend
run: |
cd frontend
npm install
npm run build
ls -R . # Debugging: List files in frontend after build
- name: Debug workspace structure
run: ls -R /github/workspace # Debugging: Verify where `dist` is created
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Set up Docker login to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
run: |
docker build -f docker/Dockerfile . --tag ghcr.io/$REPO_NAME/ssh-project:$DATE_TAG
- name: Push Docker image to GHCR
run: docker push ghcr.io/$REPO_NAME/ssh-project:$DATE_TAG

View File

@@ -1,33 +0,0 @@
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install dependencies and build frontend
run: |
cd frontend
npm install
npm run build
ls -R . # Debugging: List files in frontend after build
- name: Debug workspace structure
run: ls -R /github/workspace # Debugging: Verify where `dist` is created
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Set up Docker login to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
run: |
docker build -f docker/Dockerfile . --tag ghcr.io/$REPO_NAME/ssh-project:$DATE_TAG
- name: Push Docker image to GHCR
run: docker push ghcr.io/$REPO_NAME/ssh-project:$DATE_TAG

View File

@@ -1,48 +0,0 @@
name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install and Build Frontend
run: |
cd frontend
npm install
npm run build
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to Docker Registry (GHCR)
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
run: docker build -f Dockerfile -t ghcr.io/${{ github.repository_owner }}/ssh-project:${{ github.run_id }} .
- name: Push Docker image to GHCR
run: docker push ghcr.io/${{ github.repository_owner }}/ssh-project:${{ github.run_id }}

View File

@@ -1,52 +0,0 @@
name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js for Building Frontend
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install Dependencies and Build Frontend
run: |
cd frontend
npm install
npm run build
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Login to Docker Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Lowercase repository owner
id: lowercase_repo_owner
run: echo "REPO_OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
- name: Build and Push Docker image
uses: docker/build-push-action@v2
with:
context: .
file: ./docker/Dockerfile
push: true
tags: ghcr.io/${{ env.REPO_OWNER }}/ssh-project:${{ github.run_id }}
- name: Post-build clean-up
run: docker system prune -af

View File

@@ -1 +0,0 @@
{"version":1,"resource":"vscode-remote://coder.karmaashomepage.online/home/bugattiguy527/.github/workflows/docker-image.yml","entries":[{"id":"9X2e.yml","timestamp":1732667889336},{"id":"3EZP.yml","timestamp":1732667936044},{"id":"jUoS.yml","source":"undoRedo.source","timestamp":1732667990352},{"id":"YqrT.yml","timestamp":1732669649485},{"id":"gDh9.yml","timestamp":1732670036109},{"id":"dcPj.yml","timestamp":1732670297652}]}

View File

@@ -1,52 +0,0 @@
name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js for Building Frontend
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install Dependencies and Build Frontend
run: |
cd frontend
npm install
npm run build
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Login to Docker Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Lowercase repository owner
id: lowercase_repo_owner
run: echo "REPO_OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
- name: Build and Push Docker image
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile
push: true
tags: ghcr.io/${{ env.REPO_OWNER }}/ssh-project:${{ github.run_id }}
- name: Post-build clean-up
run: docker system prune -af

View File

@@ -1,41 +0,0 @@
name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Set up Docker login to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Generate docker tag
id: prep
run: |
echo "REPO_NAME=$(echo '${{ github.repository_owner }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
echo "DATE_TAG=$(date +%s)" >> $GITHUB_ENV
- name: Build Docker image
run: docker build -f docker/Dockerfile . --tag ghcr.io/$REPO_NAME/ssh-project:$DATE_TAG
- name: Push Docker image to GHCR
run: docker push ghcr.io/$REPO_NAME/ssh-project:$DATE_TAG

View File

@@ -1,134 +0,0 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
*.lcov
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# TypeScript v1 declaration files
typings/
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
.env.test
# parcel-bundler cache (https://parceljs.org/)
.cache
# Next.js build output
.next
# Nuxt.js build / generate output
.nuxt
dist
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# TernJS port file
.tern-port
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
# production
/build
# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# VSCode Files
.vscode-server/
/vscode-server
# Configs
.config/ngrok

View File

@@ -1,134 +0,0 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
*.lcov
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# TypeScript v1 declaration files
typings/
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
.env.test
# parcel-bundler cache (https://parceljs.org/)
.cache
# Next.js build output
.next
# Nuxt.js build / generate output
.nuxt
dist
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# TernJS port file
.tern-port
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
# production
/build
# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# VSCode Files
.vscode-server/
/vscode-server
# Configs
.config

View File

@@ -1,134 +0,0 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
*.lcov
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# TypeScript v1 declaration files
typings/
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
.env.test
# parcel-bundler cache (https://parceljs.org/)
.cache
# Next.js build output
.next
# Nuxt.js build / generate output
.nuxt
dist
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# TernJS port file
.tern-port
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
# production
/build
# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# VSCode Files
.vscode-server/
/vscode-server
# Configs
.config/ngrok

View File

@@ -1 +0,0 @@
{"version":1,"resource":"vscode-remote://coder.karmaashomepage.online/home/bugattiguy527/.gitignore","entries":[{"id":"uhKc","timestamp":1732670631468},{"id":"j82h","timestamp":1732670758655},{"id":"OWBP","timestamp":1732670806230},{"id":"Utsq","timestamp":1732670833946},{"id":"Ql0C","timestamp":1732670903470}]}

View File

@@ -1,135 +0,0 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
*.lcov
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# TypeScript v1 declaration files
typings/
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
.env.test
# parcel-bundler cache (https://parceljs.org/)
.cache
# Next.js build output
.next
# Nuxt.js build / generate output
.nuxt
dist
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# TernJS port file
.tern-port
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
# production
/build
# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# VSCode Files
.vscode-server/
/vscode-server
# Configs
.config/
/config

View File

@@ -1,134 +0,0 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
*.lcov
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# TypeScript v1 declaration files
typings/
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
.env.test
# parcel-bundler cache (https://parceljs.org/)
.cache
# Next.js build output
.next
# Nuxt.js build / generate output
.nuxt
dist
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# TernJS port file
.tern-port
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
# production
/build
# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# VSCode Files
.vscode-server/
/vscode-server
# Configs
.config/ngrok

View File

@@ -1,42 +0,0 @@
# Stage 1: Build React frontend
FROM node:18-slim as build
# Set working directory
WORKDIR /app
# Copy project files
COPY . .
# Install dependencies and build the frontend
RUN npm install
RUN npm run build
# Stage 2: Backend + Nginx setup
FROM node:18-slim
# Set working directory for the backend
WORKDIR /app
# Copy backend files and entrypoint script
COPY . .
COPY entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/entrypoint.sh
# Install backend dependencies
RUN npm install
# Copy the React frontend build into a directory for Nginx
RUN mkdir -p /usr/share/nginx/html
COPY --from=build /app/dist /usr/share/nginx/html
# Install Nginx
RUN apt-get update && apt-get install -y nginx && apt-get clean
# Copy Nginx configuration
COPY /docker/nginx.conf /etc/nginx/conf.d/default.conf
# Expose the ports
EXPOSE 80 3001
# Start both the backend and Nginx
CMD ["/usr/local/bin/entrypoint.sh"]gi

View File

@@ -1,30 +0,0 @@
<<<<<<< HEAD
# Stage 1: Build the React app (Frontend)
FROM node:18-slim AS frontend-build
WORKDIR /app
# Copy all project files into the image
COPY . .
# Install dependencies
RUN npm install
# Build the application
RUN npm run build
# Stage 2: Setup Nginx to serve the React App
FROM nginx:alpine AS frontend-server
# Copy built files from builder stage to Nginx's serving directory
COPY --from=frontend-build /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
# Stage 3: Setup the Backend
FROM node:18-slim AS backend
WORKDIR /app
# Copy package.json and package-lock.json
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy server.js from its new location
COPY src/components/server.js /app/server.js
EXPOSE 3001
# Start the backend server
CMD ["node", "server.js"]

View File

@@ -1,31 +0,0 @@
# Stage 1: Build the React app (Frontend)
FROM node:18-slim AS frontend-build
WORKDIR /app
# Copy frontend files
COPY frontend/package*.json ./frontend/
WORKDIR /app/frontend
RUN npm install
COPY frontend/ .
RUN npm run build
# Stage 2: Setup Nginx to serve the React App
FROM nginx:alpine AS frontend-server
COPY --from=frontend-build /app/frontend/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
# Stage 3: Setup the Backend
FROM node:18-slim AS backend
WORKDIR /app
# Copy package.json to /app directory
COPY backend/package*.json ./
RUN npm install
# Copy remaining backend files
COPY backend/ .
# Run backend
EXPOSE 3001
CMD ["node", "/app/src/components/server.js"]

View File

@@ -1,30 +0,0 @@
FROM node:18-slim AS combined-build
WORKDIR /app
# Copy and install frontend dependencies
COPY frontend/package*.json ./frontend/
WORKDIR /app/frontend
RUN npm install
COPY frontend/ .
RUN npm run build
# Copy frontend build output to /app directory
WORKDIR /app
RUN mkdir -p /app/public
COPY dist /app/public
# Setup backend
COPY backend/package*.json ./
RUN npm install
COPY backend/ .
# Setup Nginx to serve the React App
FROM nginx:alpine
COPY --from=combined-build /app/public /usr/share/nginx/html
# Expose ports for frontend and backend
EXPOSE 80
EXPOSE 3001
# Run backend and frontend servers
CMD ["sh", "-c", "node /app/src/components/server.js & nginx -g 'daemon off;'"]

View File

@@ -1,30 +0,0 @@
FROM node:18-slim AS combined-build
WORKDIR /app
# Copy and install frontend dependencies
COPY frontend/package*.json ./frontend/
WORKDIR /app/frontend
RUN npm install
COPY frontend/ .
RUN npm run build
# Copy frontend build output to /app directory
WORKDIR /app
RUN mkdir -p /app/public
COPY /app/dist /app/public
# Setup backend
COPY backend/package*.json ./
RUN npm install
COPY backend/ .
# Setup Nginx to serve the React App
FROM nginx:alpine
COPY --from=combined-build /app/public /usr/share/nginx/html
# Expose ports for frontend and backend
EXPOSE 80
EXPOSE 3001
# Run backend and frontend servers
CMD ["sh", "-c", "node /app/src/components/server.js & nginx -g 'daemon off;'"]

View File

@@ -1,23 +0,0 @@
# Build frontend
FROM node:18-slim AS frontend-build
WORKDIR /app
COPY frontend/package*.json ./frontend/
RUN npm --prefix frontend install
COPY frontend/ ./frontend/
RUN npm --prefix frontend run build
# Build backend
FROM node:18-slim AS backend-build
WORKDIR /backend
COPY backend/package*.json ./
RUN npm install
COPY backend/ .
# Production image
FROM nginx:alpine
# Copy frontend static files to nginx folder
COPY --from=frontend-build /app/frontend/dist /usr/share/nginx/html
# Copy backend application
COPY --from=backend-build /backend /backend
# Start backend and frontend servers
CMD ["sh", "-c", "node /backend/server.js & nginx -g 'daemon off;'"]

View File

@@ -1,42 +0,0 @@
# Stage 1: Build React frontend
FROM node:18-slim as build
# Set working directory
WORKDIR /app
# Copy project files
COPY . .
# Install dependencies and build the frontend
RUN npm install
RUN npm run build
# Stage 2: Backend + Nginx setup
FROM node:18-slim
# Set working directory for the backend
WORKDIR /app
# Copy backend files and entrypoint script
COPY . .
COPY entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/entrypoint.sh
# Install backend dependencies
RUN npm install
# Copy the React frontend build into a directory for Nginx
RUN mkdir -p /usr/share/nginx/html
COPY --from=build /app/dist /usr/share/nginx/html
# Install Nginx
RUN apt-get update && apt-get install -y nginx && apt-get clean
# Copy Nginx configuration
COPY /docker/nginx.conf /etc/nginx/conf.d/default.conf
# Expose the ports
EXPOSE 80 3001
# Start both the backend and Nginx
CMD ["/usr/local/bin/entrypoint.sh"]

View File

@@ -1,31 +0,0 @@
# Stage 1: Build the React app (Frontend)
FROM node:18-slim AS frontend-build
WORKDIR /app
COPY . .
# Copy frontend files
COPY frontend/package*.json ./frontend/
WORKDIR /app/frontend
RUN npm install
COPY frontend/ .
RUN npm run build
# Stage 2: Setup Nginx to serve the React App
FROM nginx:alpine AS frontend-server
COPY --from=frontend-build /app/frontend/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
# Stage 3: Setup the Backend
FROM node:18-slim AS backend
WORKDIR /app
# Copy package.json to /app directory
RUN npm install
# Copy remaining backend files
COPY backend/ .
# Run backend
EXPOSE 3001
CMD ["node", "/app/src/components/server.js"]

View File

@@ -1,32 +0,0 @@
# Stage 1: Build the React app (Frontend)
FROM node:18-slim AS frontend-build
WORKDIR /app
COPY . .
# Copy frontend files
COPY frontend/package*.json ./frontend/
WORKDIR /app/frontend
RUN npm install
COPY frontend/ .
RUN npm run build
# Stage 2: Setup Nginx to serve the React App
FROM nginx:alpine AS frontend-server
COPY --from=frontend-build /app/frontend/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
# Stage 3: Setup the Backend
FROM node:18-slim AS backend
WORKDIR /app
# Copy package.json to /app directory
COPY backend/package*.json ./app
RUN npm install
# Copy remaining backend files
COPY backend/ .
# Run backend
EXPOSE 3001
CMD ["node", "/app/src/components/server.js"]

View File

@@ -1,73 +0,0 @@
<<<<<<< HEAD
# Stage 1: Build the React app (Frontend)
FROM node:18-slim AS frontend-build
WORKDIR /app
# Copy all project files into the image
COPY . .
# Install dependencies
RUN npm install
# Build the application
RUN npm run build
# Stage 2: Setup Nginx to serve the React App
FROM nginx:alpine AS frontend-server
# Copy built files from builder stage to Nginx's serving directory
COPY --from=frontend-build /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
# Stage 3: Setup the Backend
FROM node:18-slim AS backend
WORKDIR /app
# Copy package.json and package-lock.json
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy server.js from its new location
COPY src/components/server.js /app/server.js
EXPOSE 3001
# Start the backend server
CMD ["node", "server.js"]
=======
# Stage 1: Build React frontend
FROM node:18-slim as build
# Set working directory
WORKDIR /app
# Copy project files
COPY . .
# Install dependencies and build the frontend
RUN npm install
RUN npm run build
# Stage 2: Backend + Nginx setup
FROM node:18-slim
# Set working directory for the backend
WORKDIR /app
# Copy backend files and entrypoint script
COPY . .
COPY entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/entrypoint.sh
# Install backend dependencies
RUN npm install
# Copy the React frontend build into a directory for Nginx
RUN mkdir -p /usr/share/nginx/html
COPY --from=build dist /usr/share/nginx/html
# Install Nginx
RUN apt-get update && apt-get install -y nginx && apt-get clean
# Copy Nginx configuration
COPY /docker/nginx.conf /etc/nginx/conf.d/default.conf
# Expose the ports
EXPOSE 80 3001
# Start both the backend and Nginx
CMD ["/usr/local/bin/entrypoint.sh"]

View File

@@ -1,31 +0,0 @@
# Stage 1: Build the React app (Frontend)
FROM node:18-slim AS frontend-build
WORKDIR /app
# Copy frontend files
COPY frontend/package*.json ./frontend/
WORKDIR /app/frontend
RUN npm install
COPY frontend/ .
RUN npm run build
# Stage 2: Setup Nginx to serve the React App
FROM nginx:alpine AS frontend-server
COPY --from=frontend-build /app/frontend/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
# Stage 3: Setup the Backend
FROM node:18-slim AS backend
WORKDIR /app
# Copy package.json to /app directory
COPY backend/package*.json ./
RUN npm install
# Copy remaining backend files
COPY backend/ .
# Run backend
EXPOSE 3001
CMD ["node", "/app/src/components/server.js"]

View File

@@ -1,74 +0,0 @@
<<<<<<< HEAD
# Stage 1: Build the React app (Frontend)
FROM node:18-slim AS frontend-build
WORKDIR /app
# Copy all project files into the image
COPY . .
# Install dependencies
RUN npm install
# Build the application
RUN npm run build
# Stage 2: Setup Nginx to serve the React App
FROM nginx:alpine AS frontend-server
# Copy built files from builder stage to Nginx's serving directory
COPY --from=frontend-build /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
# Stage 3: Setup the Backend
FROM node:18-slim AS backend
WORKDIR /app
# Copy package.json and package-lock.json
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy server.js from its new location
COPY src/components/server.js /app/server.js
EXPOSE 3001
# Start the backend server
CMD ["node", "server.js"]
=======
# Stage 1: Build React frontend
FROM node:18-slim as build
# Set working directory
WORKDIR /app
# Copy project files
COPY . .
# Install dependencies and build the frontend
RUN npm install
RUN npm run build
# Stage 2: Backend + Nginx setup
FROM node:18-slim
# Set working directory for the backend
WORKDIR /app
# Copy backend files and entrypoint script
COPY . .
COPY entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/entrypoint.sh
# Install backend dependencies
RUN npm install
# Copy the React frontend build into a directory for Nginx
RUN mkdir -p /usr/share/nginx/html
COPY --from=build dist /usr/share/nginx/html
# Install Nginx
RUN apt-get update && apt-get install -y nginx && apt-get clean
# Copy Nginx configuration
COPY /docker/nginx.conf /etc/nginx/conf.d/default.conf
# Expose the ports
EXPOSE 80 3001
# Start both the backend and Nginx
CMD ["/usr/local/bin/entrypoint.sh"]
>>>>>>> fc03385d60aedd35d147f7af3ce97533fa67a8d7

View File

@@ -1,32 +0,0 @@
# Stage 1: Build the React app (Frontend)
FROM node:18-slim AS frontend-build
WORKDIR /app
COPY . .
# Copy frontend files
COPY frontend/package*.json ./frontend/
WORKDIR /app/frontend
RUN npm install
COPY frontend/ .
RUN npm run build
# Stage 2: Setup Nginx to serve the React App
FROM nginx:alpine AS frontend-server
COPY --from=frontend-build /app/frontend/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
# Stage 3: Setup the Backend
FROM node:18-slim AS backend
WORKDIR /app
# Copy package.json to /app directory
COPY backend/package*.json /
RUN npm install
# Copy remaining backend files
COPY backend/ .
# Run backend
EXPOSE 3001
CMD ["node", "/app/src/components/server.js"]

View File

@@ -1,31 +0,0 @@
# Stage 1: Build the React app (Frontend)
FROM node:18-slim AS frontend-build
WORKDIR /app
# Copy frontend files
COPY frontend/package*.json ./frontend/
WORKDIR /app/frontend
RUN npm install
COPY frontend/ .
RUN npm run build
# Stage 2: Setup Nginx to serve the React App
FROM nginx:alpine AS frontend-server
COPY --from=frontend-build /app/frontend/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
# Stage 3: Setup the Backend
FROM node:18-slim AS backend
WORKDIR /app
# Copy package.json to /app directory
RUN npm install
# Copy remaining backend files
COPY backend/ .
# Run backend
EXPOSE 3001
CMD ["node", "/app/src/components/server.js"]

View File

@@ -1,42 +0,0 @@
# Stage 1: Build React frontend
FROM node:18-slim as build
# Set working directory
WORKDIR /app
# Copy project files
COPY . .
# Install dependencies and build the frontend
RUN npm install
RUN npm run build
# Stage 2: Backend + Nginx setup
FROM node:18-slim
# Set working directory for the backend
WORKDIR /app
# Copy backend files and entrypoint script
COPY . .
COPY entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/entrypoint.sh
# Install backend dependencies
RUN npm install
# Copy the React frontend build into a directory for Nginx
RUN mkdir -p /usr/share/nginx/html
COPY --from=build /app/dist /usr/share/nginx/html
# Install Nginx
RUN apt-get update && apt-get install -y nginx && apt-get clean
# Copy Nginx configuration
COPY /docker/nginx.conf /etc/nginx/conf.d/default.conf
# Expose the ports
EXPOSE 80 3001
# Start both the backend and Nginx
CMD ["/usr/local/bin/entrypoint.sh"]gi

View File

@@ -1,31 +0,0 @@
# Stage 1: Build the React app (Frontend)
FROM node:18-slim AS frontend-build
WORKDIR /app
# Copy frontend files
COPY frontend/package*.json ./frontend/
WORKDIR /app/frontend
RUN npm install
COPY frontend/ .
RUN npm run build
# Stage 2: Setup Nginx to serve the React App
FROM nginx:alpine AS frontend-server
COPY --from=frontend-build /app/frontend/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
# Stage 3: Setup the Backend
FROM node:18-slim AS backend
WORKDIR /app
# Copy package.json to /app directory
COPY frontend/package*.json ./
RUN npm install
# Copy remaining backend files
COPY backend/ .
# Run backend
EXPOSE 3001
CMD ["node", "/app/src/components/server.js"]

View File

@@ -1,42 +0,0 @@
# Stage 1: Build React frontend
FROM node:18-slim as build
# Set working directory
WORKDIR /app
# Copy project files
COPY . .
# Install dependencies and build the frontend
RUN npm install
RUN npm run build
# Stage 2: Backend + Nginx setup
FROM node:18-slim
# Set working directory for the backend
WORKDIR /app
# Copy backend files and entrypoint script
COPY . .
COPY entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/entrypoint.sh
# Install backend dependencies
RUN npm install
# Copy the React frontend build into a directory for Nginx
RUN mkdir -p /usr/share/nginx/html
COPY --from=build /app/dist /usr/share/nginx/html
# Install Nginx
RUN apt-get update && apt-get install -y nginx && apt-get clean
# Copy Nginx configuration
COPY /docker/nginx.conf /etc/nginx/conf.d/default.conf
# Expose the ports
EXPOSE 80 3001
# Start both the backend and Nginx
CMD ["/usr/local/bin/entrypoint.sh"]

View File

@@ -1,31 +0,0 @@
# Combined Frontend and Backend Setup
FROM node:18-slim AS combined-build
WORKDIR /app
# Copy and install frontend dependencies
COPY frontend/package*.json ./frontend/
WORKDIR /app/frontend
RUN npm install
COPY frontend/ .
RUN npm run build
# Copy frontend build output to /app directory
WORKDIR /app
RUN mkdir -p /app/public
COPY --from=combined-build /app/frontend/dist /app/public
# Setup backend
COPY backend/package*.json ./
RUN npm install
COPY backend/ .
# Setup Nginx to serve the React App
FROM nginx:alpine
COPY --from=combined-build /app/public /usr/share/nginx/html
# Expose ports for frontend and backend
EXPOSE 80
EXPOSE 3001
# Run backend and frontend servers
CMD ["sh", "-c", "node /app/src/components/server.js & nginx -g 'daemon off;'"]

View File

@@ -1,29 +0,0 @@
# Stage 1: Build the React app (Frontend)
FROM node:18-slim AS frontend-build
WORKDIR /app
# Copy frontend files
COPY frontend/package*.json ./frontend/
WORKDIR /app/frontend
RUN npm install
COPY frontend/ .
RUN npm run build
# Stage 2: Setup Nginx to serve the React App
FROM nginx:alpine AS frontend-server
COPY --from=frontend-build /app/frontend/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
# Stage 3: Setup the Backend
FROM node:18-slim AS backend
WORKDIR /app
# Copy backend files
COPY backend/package*.json ./
RUN npm install
COPY backend/ .
# Run backend
EXPOSE 3001
CMD ["node", "/app/src/components/server.js"]

View File

@@ -1,35 +0,0 @@
# Stage 1: Build the React app (Frontend)
FROM node:18-slim AS frontend-build
WORKDIR /app
# Copy all project files into the image
COPY . .
# Install dependencies
RUN npm install
# Build the application
RUN npm run build
# Stage 2: Setup Nginx to serve the React App
FROM nginx:alpine AS frontend-server
# Copy built files from builder stage to nginx
COPY --from=frontend-build /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
# Stage 3: Setup the Backend
FROM node:18-slim AS backend
WORKDIR /app
# Copy package.json and package-lock.json
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy server.js from its new location
COPY /app/src/components/server.js /app
EXPOSE 3001
CMD ["node", "/app/src/components/server.js"]

View File

@@ -1 +0,0 @@
{"version":1,"resource":"vscode-remote://coder.karmaashomepage.online/home/bugattiguy527/docker/Dockerfile","entries":[{"id":"TUF1","timestamp":1732635492973},{"id":"8otg","timestamp":1732635506681},{"id":"XU8z","source":"undoRedo.source","timestamp":1732635515769},{"id":"ars1","timestamp":1732635532917},{"id":"8UPb","timestamp":1732635628577},{"id":"gWeB","timestamp":1732635658901},{"id":"Z5sv","source":"undoRedo.source","timestamp":1732635671649},{"id":"J4VB","timestamp":1732635674581},{"id":"eNc9","timestamp":1732651223530},{"id":"qz6w","timestamp":1732666102382},{"id":"dg9u","timestamp":1732666385636},{"id":"xeWT","timestamp":1732666594049},{"id":"VKz9","timestamp":1732666699486},{"id":"ohj0","timestamp":1732666756338},{"id":"YYfg","timestamp":1732666912166},{"id":"fk8j","source":"undoRedo.source","timestamp":1732666929490},{"id":"KzCQ","timestamp":1732666932302},{"id":"Ksxv","timestamp":1732666980583},{"id":"YyhO","timestamp":1732667021083},{"id":"fABD","timestamp":1732667045735},{"id":"9QEU","timestamp":1732667168771},{"id":"ZvDX","source":"undoRedo.source","timestamp":1732667172295},{"id":"b8fu","timestamp":1732667181363},{"id":"U8fB","timestamp":1732667377239},{"id":"qfRq","timestamp":1732667388987},{"id":"EPuH","timestamp":1732667567379},{"id":"ErcD","timestamp":1732667709908},{"id":"EvMq","timestamp":1732669655605}]}

View File

@@ -1,31 +0,0 @@
# Stage 1: Build the React app (Frontend)
FROM node:18-slim AS frontend-build
WORKDIR /app
# Copy frontend files
COPY frontend/package*.json ./frontend/
WORKDIR /app/frontend
RUN npm install
COPY frontend/ .
RUN npm run build
# Stage 2: Setup Nginx to serve the React App
FROM nginx:alpine AS frontend-server
COPY --from=frontend-build /app/frontend/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
# Stage 3: Setup the Backend
FROM node:18-slim AS backend
WORKDIR /app
# Copy package.json to /app directory
COPY frontend/package*.json ./
RUN npm install
# Copy remaining backend files
COPY backend/ .
# Run backend
EXPOSE 3001
CMD ["node", "/app/src/components/server.js"]

View File

@@ -1,32 +0,0 @@
# Stage 1: Build the React app (Frontend)
FROM node:18-slim AS frontend-build
WORKDIR /app
COPY . .
# Copy frontend files
COPY frontend/package*.json ./frontend/
WORKDIR /app/frontend
RUN npm install
COPY frontend/ .
RUN npm run build
# Stage 2: Setup Nginx to serve the React App
FROM nginx:alpine AS frontend-server
COPY --from=frontend-build /app/frontend/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
# Stage 3: Setup the Backend
FROM node:18-slim AS backend
WORKDIR /app
# Copy package.json to /app directory
COPY backend/package*.json ./
RUN npm install
# Copy remaining backend files
COPY backend/ .
# Run backend
EXPOSE 3001
CMD ["node", "/app/src/components/server.js"]

View File

@@ -1,32 +0,0 @@
# Stage 1: Build the React app (Frontend)
FROM node:18-slim AS frontend-build
WORKDIR /app
COPY . .
# Copy frontend files
COPY frontend/package*.json ./frontend/
WORKDIR /app/frontend
RUN npm install
COPY frontend/ .
RUN npm run build
# Stage 2: Setup Nginx to serve the React App
FROM nginx:alpine AS frontend-server
COPY --from=frontend-build /app/frontend/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
# Stage 3: Setup the Backend
FROM node:18-slim AS backend
WORKDIR /app
# Copy package.json to /app directory
COPY backend/package*.json ./
RUN npm install
# Copy remaining backend files
COPY backend/ .
# Run backend
EXPOSE 3001
CMD ["node", "/app/src/components/server.js"]

View File

@@ -1,30 +0,0 @@
FROM node:18-slim AS combined-build
WORKDIR /app
# Copy and install frontend dependencies
COPY frontend/package*.json ./frontend/
WORKDIR /app/frontend
RUN npm install
COPY frontend/ .
RUN npm run build
# Copy frontend build output to /app directory
WORKDIR /app
RUN mkdir -p /app/public
COPY /app/frontend/dist /app/public
# Setup backend
COPY backend/package*.json ./
RUN npm install
COPY backend/ .
# Setup Nginx to serve the React App
FROM nginx:alpine
COPY --from=combined-build /app/public /usr/share/nginx/html
# Expose ports for frontend and backend
EXPOSE 80
EXPOSE 3001
# Run backend and frontend servers
CMD ["sh", "-c", "node /app/src/components/server.js & nginx -g 'daemon off;'"]

View File

@@ -1,34 +0,0 @@
# Stage 1: Build the React app (Frontend)
FROM node:18-slim AS frontend-build
WORKDIR /app
# Copy all project files into the image
COPY . .
# Install dependencies
RUN npm install
# Build the application
RUN npm run build
# Stage 2: Setup Nginx to serve the React App
FROM nginx:alpine AS frontend-server
# Copy built files from builder stage to nginx
COPY --from=frontend-build /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
# Stage 3: Setup the Backend
FROM node:18-slim AS backend
WORKDIR /app
# Copy package.json and package-lock.json
COPY package*.json ./
# Install dependencies
RUN npm install
# Run backend
EXPOSE 3001
CMD ["node", "/app/src/components/server.js"]

View File

@@ -1,28 +0,0 @@
# Stage 1: Build the React app (Frontend)
FROM node:18-slim AS frontend-build
WORKDIR /app
# Copy frontend files
COPY frontend/package*.json ./frontend/
WORKDIR /app/frontend
RUN npm install
COPY frontend/ .
RUN npm run build
# Stage 2: Setup Nginx to serve the React App
FROM nginx:alpine AS frontend-server
COPY --from=frontend-build /app/frontend/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
# Stage 3: Setup the Backend
FROM node:18-slim AS backend
WORKDIR /app
# Copy backend files
RUN npm install
COPY backend/ .
# Run backend
EXPOSE 3001
CMD ["node", "/app/src/components/server.js"]

View File

@@ -1,17 +0,0 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
);
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();

View File

@@ -1 +0,0 @@
{"version":1,"resource":"vscode-remote://coder.karmaashomepage.online/home/bugattiguy527/frontend/src/index.jsx","entries":[{"id":"j2LP.jsx","source":"Workspace Edit","timestamp":1732669894217},{"id":"XT6h.jsx","source":"Workspace Edit","timestamp":1732669904261}]}

View File

@@ -1,17 +0,0 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import reportWebVitals from '../reportWebVitals';
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
);
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();

View File

@@ -1 +0,0 @@
{"content":{"settings":"{}","tasks":"{}","launch":"{\n \"version\": \"0.2.0\",\n \"configurations\": [\n {\n \"name\": \"Run application\",\n \"type\": \"node\",\n \"request\": \"launch\",\n \"cwd\": \"${workspaceFolder}\",\n \"console\": \"integratedTerminal\",\n \"runtimeExecutable\": \"npm\",\n \"runtimeArgs\": [\n \"run-script\",\n \"start\"\n ],\n \"skipFiles\": [\n \"<node_internals>/**\"\n ]\n }\n ]\n}"}}

View File

@@ -1,126 +0,0 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://json.schemastore.org/semantic-release.json",
"definitions": {
"branch-object": {
"type": "object",
"additionalProperties": false,
"required": ["name"],
"properties": {
"name": {
"type": "string"
},
"channel": {
"type": "string"
},
"range": {
"type": "string"
},
"prerelease": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "string"
}
]
}
}
}
},
"properties": {
"extends": {
"description": "List of modules or file paths containing a shareable configuration. If multiple shareable configurations are set, they will be imported in the order defined with each configuration option taking precedence over the options defined in a previous shareable configuration",
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
},
"branches": {
"description": "The branches on which releases should happen.",
"oneOf": [
{
"type": "string"
},
{
"$ref": "#/definitions/branch-object"
},
{
"type": "array",
"items": {
"anyOf": [
{
"type": "string"
},
{
"$ref": "#/definitions/branch-object"
}
]
}
}
],
"default": [
"+([0-9])?(.{+([0-9]),x}).x",
"master",
"next",
"next-major",
{
"name": "beta",
"prerelease": true
},
{
"name": "alpha",
"prerelease": true
}
]
},
"repositoryUrl": {
"type": "string",
"description": "The git repository URL"
},
"tagFormat": {
"type": "string",
"description": "The Git tag format used by semantic-release to identify releases. The tag name is generated with Lodash template and will be compiled with the version variable.",
"default": "v${version}"
},
"plugins": {
"type": "array",
"description": "Define the list of plugins to use. Plugins will run in series, in the order defined",
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "array"
}
]
},
"default": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
"@semantic-release/github"
]
},
"dryRun": {
"type": "boolean",
"description": "The objective of the dry-run mode is to get a preview of the pending release. Dry-run mode skips the following steps: prepare, publish, success and fail. In addition to this it prints the next version and release notes to the console"
},
"ci": {
"type": "boolean",
"description": "Set to false to skip Continuous Integration environment verifications. This allows for making releases from a local machine",
"default": true
}
},
"title": "semantic-release Schema",
"type": "object"
}

View File

@@ -1,867 +0,0 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "JSON schema for NPM package.json files",
"definitions": {
"person": {
"description": "A person who has been involved in creating or maintaining this package.",
"type": [
"object",
"string"
],
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
},
"email": {
"type": "string",
"format": "email"
}
}
},
"dependency": {
"description": "Dependencies are specified with a simple hash of package name to version range. The version range is a string which has one or more space-separated descriptors. Dependencies can also be identified with a tarball or git URL.",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"license": {
"anyOf": [
{
"type": "string"
},
{
"enum": [
"AGPL-3.0-only",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"BSL-1.0",
"CC0-1.0",
"CDDL-1.0",
"CDDL-1.1",
"EPL-1.0",
"EPL-2.0",
"GPL-2.0-only",
"GPL-3.0-only",
"ISC",
"LGPL-2.0-only",
"LGPL-2.1-only",
"LGPL-2.1-or-later",
"LGPL-3.0-only",
"LGPL-3.0-or-later",
"MIT",
"MPL-2.0",
"MS-PL",
"UNLICENSED"
]
}
]
},
"scriptsInstallAfter": {
"description": "Run AFTER the package is installed.",
"type": "string",
"x-intellij-language-injection": "Shell Script"
},
"scriptsPublishAfter": {
"description": "Run AFTER the package is published.",
"type": "string",
"x-intellij-language-injection": "Shell Script"
},
"scriptsRestart": {
"description": "Run by the 'npm restart' command. Note: 'npm restart' will run the stop and start scripts if no restart script is provided.",
"type": "string",
"x-intellij-language-injection": "Shell Script"
},
"scriptsStart": {
"description": "Run by the 'npm start' command.",
"type": "string",
"x-intellij-language-injection": "Shell Script"
},
"scriptsStop": {
"description": "Run by the 'npm stop' command.",
"type": "string",
"x-intellij-language-injection": "Shell Script"
},
"scriptsTest": {
"description": "Run by the 'npm test' command.",
"type": "string",
"x-intellij-language-injection": "Shell Script"
},
"scriptsUninstallBefore": {
"description": "Run BEFORE the package is uninstalled.",
"type": "string",
"x-intellij-language-injection": "Shell Script"
},
"scriptsVersionBefore": {
"description": "Run BEFORE bump the package version.",
"type": "string",
"x-intellij-language-injection": "Shell Script"
},
"packageExportsEntryPath": {
"type": [
"string",
"null"
],
"description": "The module path that is resolved when this specifier is imported. Set to `null` to disallow importing this module.",
"pattern": "^\\./"
},
"packageExportsEntryObject": {
"type": "object",
"description": "Used to specify conditional exports, note that Conditional exports are unsupported in older environments, so it's recommended to use the fallback array option if support for those environments is a concern.",
"properties": {
"require": {
"$ref": "#/definitions/packageExportsEntryOrFallback",
"description": "The module path that is resolved when this specifier is imported as a CommonJS module using the `require(...)` function."
},
"import": {
"$ref": "#/definitions/packageExportsEntryOrFallback",
"description": "The module path that is resolved when this specifier is imported as an ECMAScript module using an `import` declaration or the dynamic `import(...)` function."
},
"node": {
"$ref": "#/definitions/packageExportsEntryOrFallback",
"description": "The module path that is resolved when this environment is Node.js."
},
"default": {
"$ref": "#/definitions/packageExportsEntryOrFallback",
"description": "The module path that is resolved when no other export type matches."
},
"types": {
"$ref": "#/definitions/packageExportsEntryOrFallback",
"description": "The module path that is resolved for TypeScript types when this specifier is imported. Should be listed before other conditions."
}
},
"patternProperties": {
"^[^.0-9]+$": {
"$ref": "#/definitions/packageExportsEntryOrFallback",
"description": "The module path that is resolved when this environment matches the property name."
}
},
"additionalProperties": false
},
"packageExportsEntry": {
"oneOf": [
{
"$ref": "#/definitions/packageExportsEntryPath"
},
{
"$ref": "#/definitions/packageExportsEntryObject"
}
]
},
"packageExportsFallback": {
"type": "array",
"description": "Used to allow fallbacks in case this environment doesn't support the preceding entries.",
"items": {
"$ref": "#/definitions/packageExportsEntry"
}
},
"packageExportsEntryOrFallback": {
"oneOf": [
{
"$ref": "#/definitions/packageExportsEntry"
},
{
"$ref": "#/definitions/packageExportsFallback"
}
]
},
"fundingUrl": {
"type": "string",
"format": "uri",
"description": "URL to a website with details about how to fund the package."
},
"fundingWay": {
"type": "object",
"description": "Used to inform about ways to help fund development of the package.",
"properties": {
"url": {
"$ref": "#/definitions/fundingUrl"
},
"type": {
"type": "string",
"description": "The type of funding or the platform through which funding can be provided, e.g. patreon, opencollective, tidelift or github."
}
},
"additionalProperties": false,
"required": [
"url"
]
}
},
"type": "object",
"patternProperties": {
"^_": {
"description": "Any property starting with _ is valid.",
"tsType": "any"
}
},
"properties": {
"name": {
"description": "The name of the package.",
"type": "string",
"maxLength": 214,
"minLength": 1,
"pattern": "^(?:(?:@(?:[a-z0-9-*~][a-z0-9-*._~]*)?/[a-z0-9-._~])|[a-z0-9-~])[a-z0-9-._~]*$"
},
"version": {
"description": "Version must be parseable by node-semver, which is bundled with npm as a dependency.",
"type": "string"
},
"description": {
"description": "This helps people discover your package, as it's listed in 'npm search'.",
"type": "string"
},
"keywords": {
"description": "This helps people discover your package as it's listed in 'npm search'.",
"type": "array",
"items": {
"type": "string"
}
},
"homepage": {
"description": "The url to the project homepage.",
"type": "string"
},
"bugs": {
"description": "The url to your project's issue tracker and / or the email address to which issues should be reported. These are helpful for people who encounter issues with your package.",
"type": [
"object",
"string"
],
"properties": {
"url": {
"type": "string",
"description": "The url to your project's issue tracker.",
"format": "uri"
},
"email": {
"type": "string",
"description": "The email address to which issues should be reported.",
"format": "email"
}
}
},
"license": {
"$ref": "#/definitions/license",
"description": "You should specify a license for your package so that people know how they are permitted to use it, and any restrictions you're placing on it."
},
"licenses": {
"description": "DEPRECATED: Instead, use SPDX expressions, like this: { \"license\": \"ISC\" } or { \"license\": \"(MIT OR Apache-2.0)\" } see: 'https://docs.npmjs.com/files/package.json#license'.",
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"$ref": "#/definitions/license"
},
"url": {
"type": "string",
"format": "uri"
}
}
}
},
"author": {
"$ref": "#/definitions/person"
},
"contributors": {
"description": "A list of people who contributed to this package.",
"type": "array",
"items": {
"$ref": "#/definitions/person"
}
},
"maintainers": {
"description": "A list of people who maintains this package.",
"type": "array",
"items": {
"$ref": "#/definitions/person"
}
},
"files": {
"description": "The 'files' field is an array of files to include in your project. If you name a folder in the array, then it will also include the files inside that folder.",
"type": "array",
"items": {
"type": "string"
}
},
"main": {
"description": "The main field is a module ID that is the primary entry point to your program.",
"type": "string"
},
"exports": {
"description": "The \"exports\" field is used to restrict external access to non-exported module files, also enables a module to import itself using \"name\".",
"oneOf": [
{
"$ref": "#/definitions/packageExportsEntryPath",
"description": "The module path that is resolved when the module specifier matches \"name\", shadows the \"main\" field."
},
{
"type": "object",
"properties": {
".": {
"$ref": "#/definitions/packageExportsEntryOrFallback",
"description": "The module path that is resolved when the module specifier matches \"name\", shadows the \"main\" field."
}
},
"patternProperties": {
"^\\./.+": {
"$ref": "#/definitions/packageExportsEntryOrFallback",
"description": "The module path prefix that is resolved when the module specifier starts with \"name/\", set to \"./*\" to allow external modules to import any subpath."
}
},
"additionalProperties": false
},
{
"$ref": "#/definitions/packageExportsEntryObject",
"description": "The module path that is resolved when the module specifier matches \"name\", shadows the \"main\" field."
},
{
"$ref": "#/definitions/packageExportsFallback",
"description": "The module path that is resolved when the module specifier matches \"name\", shadows the \"main\" field."
}
]
},
"bin": {
"type": [
"string",
"object"
],
"additionalProperties": {
"type": "string"
}
},
"type": {
"description": "When set to \"module\", the type field allows a package to specify all .js files within are ES modules. If the \"type\" field is omitted or set to \"commonjs\", all .js files are treated as CommonJS.",
"type": "string",
"enum": [
"commonjs",
"module"
],
"default": "commonjs"
},
"types": {
"description": "Set the types property to point to your bundled declaration file.",
"type": "string"
},
"typings": {
"description": "Note that the \"typings\" field is synonymous with \"types\", and could be used as well.",
"type": "string"
},
"typesVersions": {
"description": "The \"typesVersions\" field is used since TypeScript 3.1 to support features that were only made available in newer TypeScript versions.",
"type": "object",
"additionalProperties": {
"description": "Contains overrides for the TypeScript version that matches the version range matching the property key.",
"type": "object",
"properties": {
"*": {
"description": "Maps all file paths to the file paths specified in the array.",
"type": "array",
"items": {
"type": "string",
"pattern": "^[^*]*(?:\\*[^*]*)?$"
}
}
},
"patternProperties": {
"^[^*]+$": {
"description": "Maps the file path matching the property key to the file paths specified in the array.",
"type": "array",
"items": {
"type": "string"
}
},
"^[^*]*\\*[^*]*$": {
"description": "Maps file paths matching the pattern specified in property key to file paths specified in the array.",
"type": "array",
"items": {
"type": "string",
"pattern": "^[^*]*(?:\\*[^*]*)?$"
}
}
},
"additionalProperties": false
}
},
"man": {
"type": [
"array",
"string"
],
"description": "Specify either a single file or an array of filenames to put in place for the man program to find.",
"items": {
"type": "string"
}
},
"directories": {
"type": "object",
"properties": {
"bin": {
"description": "If you specify a 'bin' directory, then all the files in that folder will be used as the 'bin' hash.",
"type": "string"
},
"doc": {
"description": "Put markdown files in here. Eventually, these will be displayed nicely, maybe, someday.",
"type": "string"
},
"example": {
"description": "Put example scripts in here. Someday, it might be exposed in some clever way.",
"type": "string"
},
"lib": {
"description": "Tell people where the bulk of your library is. Nothing special is done with the lib folder in any way, but it's useful meta info.",
"type": "string"
},
"man": {
"description": "A folder that is full of man pages. Sugar to generate a 'man' array by walking the folder.",
"type": "string"
},
"test": {
"type": "string"
}
}
},
"repository": {
"description": "Specify the place where your code lives. This is helpful for people who want to contribute.",
"type": [
"object",
"string"
],
"properties": {
"type": {
"type": "string"
},
"url": {
"type": "string"
},
"directory": {
"type": "string"
}
}
},
"funding": {
"oneOf": [
{
"$ref": "#/definitions/fundingUrl"
},
{
"$ref": "#/definitions/fundingWay"
},
{
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/definitions/fundingUrl"
},
{
"$ref": "#/definitions/fundingWay"
}
]
},
"minItems": 1,
"uniqueItems": true
}
]
},
"scripts": {
"description": "The 'scripts' member is an object hash of script commands that are run at various times in the lifecycle of your package. The key is the lifecycle event, and the value is the command to run at that point.",
"type": "object",
"properties": {
"lint": {
"type": "string",
"description": "Run code quality tools, e.g. ESLint, TSLint, etc."
},
"prepublish": {
"type": "string",
"description": "Run BEFORE the package is published (Also run on local npm install without any arguments)."
},
"prepare": {
"type": "string",
"description": "Run both BEFORE the package is packed and published, and on local npm install without any arguments. This is run AFTER prepublish, but BEFORE prepublishOnly."
},
"prepublishOnly": {
"type": "string",
"description": "Run BEFORE the package is prepared and packed, ONLY on npm publish."
},
"prepack": {
"type": "string",
"description": "run BEFORE a tarball is packed (on npm pack, npm publish, and when installing git dependencies)."
},
"postpack": {
"type": "string",
"description": "Run AFTER the tarball has been generated and moved to its final destination."
},
"publish": {
"type": "string",
"description": "Publishes a package to the registry so that it can be installed by name. See https://docs.npmjs.com/cli/v8/commands/npm-publish"
},
"postpublish": {
"$ref": "#/definitions/scriptsPublishAfter"
},
"preinstall": {
"type": "string",
"description": "Run BEFORE the package is installed."
},
"install": {
"$ref": "#/definitions/scriptsInstallAfter"
},
"postinstall": {
"$ref": "#/definitions/scriptsInstallAfter"
},
"preuninstall": {
"$ref": "#/definitions/scriptsUninstallBefore"
},
"uninstall": {
"$ref": "#/definitions/scriptsUninstallBefore"
},
"postuninstall": {
"type": "string",
"description": "Run AFTER the package is uninstalled."
},
"preversion": {
"$ref": "#/definitions/scriptsVersionBefore"
},
"version": {
"$ref": "#/definitions/scriptsVersionBefore"
},
"postversion": {
"type": "string",
"description": "Run AFTER bump the package version."
},
"pretest": {
"$ref": "#/definitions/scriptsTest"
},
"test": {
"$ref": "#/definitions/scriptsTest"
},
"posttest": {
"$ref": "#/definitions/scriptsTest"
},
"prestop": {
"$ref": "#/definitions/scriptsStop"
},
"stop": {
"$ref": "#/definitions/scriptsStop"
},
"poststop": {
"$ref": "#/definitions/scriptsStop"
},
"prestart": {
"$ref": "#/definitions/scriptsStart"
},
"start": {
"$ref": "#/definitions/scriptsStart"
},
"poststart": {
"$ref": "#/definitions/scriptsStart"
},
"prerestart": {
"$ref": "#/definitions/scriptsRestart"
},
"restart": {
"$ref": "#/definitions/scriptsRestart"
},
"postrestart": {
"$ref": "#/definitions/scriptsRestart"
},
"serve": {
"type": "string",
"description": "Start dev server to serve application files"
}
},
"additionalProperties": {
"type": "string",
"tsType": "string | undefined",
"x-intellij-language-injection": "Shell Script"
}
},
"config": {
"description": "A 'config' hash can be used to set configuration parameters used in package scripts that persist across upgrades.",
"type": "object",
"additionalProperties": true
},
"dependencies": {
"$ref": "#/definitions/dependency"
},
"devDependencies": {
"$ref": "#/definitions/dependency"
},
"optionalDependencies": {
"$ref": "#/definitions/dependency"
},
"peerDependencies": {
"$ref": "#/definitions/dependency"
},
"peerDependenciesMeta": {
"description": "When a user installs your package, warnings are emitted if packages specified in \"peerDependencies\" are not already installed. The \"peerDependenciesMeta\" field serves to provide more information on how your peer dependencies are utilized. Most commonly, it allows peer dependencies to be marked as optional. Metadata for this field is specified with a simple hash of the package name to a metadata object.",
"type": "object",
"additionalProperties": {
"type": "object",
"additionalProperties": true,
"properties": {
"optional": {
"description": "Specifies that this peer dependency is optional and should not be installed automatically.",
"type": "boolean"
}
}
}
},
"bundleDependencies": {
"description": "Array of package names that will be bundled when publishing the package.",
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "boolean"
}
]
},
"bundledDependencies": {
"description": "DEPRECATED: This field is honored, but \"bundleDependencies\" is the correct field name.",
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "boolean"
}
]
},
"resolutions": {
"description": "Resolutions is used to support selective version resolutions using yarn, which lets you define custom package versions or ranges inside your dependencies. For npm, use overrides instead. See: https://classic.yarnpkg.com/en/docs/selective-version-resolutions",
"type": "object"
},
"overrides": {
"description": "Overrides is used to support selective version overrides using npm, which lets you define custom package versions or ranges inside your dependencies. For yarn, use resolutions instead. See: https://docs.npmjs.com/cli/v9/configuring-npm/package-json#overrides",
"type": "object"
},
"packageManager": {
"description": "Defines which package manager is expected to be used when working on the current project. This field is currently experimental and needs to be opted-in; see https://nodejs.org/api/corepack.html",
"type": "string",
"pattern": "(npm|pnpm|yarn|bun)@\\d+\\.\\d+\\.\\d+(-.+)?"
},
"engines": {
"type": "object",
"properties": {
"node": {
"type": "string"
}
},
"additionalProperties": {
"type": "string"
}
},
"volta": {
"description": "Defines which tools and versions are expected to be used when Volta is installed.",
"type": "object",
"properties": {
"extends": {
"description": "The value of that entry should be a path to another JSON file which also has a \"volta\" section",
"type": "string"
}
},
"patternProperties": {
"(node|npm|pnpm|yarn)": {
"type": "string"
}
}
},
"engineStrict": {
"type": "boolean"
},
"os": {
"description": "Specify which operating systems your module will run on.",
"type": "array",
"items": {
"type": "string"
}
},
"cpu": {
"description": "Specify that your code only runs on certain cpu architectures.",
"type": "array",
"items": {
"type": "string"
}
},
"preferGlobal": {
"type": "boolean",
"description": "DEPRECATED: This option used to trigger an npm warning, but it will no longer warn. It is purely there for informational purposes. It is now recommended that you install any binaries as local devDependencies wherever possible."
},
"private": {
"description": "If set to true, then npm will refuse to publish it.",
"oneOf": [
{
"type": "boolean"
},
{
"enum": [
"false",
"true"
]
}
]
},
"publishConfig": {
"type": "object",
"properties": {
"access": {
"type": "string",
"enum": [
"public",
"restricted"
]
},
"tag": {
"type": "string"
},
"registry": {
"type": "string",
"format": "uri"
},
"provenance": {
"type": "boolean"
}
},
"additionalProperties": true
},
"dist": {
"type": "object",
"properties": {
"shasum": {
"type": "string"
},
"tarball": {
"type": "string"
}
}
},
"readme": {
"type": "string"
},
"module": {
"description": "An ECMAScript module ID that is the primary entry point to your program.",
"type": "string"
},
"esnext": {
"description": "A module ID with untranspiled code that is the primary entry point to your program.",
"type": [
"string",
"object"
],
"properties": {
"main": {
"type": "string"
},
"browser": {
"type": "string"
}
},
"additionalProperties": {
"type": "string"
}
},
"workspaces": {
"description": "Allows packages within a directory to depend on one another using direct linking of local files. Additionally, dependencies within a workspace are hoisted to the workspace root when possible to reduce duplication. Note: It's also a good idea to set \"private\" to true when using this feature.",
"anyOf": [
{
"type": "array",
"description": "Workspace package paths. Glob patterns are supported.",
"items": {
"type": "string"
}
},
{
"type": "object",
"properties": {
"packages": {
"type": "array",
"description": "Workspace package paths. Glob patterns are supported.",
"items": {
"type": "string"
}
},
"nohoist": {
"type": "array",
"description": "Packages to block from hoisting to the workspace root. Currently only supported in Yarn only.",
"items": {
"type": "string"
}
}
}
}
]
},
"jspm": {
"$ref": "#"
},
"eslintConfig": {
"$ref": "https://json.schemastore.org/eslintrc.json"
},
"prettier": {
"$ref": "https://json.schemastore.org/prettierrc.json"
},
"stylelint": {
"$ref": "https://json.schemastore.org/stylelintrc.json"
},
"ava": {
"$ref": "https://json.schemastore.org/ava.json"
},
"release": {
"$ref": "https://json.schemastore.org/semantic-release.json"
},
"jscpd": {
"$ref": "https://json.schemastore.org/jscpd.json"
}
},
"anyOf": [
{
"type": "object",
"not": {
"required": [
"bundledDependencies",
"bundleDependencies"
]
}
},
{
"type": "object",
"not": {
"required": [
"bundleDependencies"
]
},
"required": [
"bundledDependencies"
]
},
{
"type": "object",
"not": {
"required": [
"bundledDependencies"
]
},
"required": [
"bundleDependencies"
]
}
],
"$id": "https://json.schemastore.org/package.json"
}

View File

@@ -1,396 +0,0 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://json.schemastore.org/prettierrc.json",
"definitions": {
"optionsDefinition": {
"type": "object",
"properties": {
"arrowParens": {
"description": "Include parentheses around a sole arrow function parameter.",
"default": "always",
"oneOf": [
{
"enum": ["always"],
"description": "Always include parens. Example: `(x) => x`"
},
{
"enum": ["avoid"],
"description": "Omit parens when possible. Example: `x => x`"
}
]
},
"bracketSameLine": {
"description": "Put > of opening tags on the last line instead of on a new line.",
"default": false,
"type": "boolean"
},
"bracketSpacing": {
"description": "Print spaces between brackets.",
"default": true,
"type": "boolean"
},
"cursorOffset": {
"description": "Print (to stderr) where a cursor at the given position would move to after formatting.",
"default": -1,
"type": "integer"
},
"embeddedLanguageFormatting": {
"description": "Control how Prettier formats quoted code embedded in the file.",
"default": "auto",
"oneOf": [
{
"enum": ["auto"],
"description": "Format embedded code if Prettier can automatically identify it."
},
{
"enum": ["off"],
"description": "Never automatically format embedded code."
}
]
},
"endOfLine": {
"description": "Which end of line characters to apply.",
"default": "lf",
"oneOf": [
{
"enum": ["lf"],
"description": "Line Feed only (\\n), common on Linux and macOS as well as inside git repos"
},
{
"enum": ["crlf"],
"description": "Carriage Return + Line Feed characters (\\r\\n), common on Windows"
},
{
"enum": ["cr"],
"description": "Carriage Return character only (\\r), used very rarely"
},
{
"enum": ["auto"],
"description": "Maintain existing\n(mixed values within one file are normalised by looking at what's used after the first line)"
}
]
},
"experimentalTernaries": {
"description": "Use curious ternaries, with the question mark after the condition.",
"default": false,
"type": "boolean"
},
"filepath": {
"description": "Specify the input filepath. This will be used to do parser inference.",
"type": "string"
},
"htmlWhitespaceSensitivity": {
"description": "How to handle whitespaces in HTML.",
"default": "css",
"oneOf": [
{
"enum": ["css"],
"description": "Respect the default value of CSS display property."
},
{
"enum": ["strict"],
"description": "Whitespaces are considered sensitive."
},
{
"enum": ["ignore"],
"description": "Whitespaces are considered insensitive."
}
]
},
"insertPragma": {
"description": "Insert @format pragma into file's first docblock comment.",
"default": false,
"type": "boolean"
},
"jsxSingleQuote": {
"description": "Use single quotes in JSX.",
"default": false,
"type": "boolean"
},
"parser": {
"description": "Which parser to use.",
"anyOf": [
{
"enum": ["flow"],
"description": "Flow"
},
{
"enum": ["babel"],
"description": "JavaScript"
},
{
"enum": ["babel-flow"],
"description": "Flow"
},
{
"enum": ["babel-ts"],
"description": "TypeScript"
},
{
"enum": ["typescript"],
"description": "TypeScript"
},
{
"enum": ["acorn"],
"description": "JavaScript"
},
{
"enum": ["espree"],
"description": "JavaScript"
},
{
"enum": ["meriyah"],
"description": "JavaScript"
},
{
"enum": ["css"],
"description": "CSS"
},
{
"enum": ["less"],
"description": "Less"
},
{
"enum": ["scss"],
"description": "SCSS"
},
{
"enum": ["json"],
"description": "JSON"
},
{
"enum": ["json5"],
"description": "JSON5"
},
{
"enum": ["jsonc"],
"description": "JSON with Comments"
},
{
"enum": ["json-stringify"],
"description": "JSON.stringify"
},
{
"enum": ["graphql"],
"description": "GraphQL"
},
{
"enum": ["markdown"],
"description": "Markdown"
},
{
"enum": ["mdx"],
"description": "MDX"
},
{
"enum": ["vue"],
"description": "Vue"
},
{
"enum": ["yaml"],
"description": "YAML"
},
{
"enum": ["glimmer"],
"description": "Ember / Handlebars"
},
{
"enum": ["html"],
"description": "HTML"
},
{
"enum": ["angular"],
"description": "Angular"
},
{
"enum": ["lwc"],
"description": "Lightning Web Components"
},
{
"type": "string",
"description": "Custom parser"
}
]
},
"plugins": {
"description": "Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",
"default": [],
"type": "array",
"items": {
"type": "string"
}
},
"printWidth": {
"description": "The line length where Prettier will try wrap.",
"default": 80,
"type": "integer"
},
"proseWrap": {
"description": "How to wrap prose.",
"default": "preserve",
"oneOf": [
{
"enum": ["always"],
"description": "Wrap prose if it exceeds the print width."
},
{
"enum": ["never"],
"description": "Do not wrap prose."
},
{
"enum": ["preserve"],
"description": "Wrap prose as-is."
}
]
},
"quoteProps": {
"description": "Change when properties in objects are quoted.",
"default": "as-needed",
"oneOf": [
{
"enum": ["as-needed"],
"description": "Only add quotes around object properties where required."
},
{
"enum": ["consistent"],
"description": "If at least one property in an object requires quotes, quote all properties."
},
{
"enum": ["preserve"],
"description": "Respect the input use of quotes in object properties."
}
]
},
"rangeEnd": {
"description": "Format code ending at a given character offset (exclusive).\nThe range will extend forwards to the end of the selected statement.",
"default": null,
"type": "integer"
},
"rangeStart": {
"description": "Format code starting at a given character offset.\nThe range will extend backwards to the start of the first line containing the selected statement.",
"default": 0,
"type": "integer"
},
"requirePragma": {
"description": "Require either '@prettier' or '@format' to be present in the file's first docblock comment\nin order for it to be formatted.",
"default": false,
"type": "boolean"
},
"semi": {
"description": "Print semicolons.",
"default": true,
"type": "boolean"
},
"singleAttributePerLine": {
"description": "Enforce single attribute per line in HTML, Vue and JSX.",
"default": false,
"type": "boolean"
},
"singleQuote": {
"description": "Use single quotes instead of double quotes.",
"default": false,
"type": "boolean"
},
"tabWidth": {
"description": "Number of spaces per indentation level.",
"default": 2,
"type": "integer"
},
"trailingComma": {
"description": "Print trailing commas wherever possible when multi-line.",
"default": "all",
"oneOf": [
{
"enum": ["all"],
"description": "Trailing commas wherever possible (including function arguments)."
},
{
"enum": ["es5"],
"description": "Trailing commas where valid in ES5 (objects, arrays, etc.)"
},
{
"enum": ["none"],
"description": "No trailing commas."
}
]
},
"useTabs": {
"description": "Indent with tabs instead of spaces.",
"default": false,
"type": "boolean"
},
"vueIndentScriptAndStyle": {
"description": "Indent script and style tags in Vue files.",
"default": false,
"type": "boolean"
}
}
},
"overridesDefinition": {
"type": "object",
"properties": {
"overrides": {
"type": "array",
"description": "Provide a list of patterns to override prettier configuration.",
"items": {
"type": "object",
"required": ["files"],
"properties": {
"files": {
"description": "Include these files in this override.",
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
},
"excludeFiles": {
"description": "Exclude these files from this override.",
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
},
"options": {
"$ref": "#/definitions/optionsDefinition",
"type": "object",
"description": "The options to apply for this override."
}
},
"additionalProperties": false
}
}
}
}
},
"oneOf": [
{
"type": "object",
"allOf": [
{
"$ref": "#/definitions/optionsDefinition"
},
{
"$ref": "#/definitions/overridesDefinition"
}
]
},
{
"type": "string"
}
],
"title": "Schema for .prettierrc"
}

View File

@@ -1,405 +0,0 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://json.schemastore.org/jscpd.json",
"additionalProperties": false,
"definitions": {
"colorPreset": {
"enum": [
"green",
"blue",
"red",
"yellow",
"orange",
"purple",
"pink",
"grey",
"gray",
"cyan",
"black"
]
},
"colorHex": {
"type": "string",
"pattern": "([0-9a-fA-F]{3}){1,2}"
},
"color": {
"oneOf": [
{
"$ref": "#/definitions/colorPreset"
},
{
"$ref": "#/definitions/colorHex"
}
]
},
"format": {
"enum": [
"abap",
"actionscript",
"ada",
"apacheconf",
"apl",
"applescript",
"arduino",
"arff",
"asciidoc",
"asm6502",
"aspnet",
"autohotkey",
"autoit",
"bash",
"basic",
"batch",
"bison",
"brainfuck",
"bro",
"c",
"c-header",
"clike",
"clojure",
"coffeescript",
"comments",
"cpp",
"cpp-header",
"crystal",
"csharp",
"csp",
"css-extras",
"css",
"d",
"dart",
"diff",
"django",
"docker",
"eiffel",
"elixir",
"elm",
"erb",
"erlang",
"flow",
"fortran",
"fsharp",
"gedcom",
"gherkin",
"git",
"glsl",
"go",
"graphql",
"groovy",
"haml",
"handlebars",
"haskell",
"haxe",
"hpkp",
"hsts",
"http",
"ichigojam",
"icon",
"inform7",
"ini",
"io",
"j",
"java",
"javascript",
"jolie",
"json",
"jsx",
"julia",
"keymap",
"kotlin",
"latex",
"less",
"liquid",
"lisp",
"livescript",
"lolcode",
"lua",
"makefile",
"markdown",
"markup",
"matlab",
"mel",
"mizar",
"monkey",
"n4js",
"nasm",
"nginx",
"nim",
"nix",
"nsis",
"objectivec",
"ocaml",
"opencl",
"oz",
"parigp",
"pascal",
"perl",
"php",
"plsql",
"powershell",
"processing",
"prolog",
"properties",
"protobuf",
"pug",
"puppet",
"pure",
"python",
"q",
"qore",
"r",
"reason",
"renpy",
"rest",
"rip",
"roboconf",
"ruby",
"rust",
"sas",
"sass",
"scala",
"scheme",
"scss",
"smalltalk",
"smarty",
"soy",
"sql",
"stylus",
"swift",
"tap",
"tcl",
"textile",
"tsx",
"tt2",
"twig",
"typescript",
"vbnet",
"velocity",
"verilog",
"vhdl",
"vim",
"visual-basic",
"wasm",
"url",
"wiki",
"xeora",
"xojo",
"xquery",
"yaml"
]
}
},
"properties": {
"minLines": {
"type": "integer",
"default": 5,
"description": "minimum size of code block in lines to check for duplication"
},
"maxLines": {
"type": "integer",
"default": 1000,
"description": "maximum size of source file in lines to check for duplication"
},
"maxSize": {
"anyOf": [
{
"type": "string",
"pattern": "^\\+?[0-9]+(\\.[0-9]+)? *[kKmMgGtTpP][bB]$"
},
{
"type": "integer"
}
],
"default": "100kb",
"description": "maximum size of source file in bytes to check for duplication (e.g.,: 1kb, 1mb, 120kb)"
},
"minTokens": {
"type": "integer",
"default": 50,
"description": "minimum size of code block in tokens to check for duplication"
},
"threshold": {
"type": "number",
"description": "maximum allowed duplicate lines expressed as a percentage; exit with error and exit code 1 when threshold exceeded"
},
"formatsExts": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
},
"default": {},
"description": "custom mapping from formats to file extensions (default: https://github.com/kucherenko/jscpd/blob/master/packages/tokenizer/src/formats.ts); see https://github.com/kucherenko/jscpd/blob/master/supported_formats.md"
},
"output": {
"type": "string",
"default": "./report",
"description": "path to directory for non-console reports"
},
"path": {
"type": "array",
"items": {
"type": "string"
},
"description": "paths that should be included in duplicate detection (default: [process.cwd()])"
},
"pattern": {
"type": "string",
"default": "**/*",
"description": "glob pattern for files that should be included in duplicate detection (e.g., **/*.txt); only used to filter directories configured via path option"
},
"ignorePattern": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "ignore code blocks matching these regular expressions"
},
"mode": {
"enum": ["mild", "strict", "weak"],
"default": "mild",
"description": "mode of detection quality; see https://github.com/kucherenko/jscpd/blob/master/packages/jscpd/README.md#mode"
},
"ignore": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "glob pattern for files that should be excluded from duplicate detection"
},
"format": {
"type": "array",
"items": {
"$ref": "#/definitions/format"
},
"description": "list of formats for which to detect duplication (default: all); see https://github.com/kucherenko/jscpd/blob/master/supported_formats.md"
},
"store": {
"enum": ["leveldb", "redis"],
"description": "store used to collect information about code (default: in-memory store); install @jscpd/leveldb-store and use leveldb for big repositories"
},
"reporters": {
"type": "array",
"items": {
"enum": [
"xml",
"json",
"csv",
"markdown",
"consoleFull",
"html",
"console",
"silent",
"threshold",
"xcode"
]
},
"default": ["console"],
"description": "a list of reporters to use to output information about duplication; see https://github.com/kucherenko/jscpd/blob/master/packages/jscpd/README.md#reporters"
},
"blame": {
"type": "boolean",
"default": false,
"description": "get information about authors and dates of duplicated blocks from Git"
},
"silent": {
"type": "boolean",
"default": false,
"description": "do not write duplicate detection progress and result to console"
},
"verbose": {
"type": "boolean",
"default": false,
"description": "show full information during duplicate detection"
},
"absolute": {
"type": "boolean",
"default": false,
"description": "use absolute paths in reports"
},
"noSymlinks": {
"type": "boolean",
"default": false,
"description": "do not follow symlinks"
},
"skipLocal": {
"type": "boolean",
"default": false,
"description": "skip duplicates within folders; just detect cross-folder duplicates"
},
"ignoreCase": {
"type": "boolean",
"default": false,
"description": "ignore case of symbols in code (experimental)"
},
"gitignore": {
"type": "boolean",
"default": false,
"description": "ignore all files from .gitignore file"
},
"reportersOptions": {
"type": "object",
"default": {},
"additionalProperties": false,
"properties": {
"badge": {
"type": "object",
"additionalProperties": false,
"properties": {
"path": {
"type": "string",
"description": "output path for duplication level badge (default: path.join(output, 'jscpd-badge.svg'))"
},
"label": {
"type": "string",
"default": "Copy/Paste",
"description": "badge subject text (URL-encoding needed for spaces or special characters)"
},
"labelColor": {
"$ref": "#/definitions/color",
"default": "555",
"description": "badge label color (name or RGB code without #); see https://github.com/badgen/badgen/blob/master/src/color-presets.ts"
},
"status": {
"type": "string",
"description": "badge value text (URL-encoding needed for spaces or special characters, default: duplication %)"
},
"color": {
"$ref": "#/definitions/color",
"description": "badge color (name or RGB code without #, default: green if beneath threshold, red if above threshold, grey if threshold not set); see https://github.com/badgen/badgen/blob/master/src/color-presets.ts"
},
"style": {
"enum": ["flat", "classic"],
"default": "classic",
"description": "badge look: flat or classic"
},
"icon": {
"type": "string",
"description": "URL for icon to display in front of badge subject text (e.g., data:image/svg+xml;base64,...)"
},
"iconWidth": {
"type": "number",
"default": 13,
"description": "SVG width of icon to display in front of badge subject text; set this if icon is not square"
},
"scale": {
"type": "number",
"default": 1,
"description": "size of badge relative to default of 1"
}
}
}
}
},
"exitCode": {
"type": "integer",
"default": 0,
"description": "exit code to use when at least one duplicate code block is detected but threshold is not exceeded"
}
},
"type": "object"
}

View File

@@ -1,167 +0,0 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://json.schemastore.org/ava.json",
"additionalProperties": false,
"definitions": {
"path": {
"type": "string",
"minLength": 1
},
"array-of-strings": {
"type": "array",
"items": {
"type": "string"
}
},
"array-of-paths": {
"type": "array",
"items": {
"$ref": "#/definitions/path"
}
}
},
"description": "Configuration Schema for the JavaScript test runner AVA",
"properties": {
"files": {
"$ref": "#/definitions/array-of-paths",
"description": "An array of glob patterns to select test files. Files with an underscore prefix are ignored. By default only selects files with `cjs`, `mjs` & `js` extensions, even if the pattern matches other files. Specify `extensions` to allow other file extensions"
},
"ignoredByWatcher": {
"$ref": "#/definitions/array-of-paths",
"description": "An array of glob patterns to match files that, even if changed, are ignored by the watcher"
},
"match": {
"$ref": "#/definitions/array-of-paths",
"description": "Not typically useful in the `package.json` configuration, but equivalent to specifying `--match` on the CLI"
},
"cache": {
"type": "boolean",
"default": true,
"description": "Defaults to `true` to cache compiled files under `node_modules/.cache/ava.` If `false`, files are cached in a temporary directory instead"
},
"concurrency": {
"type": "number",
"description": "Max number of test files running at the same time (default: CPU cores)"
},
"workerThreads": {
"type": "boolean",
"default": true,
"description": "Use worker threads to run tests (enabled by default). If `false`, tests will run in child processes"
},
"failFast": {
"type": "boolean",
"default": false,
"description": "Stop running further tests once a test fails"
},
"failWithoutAssertions": {
"type": "boolean",
"default": true,
"description": "If `false`, does not fail a test if it doesn't run assertions"
},
"environmentVariables": {
"title": "environment variables",
"type": "object",
"description": "Specifies environment variables to be made available to the tests. The environment variables defined here override the ones from `process.env`",
"additionalProperties": {
"type": "string"
}
},
"serial": {
"type": "boolean",
"default": false,
"description": "if `true`, prevents parallel execution of tests within a file"
},
"tap": {
"type": "boolean",
"default": false,
"description": "If `true`, enables the TAP reporter"
},
"verbose": {
"type": "boolean",
"default": false,
"description": "If `true`, enables verbose output (though currently non-verbose output is not supported)"
},
"snapshotDir": {
"$ref": "#/definitions/path",
"description": "Specifies a fixed location for storing snapshot files. Use this if your snapshots are ending up in the wrong location"
},
"extensions": {
"anyOf": [
{
"$ref": "#/definitions/array-of-strings"
},
{
"title": "extensions",
"type": "object",
"patternProperties": {
"^(c|m)?js$": {
"enum": [true]
}
},
"additionalProperties": {
"enum": ["commonjs", "module"]
}
}
],
"default": ["cjs", "mjs", "js"],
"description": "Extensions of test files. Setting this overrides the default `[\"cjs\", \"mjs\", \"js\"]` value, so make sure to include those extensions in the list. Experimentally you can configure how files are loaded"
},
"require": {
"$ref": "#/definitions/array-of-paths",
"description": "Extra modules to require before tests are run. Modules are required in the worker processes"
},
"timeout": {
"anyOf": [
{
"type": "number",
"minimum": 0
},
{
"type": "string",
"pattern": "^(\\d+)(s|m)$"
}
],
"default": "10s",
"description": "Timeouts in AVA behave differently than in other test frameworks. AVA resets a timer after each test, forcing tests to quit if no new test results were received within the specified timeout. This can be used to handle stalled tests. See our timeout documentation for more options"
},
"nodeArguments": {
"$ref": "#/definitions/array-of-strings",
"description": "Configure Node.js arguments used to launch worker processes"
},
"utilizeParallelBuilds": {
"type": "boolean",
"default": true,
"description": "If `false`, disable parallel builds (default: `true`)"
},
"typescript": {
"title": "configuration",
"type": "object",
"description": "Configures @ava/typescript for projects that precompile TypeScript. Alternatively, you can use `ts-node` to do live testing without transpiling, in which case you shouldn't use the `typescript` property",
"properties": {
"extensions": {
"$ref": "#/definitions/array-of-paths",
"default": ["ts"],
"description": "You can configure AVA to recognize additional file extensions as TypeScript (e.g., `[\"ts\", \"tsx\"]` to add partial JSX support). Note that the preserve mode for JSX is not (yet) supported. See also AVA's `extensions` object"
},
"rewritePaths": {
"title": "paths",
"type": "object",
"description": "AVA searches your entire project for `*.js`, `*.cjs`, `*.mjs` and `*.ts` files (or other extensions you've configured). It will ignore such files found in the `rewritePaths` targets (e.g. `build/`). If you use more specific paths, for instance `build/main/`, you may need to change AVA's `files` configuration to ignore other directories. Paths are relative to your project directory",
"patternProperties": {
"/$": {
"type": "string",
"pattern": "/$"
}
}
},
"compile": {
"enum": [false, "tsc"],
"default": false,
"description": "If `false`, AVA will assume you have already compiled your project. If set to `'tsc'`, AVA will run the TypeScript compiler before running your tests. This can be inefficient when using AVA in watch mode"
}
}
}
},
"title": "AVA Config Schema",
"type": "object"
}

View File

@@ -1 +0,0 @@
79efcc96-1486-4989-a911-393bcc574a8b

View File

@@ -1,4 +0,0 @@
{
"workbench.colorTheme": "Default Dark Modern",
"javascript.updateImportsOnFileMove.enabled": "always"
}

View File

@@ -1 +0,0 @@
{"pid":136632,"willReleaseAt":0}

View File

@@ -1,9 +0,0 @@
{
"query": {
"folder": "/home/bugattiguy527"
},
"update": {
"checked": 1732635045996,
"version": "4.95.3"
}
}

View File

@@ -1 +0,0 @@
aeeb7e20-e139-4512-8519-2d804ed5608c

View File

@@ -1 +0,0 @@
<>È26x¨´±GËÿˆ<C3BF>eC¢“»rÛœ¥¿°oÕL

View File

@@ -1,27 +0,0 @@
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi

View File

@@ -1,4 +0,0 @@
# HSTS 1.0 Known Hosts database for GNU Wget.
# Edit at your own risk.
# <hostname> <port> <incl. subdomains> <created> <max-age>
update.code.visualstudio.com 0 1 1732582713 31536000