Skip to content

Commit

Permalink
refactor(service): upgrade deps, cleanup schemas and rework build scr…
Browse files Browse the repository at this point in the history
…ipts

Signed-off-by: sam bacha <sam@manifoldfinance.com>
  • Loading branch information
sambacha committed Sep 8, 2021
1 parent de4dc4f commit d3d7f41
Show file tree
Hide file tree
Showing 13 changed files with 6,547 additions and 29 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@
node_modules
lib/
.env

*.log
*.tgz
.cache/
build/
dist/
_dev/
32 changes: 32 additions & 0 deletions bin/commands.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
module.exports = commands() {
initdb: 'npx ts-node ./src/utils/initServer/create-indexes.ts',
inittokens: 'npx ts-node ./src/utils/initServer/init-tokens.ts',
initpools: 'npx ts-node ./src/utils/initServer/init-pools.ts',
inittxs: 'npx ts-node ./src/utils/initServer/init-whales.ts',
dev-common: 'npx ts-node-dev ./src/listener-commons.ts',
dev-mempool: 'npx ts-node-dev ./src/listener-mempool.ts',
dev-confirm: 'npx ts-node-dev ./src/listener-confirmation.ts',
dev-ws: 'npx ts-node-dev ./src/_websocket-server.ts',
init-heroku: 'npx ts-node ./src/utils/initServer/set-heroku.ts',
reset-hard: 'npx ts-node ./src/utils/dev-utils/drop-transactions.ts',
reset-txs: 'npx ts-node ./src/utils/dev-utils/reset-transactions.ts',
reset-txc: 'npx ts-node ./src/utils/dev-utils/reset-transactions-c.ts',
reset-txp: 'npx ts-node ./src/utils/dev-utils/reset-transactions-p.ts',
reset-t-h: 'npx ts-node ./src/utils/dev-utils/reset-transactions-t-h.ts',
reset-pools: 'npx ts-node ./src/utils/dev-utils/reset-pools.ts',
reset-blocks: 'npx ts-node ./src/utils/dev-utils/reset-blocks.ts',
reset-tokens: 'npx ts-node ./src/utils/dev-utils/reset-tokens.ts',
web-worker: 'node ./dist/_websocket-server.js',
worker-common: ' node ./dist/listener-commons.js',
worker-mempool: 'node ./dist/listener-mempool.js',
worker-confirm: 'node ./dist/listener-confirmation.js',
run-workers: 'npm run-script worker-common && npm run-mempool && npm run-script worker-confirm',
clean: 'npx gts clean',
lint: 'npx gts lint',
build: 'npx tsc -b',
compile: 'NODE_ENV=production npx tsc -b',
fix: 'npx gts fix',
testdb: 'npm run init-db',
pretest: 'npm run-script init-tokens && npm run-script init-txs',
posttest: 'npm run lint'
};
Loading

0 comments on commit d3d7f41

Please # to comment.