chore: npm workspaces

This commit is contained in:
eneller
2026-02-28 00:12:10 +01:00
parent b7f4df2f5e
commit c7bf381ab9
6 changed files with 283 additions and 1 deletions

195
.gitignore vendored Normal file
View File

@@ -0,0 +1,195 @@
# Created by https://www.toptal.com/developers/gitignore/api/nextjs,node,visualstudiocode
# Edit at https://www.toptal.com/developers/gitignore?templates=nextjs,node,visualstudiocode
### NextJS ###
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
# next.js
/.next/
/out/
# production
/build
# misc
.DS_Store
*.pem
# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*
# local env files
.env*.local
# vercel
.vercel
# typescript
*.tsbuildinfo
next-env.d.ts
### Node ###
# Logs
logs
*.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/
# Snowpack dependency directory (https://snowpack.dev/)
web_modules/
# TypeScript cache
# 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
# 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.*
### Node Patch ###
# Serverless Webpack directories
.webpack/
# Optional stylelint cache
# SvelteKit build / generate output
.svelte-kit
### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets
# Local History for Visual Studio Code
.history/
# Built Visual Studio Code Extensions
*.vsix
### VisualStudioCode Patch ###
# Ignore all local history of files
.history
.ionide
# End of https://www.toptal.com/developers/gitignore/api/nextjs,node,visualstudiocode

12
client/package.json Normal file
View File

@@ -0,0 +1,12 @@
{
"name": "client",
"version": "1.0.0",
"description": "",
"license": "GPL-3.0",
"author": "",
"type": "commonjs",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
}
}

44
package-lock.json generated Normal file
View File

@@ -0,0 +1,44 @@
{
"name": "fakemoney",
"version": "0.0.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "fakemoney",
"version": "0.0.1",
"license": "GPL-3.0",
"workspaces": [
"client",
"server",
"shared"
]
},
"client": {
"version": "1.0.0",
"license": "GPL-3.0"
},
"node_modules/client": {
"resolved": "client",
"link": true
},
"node_modules/server": {
"resolved": "server",
"link": true
},
"node_modules/shared": {
"resolved": "shared",
"link": true
},
"server": {
"version": "1.0.0",
"license": "GPL-3.0",
"devDependencies": {}
},
"shared": {
"version": "1.0.0",
"license": "GPL-3.0",
"devDependencies": {}
}
}
}

View File

@@ -8,5 +8,10 @@
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
}
},
"workspaces": [
"client",
"server",
"shared"
]
}

13
server/package.json Normal file
View File

@@ -0,0 +1,13 @@
{
"name": "server",
"version": "1.0.0",
"description": "",
"license": "GPL-3.0",
"author": "",
"type": "commonjs",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"devDependencies": {}
}

13
shared/package.json Normal file
View File

@@ -0,0 +1,13 @@
{
"name": "shared",
"version": "1.0.0",
"description": "",
"license": "GPL-3.0",
"author": "",
"type": "commonjs",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"devDependencies": {}
}