Skip to content

Commit f71b6bc

Browse files
committed
Allow gulpfile.js dirs and Gruntfile.coffee.
1 parent 03d60f1 commit f71b6bc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

build/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ COPY LICENSE README.md THIRD_PARTY_NOTICE.md /
1313

1414
COPY "entrypoint.sh" "/entrypoint.sh"
1515
ENTRYPOINT ["/entrypoint.sh"]
16-
CMD ["--help"]
16+
CMD ["default"]

build/entrypoint.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ echo "Installing NPM dependencies"
1212
npm install
1313

1414
# First try Gulp, then try Grunt
15-
if [ -f "gulpfile.js" ]
15+
# Gulpfile.js can be a file or a directory:
16+
if [ -e "gulpfile.js" ]
1617
then
1718
npm install -g gulp-cli
1819
echo "Running Gulp with args"
1920
sh -c "gulp $*"
20-
elif [ -f "Gruntfile.js" ]
21+
# Gruntfile can be js or coffeescript file
22+
elif [ -f "Gruntfile.js" -o -f "Gruntfile.coffee" ]
2123
then
2224
npm install -g grunt-cli
2325
echo "Running Grunt with args"

0 commit comments

Comments
 (0)