diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..21239b88 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,41 @@ +# Set the default behavior, in case people don't have core.autocrlf set. +* text eol=lf + +# Explicitly declare text files you want to always be normalized and converted +# to native line endings on checkout. +*.php text eol=lf +*.phps text eol=lf +*.inc text eol=lf +*.js text eol=lf +*.css text eol=lf +*.ini text eol=lf +*.json text eol=lf +*.htm text eol=lf +*.html text eol=lf +*.xml text eol=lf +*.xslt text eol=lf +*.svg text eol=lf +*.txt text eol=lf +*.md text eol=lf +*.sh text eol=lf +CHANGELOG text eol=lf +README text eol=lf +RELEASENOTES text eol=lf + +# Declare files that will always have CRLF line endings on checkout. +*.sln text eol=crlf + +# Denote all files that are truly binary and should not be modified. +*.acorn binary +*.png binary +*.jpg binary +*.jpeg binary +*.z binary +*.gif binary +*.jpa binary +*.jps binary +*.zip binary +*.dll binary +*.exe binary +*.jar binary +*.phar binary diff --git a/README.md b/README.md index 4b5ebfa1..8ac10672 100644 --- a/README.md +++ b/README.md @@ -383,7 +383,6 @@ to view the past changes. - [ ] Non linear stop price and chase function - [#246](https://github.com/chrisleekr/binance-trading-bot/issues/246) - [ ] Support STOP-LOSS configuration per grid trade for selling - [#261](https://github.com/chrisleekr/binance-trading-bot/issues/261) - ## Donations If you find this project helpful, feel free to make a small diff --git a/scripts/docker-build.ps1 b/scripts/docker-build.ps1 index 917c00b0..b4ea7221 100644 --- a/scripts/docker-build.ps1 +++ b/scripts/docker-build.ps1 @@ -1,23 +1,23 @@ -[CmdletBinding()] -param ( - [Parameter(Position = 0)] - [ValidateSet("prod", "dev")] - [string] - $env = "prod" -) - -$packageVersion = $(node -p "require('./package.json').version") -$gitHash = $(git rev-parse --short HEAD) - -switch ($env) { - "prod" { - $nodeEnv = "production" - $target = "production-stage" - } - "dev" { - $nodeEnv = "development" - $target = "dev-stage" - } -} - -docker build . --build-arg PACKAGE_VERSION=$packageVersion --build-arg GIT_HASH=$gitHash --build-arg NODE_ENV=$nodeEnv --target $target -t chrisleekr/binance-trading-bot:latest +[CmdletBinding()] +param ( + [Parameter(Position = 0)] + [ValidateSet("prod", "dev")] + [string] + $env = "prod" +) + +$packageVersion = $(node -p "require('./package.json').version") +$gitHash = $(git rev-parse --short HEAD) + +switch ($env) { + "prod" { + $nodeEnv = "production" + $target = "production-stage" + } + "dev" { + $nodeEnv = "development" + $target = "dev-stage" + } +} + +docker build . --build-arg PACKAGE_VERSION=$packageVersion --build-arg GIT_HASH=$gitHash --build-arg NODE_ENV=$nodeEnv --target $target -t chrisleekr/binance-trading-bot:latest