Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/token list migration #155

Closed
2 changes: 1 addition & 1 deletion gateway-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ copy_lists () {
# Make destination folder if needed
mkdir $HOST_CONF_PATH/lists
# Copy all files in the source folder to the destination folder
cp $TEMPLATE_DIR/lists/*.json $HOST_CONF_PATH/lists
cp -rf $TEMPLATE_DIR/lists $HOST_CONF_PATH
vic-en marked this conversation as resolved.
Show resolved Hide resolved
# Confirm that the files were copied
if [ $? -eq 0 ]; then
echo "Files successfully copied from $TEMPLATE_DIR/lists to $HOST_CONF_PATH"
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "Apache-2.0",
"repository": "https://github.com/hummingbot/gateway",
"scripts": {
"prebuild": "rimraf dist && mkdir dist",
"prebuild": "rimraf dist && mkdir dist && yarn copy-files:token-list",
"build": "tsc --skipLibCheck --project ./ && yarn copy-files",
"clean": "rm -rf ./node_modules && rm -rf ./coverage && rm -rf ./logs && yarn run clean:config",
"clean:config": "find ./conf -maxdepth 1 -regextype posix-extended -regex '.*.*' -delete",
Expand All @@ -16,6 +16,7 @@
"dev:debug": "NODE_ENV=dev DEBUG=* nodemon src/index.ts",
"start": "/bin/bash ./startup.sh",
"copy-files": "copyfiles -a 'src/**/schema/*.json' 'src/templates/*.yml' 'src/templates/lists/*.json' 'test/services/data/**/*.*' dist",
"copy-files:token-list": "mkdir -p conf/lists && copyfiles -u 'src/templates/lists/*.json' conf/lists",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this works if you change -u to -f here

"test": "jest --verbose",
"test:debug": "node --inspect node_modules/.bin/jest --watch --runInBand",
"test:unit": "NODE_OPTIONS=--max_old_space_size=10240 jest --runInBand --verbose ./test/",
Expand Down