-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from 0xjei/chore/monorepo
Move to `yarn workspaces` monorepo
- Loading branch information
Showing
18 changed files
with
7,851 additions
and
3,924 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
# Client. | ||
PCDPASS_URL="http://localhost:3000" | ||
|
||
# Server. | ||
SERVER_PORT=3000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
nodeLinker: node-modules | ||
|
||
plugins: | ||
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs | ||
spec: "@yarnpkg/plugin-workspace-tools" | ||
|
||
yarnPath: .yarn/releases/yarn-3.6.3.cjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name": "client", | ||
"version": "0.1.0", | ||
"source": "src/index.html", | ||
"scripts": { | ||
"start": "parcel --cache-dir .parcel-cache/ --no-cache --open", | ||
"build": "parcel build --cache-dir .parcel-cache/" | ||
}, | ||
"dependencies": { | ||
"@pcd/eddsa-pcd": "^0.1.1", | ||
"@pcd/passport-interface": "^0.6.2", | ||
"@pcd/pcd-types": "^0.6.2", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-router-dom": "^6.15.0" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^18.2.21", | ||
"@types/react-dom": "^18.2.7", | ||
"assert": "^2.0.0", | ||
"browserify-zlib": "^0.2.0", | ||
"buffer": "^5.5.0||^6.0.0", | ||
"crypto-browserify": "^3.12.0", | ||
"events": "^3.1.0", | ||
"os-browserify": "^0.3.0", | ||
"parcel": "^2.9.3", | ||
"path-browserify": "^1.0.0", | ||
"process": "^0.11.10", | ||
"stream-browserify": "^3.0.0" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "server", | ||
"version": "0.1.0", | ||
"main": "src/index.ts", | ||
"packageManager": "[email protected]", | ||
"scripts": { | ||
"build": "npx tsc", | ||
"start": "ts-node src/index.ts" | ||
}, | ||
"dependencies": { | ||
"dotenv": "^16.3.1", | ||
"express": "^4.18.2" | ||
}, | ||
"devDependencies": { | ||
"@types/dotenv": "^8.2.0", | ||
"@types/express": "^4.17.17", | ||
"@types/node": "^20.5.7", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^5.2.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import express, { Express, Request, Response } from 'express'; | ||
import dotenv from "dotenv" | ||
|
||
dotenv.config({ path: `${process.cwd()}/../../.env` }) | ||
|
||
const app: Express = express(); | ||
const port = process.env.SERVER_PORT || 3000; | ||
|
||
app.get('/', (req: Request, res: Response) => { | ||
res.send('Express + TypeScript Server'); | ||
}); | ||
|
||
app.listen(port, () => { | ||
console.log(`⚡️[server]: Server is running at http://localhost:${port}`); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "ES5", | ||
"module": "ES6", | ||
"outDir": "dist", | ||
"moduleResolution": "node", | ||
"preserveConstEnums": true, | ||
"resolveJsonModule": true, | ||
"allowSyntheticDefaultImports": true, | ||
"strict": true, | ||
"esModuleInterop": true, | ||
"skipLibCheck": true, | ||
"typeRoots": ["node_modules/@types"], | ||
}, | ||
"ts-node": { | ||
"compilerOptions": { | ||
"target": "esnext", | ||
"module": "commonjs" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,12 @@ | ||
{ | ||
"name": "example-consumer", | ||
"version": "0.1.0", | ||
"private": true, | ||
"source": "src/index.html", | ||
"packageManager": "[email protected]", | ||
"scripts": { | ||
"start": "parcel --no-cache --open", | ||
"build": "parcel build" | ||
"build": "yarn workspaces foreach -t run build", | ||
"start": "yarn workspaces foreach -pi run start" | ||
}, | ||
"dependencies": { | ||
"@pcd/eddsa-pcd": "^0.1.1", | ||
"@pcd/passport-interface": "^0.6.2", | ||
"@pcd/pcd-types": "^0.6.2", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-router-dom": "^6.15.0" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^18.2.21", | ||
"@types/react-dom": "^18.2.7", | ||
"assert": "^2.0.0", | ||
"browserify-zlib": "^0.2.0", | ||
"buffer": "^5.5.0||^6.0.0", | ||
"crypto-browserify": "^3.12.0", | ||
"events": "^3.1.0", | ||
"os-browserify": "^0.3.0", | ||
"parcel": "^2.9.3", | ||
"path-browserify": "^1.0.0", | ||
"process": "^0.11.10", | ||
"stream-browserify": "^3.0.0" | ||
} | ||
"workspaces": [ | ||
"apps/*" | ||
] | ||
} |
Oops, something went wrong.