From c7bf381ab9c282e8a5d8b97c6a28bd3b75032267 Mon Sep 17 00:00:00 2001 From: eneller Date: Sat, 28 Feb 2026 00:12:10 +0100 Subject: [PATCH] chore: npm workspaces --- .gitignore | 195 ++++++++++++++++++++++++++++++++++++++++++++ client/package.json | 12 +++ package-lock.json | 44 ++++++++++ package.json | 7 +- server/package.json | 13 +++ shared/package.json | 13 +++ 6 files changed, 283 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 client/package.json create mode 100644 package-lock.json create mode 100644 server/package.json create mode 100644 shared/package.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..549a6a8 --- /dev/null +++ b/.gitignore @@ -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 + diff --git a/client/package.json b/client/package.json new file mode 100644 index 0000000..a2e8ef7 --- /dev/null +++ b/client/package.json @@ -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" + } +} diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..74ca265 --- /dev/null +++ b/package-lock.json @@ -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": {} + } + } +} diff --git a/package.json b/package.json index b5d2bf5..609aaff 100644 --- a/package.json +++ b/package.json @@ -8,5 +8,10 @@ "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" - } + }, + "workspaces": [ + "client", + "server", + "shared" + ] } diff --git a/server/package.json b/server/package.json new file mode 100644 index 0000000..2d462c0 --- /dev/null +++ b/server/package.json @@ -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": {} +} diff --git a/shared/package.json b/shared/package.json new file mode 100644 index 0000000..45fa91c --- /dev/null +++ b/shared/package.json @@ -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": {} +}