mirror of
https://github.com/cerc-io/watcher-ts
synced 2025-07-27 02:32:07 +00:00
Move server to yarn workspace package.
This commit is contained in:
parent
1277f24fd6
commit
c84b481385
@ -18,6 +18,8 @@
|
|||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
|
This project uses [yarn workspaces](https://classic.yarnpkg.com/en/docs/workspaces/).
|
||||||
|
|
||||||
Install packages:
|
Install packages:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@ -27,6 +29,7 @@ yarn
|
|||||||
Run the GQL server:
|
Run the GQL server:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
cd packages/server
|
||||||
yarn run server
|
yarn run server
|
||||||
```
|
```
|
||||||
|
|
||||||
|
31
package.json
31
package.json
@ -1,36 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "erc20-watcher",
|
"name": "erc20-watcher",
|
||||||
"version": "0.1.0",
|
|
||||||
"description": "ERC20 Watcher",
|
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"workspaces": [
|
||||||
"server": "nodemon src/server.ts",
|
"packages/*"
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
],
|
||||||
},
|
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "git+https://github.com/vulcanize/erc20-watcher.git"
|
|
||||||
},
|
|
||||||
"author": "",
|
|
||||||
"license": "UNLICENSED",
|
|
||||||
"bugs": {
|
|
||||||
"url": "https://github.com/vulcanize/erc20-watcher/issues"
|
|
||||||
},
|
|
||||||
"homepage": "https://github.com/vulcanize/erc20-watcher#readme",
|
|
||||||
"dependencies": {
|
|
||||||
"@types/lodash": "^4.14.168",
|
|
||||||
"apollo-type-bigint": "^0.1.3",
|
|
||||||
"express": "^4.17.1",
|
|
||||||
"express-graphql": "^0.12.0",
|
|
||||||
"graphql": "^15.5.0",
|
|
||||||
"graphql-import-node": "^0.0.4",
|
|
||||||
"graphql-tools": "^7.0.4",
|
|
||||||
"lodash": "^4.17.21"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/express": "^4.17.11",
|
|
||||||
"@types/node": "^15.0.2",
|
"@types/node": "^15.0.2",
|
||||||
"nodemon": "^2.0.7",
|
|
||||||
"ts-node": "^9.1.1",
|
"ts-node": "^9.1.1",
|
||||||
"typescript": "^4.2.4"
|
"typescript": "^4.2.4"
|
||||||
}
|
}
|
||||||
|
0
packages/dashboard/.gitkeep
Normal file
0
packages/dashboard/.gitkeep
Normal file
34
packages/server/package.json
Normal file
34
packages/server/package.json
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"name": "erc20-watcher",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"description": "ERC20 Watcher",
|
||||||
|
"private": true,
|
||||||
|
"scripts": {
|
||||||
|
"server": "nodemon src/server.ts",
|
||||||
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/vulcanize/erc20-watcher.git"
|
||||||
|
},
|
||||||
|
"author": "",
|
||||||
|
"license": "UNLICENSED",
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/vulcanize/erc20-watcher/issues"
|
||||||
|
},
|
||||||
|
"homepage": "https://github.com/vulcanize/erc20-watcher#readme",
|
||||||
|
"dependencies": {
|
||||||
|
"@types/lodash": "^4.14.168",
|
||||||
|
"apollo-type-bigint": "^0.1.3",
|
||||||
|
"express": "^4.17.1",
|
||||||
|
"express-graphql": "^0.12.0",
|
||||||
|
"graphql": "^15.5.0",
|
||||||
|
"graphql-import-node": "^0.0.4",
|
||||||
|
"graphql-tools": "^7.0.4",
|
||||||
|
"lodash": "^4.17.21"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@types/express": "^4.17.11",
|
||||||
|
"nodemon": "^2.0.7"
|
||||||
|
}
|
||||||
|
}
|
0
packages/watcher/.gitkeep
Normal file
0
packages/watcher/.gitkeep
Normal file
Loading…
Reference in New Issue
Block a user