From 6e5ae038b75837ed12efd8b9943542c135b6074d Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Fri, 4 Mar 2022 13:27:01 -0500 Subject: [PATCH] Move server to sub project --- .gitignore | 4 +++- package.json | 7 +++---- pnpm-lock.yaml | 12 ------------ server/.pnpm-debug.log | 1 + server/package.json | 9 +++++++++ server/pnpm-lock.yaml | 19 +++++++++++++++++++ {src => server/src}/server.js | 0 7 files changed, 35 insertions(+), 17 deletions(-) create mode 100644 server/.pnpm-debug.log create mode 100644 server/package.json create mode 100644 server/pnpm-lock.yaml rename {src => server/src}/server.js (100%) diff --git a/.gitignore b/.gitignore index 479605b..a14d9cf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ /.tern-port -/node_modules/ +node_modules/ /dist/ .tern-port /.cache/ +/server/log/ +/.log/ diff --git a/package.json b/package.json index 87374cc..93e35d4 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,7 @@ "distinct-colors": "^1.0.4", "ol": "^6.13.0", "vue": "^3.2.31", - "vue3-openlayers": "^0.1.63", - "ws": "^5.2.2" + "vue3-openlayers": "^0.1.63" }, "devDependencies": { "@modyfi/vite-plugin-yaml": "^1.0.1", @@ -18,8 +17,8 @@ "vite": "^2.8.6" }, "scripts": { - "serve": "node src/server.js", - "start": "vite", + "start": "pnpm run -r --parallel dev", + "dev": "vite", "build": "vite build" }, "author": "Adam Goldsmith ", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1757126..b861455 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,7 +10,6 @@ specifiers: vite: ^2.8.6 vue: ^3.2.31 vue3-openlayers: ^0.1.63 - ws: ^5.2.2 dependencies: aprs-parser: github.com/ad1217/npm-aprs-parser/39cf938ea79e08cd3127997fd1b2fc41abb0b56f @@ -18,7 +17,6 @@ dependencies: ol: 6.13.0 vue: 3.2.31 vue3-openlayers: 0.1.63 - ws: 5.2.3 devDependencies: '@modyfi/vite-plugin-yaml': 1.0.1 @@ -276,10 +274,6 @@ packages: engines: {node: '>=8'} dev: true - /async-limiter/1.0.1: - resolution: {integrity: sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==} - dev: false - /atob/2.1.2: resolution: {integrity: sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==} engines: {node: '>= 4.5.0'} @@ -1648,12 +1642,6 @@ packages: resolution: {integrity: sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=} dev: true - /ws/5.2.3: - resolution: {integrity: sha512-jZArVERrMsKUatIdnLzqvcfydI85dvd/Fp1u/VOpfdDWQ4c9qWXe+VIeAbQ5FrDwciAkr+lzofXLz3Kuf26AOA==} - dependencies: - async-limiter: 1.0.1 - dev: false - /xml-utils/1.0.2: resolution: {integrity: sha512-rEn0FvKi+YGjv9omf22oAf+0d6Ly/sgJ/CUufU/nOzS7SRLmgwSujrewc03KojXxt+aPaTRpm593TgehtUBMSQ==} dev: false diff --git a/server/.pnpm-debug.log b/server/.pnpm-debug.log new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/server/.pnpm-debug.log @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/server/package.json b/server/package.json new file mode 100644 index 0000000..660a201 --- /dev/null +++ b/server/package.json @@ -0,0 +1,9 @@ +{ + "scripts": { + "start": "npm run dev", + "dev": "node ./src/server.js" + }, + "dependencies": { + "ws": "^5.2.3" + } +} diff --git a/server/pnpm-lock.yaml b/server/pnpm-lock.yaml new file mode 100644 index 0000000..0e863ab --- /dev/null +++ b/server/pnpm-lock.yaml @@ -0,0 +1,19 @@ +lockfileVersion: 5.3 + +specifiers: + ws: ^5.2.3 + +dependencies: + ws: 5.2.3 + +packages: + + /async-limiter/1.0.1: + resolution: {integrity: sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==} + dev: false + + /ws/5.2.3: + resolution: {integrity: sha512-jZArVERrMsKUatIdnLzqvcfydI85dvd/Fp1u/VOpfdDWQ4c9qWXe+VIeAbQ5FrDwciAkr+lzofXLz3Kuf26AOA==} + dependencies: + async-limiter: 1.0.1 + dev: false diff --git a/src/server.js b/server/src/server.js similarity index 100% rename from src/server.js rename to server/src/server.js