-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: apply lf on checkout (#328)
- Loading branch information
1 parent
05a9edf
commit e6b3fd4
Showing
3 changed files
with
64 additions
and
24 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 |
---|---|---|
@@ -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 |
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 |
---|---|---|
@@ -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 |