From 1a6d3bea01c531cf73c9cb690c35dd218f133cdb Mon Sep 17 00:00:00 2001 From: Iain Merrick Date: Thu, 8 Feb 2024 08:33:11 +0000 Subject: [PATCH] Monorepo prep: move everything to subdirectory --- CODEOWNERS | 1 - LICENSE => gosub/LICENSE | 0 README.md => gosub/README.md | 0 {assets => gosub/assets}/github-mark.svg | 0 {assets => gosub/assets}/gosub.svg | 0 {assets => gosub/assets}/package.json | 0 .../assets}/under-construction.svg | 0 {src => gosub/src}/.gitignore | 0 {src => gosub/src}/github.ts | 0 {src => gosub/src}/goproxy.ts | 0 {src => gosub/src}/gosub.ts | 0 {src => gosub/src}/index.ts | 0 {src => gosub/src}/package.json | 0 {src => gosub/src}/result.ts | 0 {src => gosub/src}/ts-browser-compat.json | 0 {src => gosub/src}/tsconfig.json | 0 {src => gosub/src}/utils.ts | 0 {test => gosub/test}/example/example.go | 0 {test => gosub/test}/example/go.mod | 0 {test => gosub/test}/example/nested/go.mod | 0 {test => gosub/test}/example/nested/nested.go | 0 {test => gosub/test}/goproxy.test.ts | 0 {test => gosub/test}/gosub.test.ts | 0 {test => gosub/test}/package.json | 0 {test => gosub/test}/tsconfig.json | 0 {website => gosub/website}/.gitignore | 0 {website => gosub/website}/netlify.toml | 0 {website => gosub/website}/package.json | 0 {website => gosub/website}/src/app.d.ts | 0 {website => gosub/website}/src/app.html | 0 .../website}/src/lib/github-mark.svg | 0 {website => gosub/website}/src/lib/gosub.svg | 0 .../website}/src/lib/under-construction.svg | 0 .../website}/src/routes/+page.svelte | 0 .../routes/github.com/[...gosub]/+server.ts | 0 {website => gosub/website}/static/favicon.ico | Bin {website => gosub/website}/svelte.config.js | 0 {website => gosub/website}/tsconfig.json | 0 {website => gosub/website}/vite.config.ts | 0 pnpm-lock.yaml | 60 +++--------------- pnpm-workspace.yaml | 2 +- 41 files changed, 9 insertions(+), 54 deletions(-) delete mode 100644 CODEOWNERS rename LICENSE => gosub/LICENSE (100%) rename README.md => gosub/README.md (100%) rename {assets => gosub/assets}/github-mark.svg (100%) rename {assets => gosub/assets}/gosub.svg (100%) rename {assets => gosub/assets}/package.json (100%) rename {assets => gosub/assets}/under-construction.svg (100%) rename {src => gosub/src}/.gitignore (100%) rename {src => gosub/src}/github.ts (100%) rename {src => gosub/src}/goproxy.ts (100%) rename {src => gosub/src}/gosub.ts (100%) rename {src => gosub/src}/index.ts (100%) rename {src => gosub/src}/package.json (100%) rename {src => gosub/src}/result.ts (100%) rename {src => gosub/src}/ts-browser-compat.json (100%) rename {src => gosub/src}/tsconfig.json (100%) rename {src => gosub/src}/utils.ts (100%) rename {test => gosub/test}/example/example.go (100%) rename {test => gosub/test}/example/go.mod (100%) rename {test => gosub/test}/example/nested/go.mod (100%) rename {test => gosub/test}/example/nested/nested.go (100%) rename {test => gosub/test}/goproxy.test.ts (100%) rename {test => gosub/test}/gosub.test.ts (100%) rename {test => gosub/test}/package.json (100%) rename {test => gosub/test}/tsconfig.json (100%) rename {website => gosub/website}/.gitignore (100%) rename {website => gosub/website}/netlify.toml (100%) rename {website => gosub/website}/package.json (100%) rename {website => gosub/website}/src/app.d.ts (100%) rename {website => gosub/website}/src/app.html (100%) rename {website => gosub/website}/src/lib/github-mark.svg (100%) rename {website => gosub/website}/src/lib/gosub.svg (100%) rename {website => gosub/website}/src/lib/under-construction.svg (100%) rename {website => gosub/website}/src/routes/+page.svelte (100%) rename {website => gosub/website}/src/routes/github.com/[...gosub]/+server.ts (100%) rename {website => gosub/website}/static/favicon.ico (100%) rename {website => gosub/website}/svelte.config.js (100%) rename {website => gosub/website}/tsconfig.json (100%) rename {website => gosub/website}/vite.config.ts (100%) diff --git a/CODEOWNERS b/CODEOWNERS deleted file mode 100644 index 819706d..0000000 --- a/CODEOWNERS +++ /dev/null @@ -1 +0,0 @@ -* @iainmerrick diff --git a/LICENSE b/gosub/LICENSE similarity index 100% rename from LICENSE rename to gosub/LICENSE diff --git a/README.md b/gosub/README.md similarity index 100% rename from README.md rename to gosub/README.md diff --git a/assets/github-mark.svg b/gosub/assets/github-mark.svg similarity index 100% rename from assets/github-mark.svg rename to gosub/assets/github-mark.svg diff --git a/assets/gosub.svg b/gosub/assets/gosub.svg similarity index 100% rename from assets/gosub.svg rename to gosub/assets/gosub.svg diff --git a/assets/package.json b/gosub/assets/package.json similarity index 100% rename from assets/package.json rename to gosub/assets/package.json diff --git a/assets/under-construction.svg b/gosub/assets/under-construction.svg similarity index 100% rename from assets/under-construction.svg rename to gosub/assets/under-construction.svg diff --git a/src/.gitignore b/gosub/src/.gitignore similarity index 100% rename from src/.gitignore rename to gosub/src/.gitignore diff --git a/src/github.ts b/gosub/src/github.ts similarity index 100% rename from src/github.ts rename to gosub/src/github.ts diff --git a/src/goproxy.ts b/gosub/src/goproxy.ts similarity index 100% rename from src/goproxy.ts rename to gosub/src/goproxy.ts diff --git a/src/gosub.ts b/gosub/src/gosub.ts similarity index 100% rename from src/gosub.ts rename to gosub/src/gosub.ts diff --git a/src/index.ts b/gosub/src/index.ts similarity index 100% rename from src/index.ts rename to gosub/src/index.ts diff --git a/src/package.json b/gosub/src/package.json similarity index 100% rename from src/package.json rename to gosub/src/package.json diff --git a/src/result.ts b/gosub/src/result.ts similarity index 100% rename from src/result.ts rename to gosub/src/result.ts diff --git a/src/ts-browser-compat.json b/gosub/src/ts-browser-compat.json similarity index 100% rename from src/ts-browser-compat.json rename to gosub/src/ts-browser-compat.json diff --git a/src/tsconfig.json b/gosub/src/tsconfig.json similarity index 100% rename from src/tsconfig.json rename to gosub/src/tsconfig.json diff --git a/src/utils.ts b/gosub/src/utils.ts similarity index 100% rename from src/utils.ts rename to gosub/src/utils.ts diff --git a/test/example/example.go b/gosub/test/example/example.go similarity index 100% rename from test/example/example.go rename to gosub/test/example/example.go diff --git a/test/example/go.mod b/gosub/test/example/go.mod similarity index 100% rename from test/example/go.mod rename to gosub/test/example/go.mod diff --git a/test/example/nested/go.mod b/gosub/test/example/nested/go.mod similarity index 100% rename from test/example/nested/go.mod rename to gosub/test/example/nested/go.mod diff --git a/test/example/nested/nested.go b/gosub/test/example/nested/nested.go similarity index 100% rename from test/example/nested/nested.go rename to gosub/test/example/nested/nested.go diff --git a/test/goproxy.test.ts b/gosub/test/goproxy.test.ts similarity index 100% rename from test/goproxy.test.ts rename to gosub/test/goproxy.test.ts diff --git a/test/gosub.test.ts b/gosub/test/gosub.test.ts similarity index 100% rename from test/gosub.test.ts rename to gosub/test/gosub.test.ts diff --git a/test/package.json b/gosub/test/package.json similarity index 100% rename from test/package.json rename to gosub/test/package.json diff --git a/test/tsconfig.json b/gosub/test/tsconfig.json similarity index 100% rename from test/tsconfig.json rename to gosub/test/tsconfig.json diff --git a/website/.gitignore b/gosub/website/.gitignore similarity index 100% rename from website/.gitignore rename to gosub/website/.gitignore diff --git a/website/netlify.toml b/gosub/website/netlify.toml similarity index 100% rename from website/netlify.toml rename to gosub/website/netlify.toml diff --git a/website/package.json b/gosub/website/package.json similarity index 100% rename from website/package.json rename to gosub/website/package.json diff --git a/website/src/app.d.ts b/gosub/website/src/app.d.ts similarity index 100% rename from website/src/app.d.ts rename to gosub/website/src/app.d.ts diff --git a/website/src/app.html b/gosub/website/src/app.html similarity index 100% rename from website/src/app.html rename to gosub/website/src/app.html diff --git a/website/src/lib/github-mark.svg b/gosub/website/src/lib/github-mark.svg similarity index 100% rename from website/src/lib/github-mark.svg rename to gosub/website/src/lib/github-mark.svg diff --git a/website/src/lib/gosub.svg b/gosub/website/src/lib/gosub.svg similarity index 100% rename from website/src/lib/gosub.svg rename to gosub/website/src/lib/gosub.svg diff --git a/website/src/lib/under-construction.svg b/gosub/website/src/lib/under-construction.svg similarity index 100% rename from website/src/lib/under-construction.svg rename to gosub/website/src/lib/under-construction.svg diff --git a/website/src/routes/+page.svelte b/gosub/website/src/routes/+page.svelte similarity index 100% rename from website/src/routes/+page.svelte rename to gosub/website/src/routes/+page.svelte diff --git a/website/src/routes/github.com/[...gosub]/+server.ts b/gosub/website/src/routes/github.com/[...gosub]/+server.ts similarity index 100% rename from website/src/routes/github.com/[...gosub]/+server.ts rename to gosub/website/src/routes/github.com/[...gosub]/+server.ts diff --git a/website/static/favicon.ico b/gosub/website/static/favicon.ico similarity index 100% rename from website/static/favicon.ico rename to gosub/website/static/favicon.ico diff --git a/website/svelte.config.js b/gosub/website/svelte.config.js similarity index 100% rename from website/svelte.config.js rename to gosub/website/svelte.config.js diff --git a/website/tsconfig.json b/gosub/website/tsconfig.json similarity index 100% rename from website/tsconfig.json rename to gosub/website/tsconfig.json diff --git a/website/vite.config.ts b/gosub/website/vite.config.ts similarity index 100% rename from website/vite.config.ts rename to gosub/website/vite.config.ts diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f6cbf3e..e29ee1a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,9 +8,9 @@ importers: .: {} - assets: {} + gosub/assets: {} - src: + gosub/src: dependencies: client-zip: specifier: ^2.4.4 @@ -29,7 +29,7 @@ importers: specifier: ^5.3.3 version: 5.3.3 - test: + gosub/test: dependencies: gosub-goproxy: specifier: link:../src @@ -48,7 +48,7 @@ importers: specifier: ^1.2.2 version: 1.2.2 - website: + gosub/website: dependencies: '@sveltejs/adapter-netlify': specifier: ^4.1.0 @@ -729,9 +729,6 @@ packages: resolution: {integrity: sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA==} dev: false - /@types/estree@1.0.3: - resolution: {integrity: sha512-CS2rOaoQ/eAgAfcTfq6amKG7bsN+EMcgGY4FAFQdvSj2y1ixvOZTUA9mOtCai7E1SYu283XNw7urKK30nP3wkQ==} - /@types/estree@1.0.5: resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} @@ -783,12 +780,6 @@ packages: engines: {node: '>=0.4.0'} dev: true - /acorn@8.11.2: - resolution: {integrity: sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==} - engines: {node: '>=0.4.0'} - hasBin: true - dev: true - /acorn@8.11.3: resolution: {integrity: sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==} engines: {node: '>=0.4.0'} @@ -1125,7 +1116,7 @@ packages: /estree-walker@3.0.3: resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} dependencies: - '@types/estree': 1.0.3 + '@types/estree': 1.0.5 /execa@8.0.1: resolution: {integrity: sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==} @@ -1382,7 +1373,7 @@ packages: /mlly@1.4.2: resolution: {integrity: sha512-i/Ykufi2t1EZ6NaPLdfnZk2AX8cs0d+mTzVKuPfqPKPatxLApaBoxJQ9x1/uckXtrS/U5oisPMDkNs0yQTaBRg==} dependencies: - acorn: 8.11.2 + acorn: 8.11.3 pathe: 1.1.1 pkg-types: 1.0.3 ufo: 1.3.0 @@ -1709,7 +1700,7 @@ packages: /strip-literal@1.3.0: resolution: {integrity: sha512-PugKzOsyXpArk0yWmUwqOZecSO0GH0bPoctLcqNDH9J04pVW3lflYE0ujElBGTloevcxF5MofAOZ7C5l2b+wLg==} dependencies: - acorn: 8.11.2 + acorn: 8.11.3 dev: true /supports-color@7.2.0: @@ -1934,41 +1925,6 @@ packages: - terser dev: true - /vite@5.0.11: - resolution: {integrity: sha512-XBMnDjZcNAw/G1gEiskiM1v6yzM4GE5aMGvhWTlHAYYhxb7S3/V1s3m2LDHa8Vh6yIWYYB0iJwsEaS523c4oYA==} - engines: {node: ^18.0.0 || >=20.0.0} - hasBin: true - peerDependencies: - '@types/node': ^18.0.0 || >=20.0.0 - less: '*' - lightningcss: ^1.21.0 - sass: '*' - stylus: '*' - sugarss: '*' - terser: ^5.4.0 - peerDependenciesMeta: - '@types/node': - optional: true - less: - optional: true - lightningcss: - optional: true - sass: - optional: true - stylus: - optional: true - sugarss: - optional: true - terser: - optional: true - dependencies: - esbuild: 0.19.11 - postcss: 8.4.33 - rollup: 4.5.0 - optionalDependencies: - fsevents: 2.3.3 - dev: true - /vite@5.0.12: resolution: {integrity: sha512-4hsnEkG3q0N4Tzf1+t6NdN9dg/L3BM+q8SWgbSPnJvrgH2kgdyzfVJwbR1ic69/4uMJJ/3dqDZZE5/WwqW8U1w==} engines: {node: ^18.0.0 || >=20.0.0} @@ -2057,7 +2013,7 @@ packages: strip-literal: 1.3.0 tinybench: 2.5.1 tinypool: 0.8.2 - vite: 5.0.11 + vite: 5.0.12 vite-node: 1.2.2 why-is-node-running: 2.2.2 transitivePeerDependencies: diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 6137e68..4601383 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,2 +1,2 @@ packages: - - "*" + - "gosub/*"