Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
* Code linting and formatting
* Delete unnecessary packages
* Integrated .gitignore with GitHub gitignore.
* Etc
  • Loading branch information
hwangsihu committed Jul 14, 2024
1 parent bdf2e9e commit 8d32ebe
Show file tree
Hide file tree
Showing 10 changed files with 150 additions and 1,209 deletions.
147 changes: 138 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,140 @@
/.vscode
/dist
/node_modules
/Lavalink/plugins
/Lavalink/logs/*
/Lavalink/application.yml
/Lavalink/Lavalink.jar
/prisma/migrations
/prisma/lavamusic.db
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-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/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# 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 variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# 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

# vuepress v2.x temp and cache directory
.temp
.cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# Lavamusic
Lavalink/logs
Lavalink/plugins
Lavalink/application.yml
Lavalink/Lavalink.jar
prisma/migrations
prisma/lavamusic.db
package-lock.json
pnpm-lock.yaml
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Stage 1: Build TypeScript
FROM node:21 AS builder
FROM node AS builder

WORKDIR /opt/lavamusic/

Expand All @@ -9,7 +9,6 @@ COPY package*.json ./
# Install necessary tools and update npm
RUN apt-get update && apt-get install -y openssl git \
&& npm install -g npm@latest

RUN npm install
RUN npm config set global --legacy-peer-deps

Expand All @@ -26,7 +25,7 @@ RUN npx prisma db push
RUN npm run build

# Stage 2: Create production image
FROM node:21-slim
FROM node-slim

ENV NODE_ENV=production

Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@
"@biomejs/biome": "^1.8.3",
"@types/node": "^20.14.10",
"@types/signale": "^1.4.7",
"lint-staged": "^15.2.7",
"prisma": "^5.16.2",
"ts-node": "^10.9.2",
"typescript": "^5.5.3"
},
"dependencies": {
Expand Down
Loading

0 comments on commit 8d32ebe

Please sign in to comment.