From c6d461c579342ca4a0b1357176c006900b022e6a Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Thu, 14 Sep 2017 16:05:31 -0700 Subject: [PATCH] Bypass often-corrupt node_modules/.bin/grunt.cmd on windows (#1481) FREEBIE --- appveyor.yml | 7 +++---- build/grunt.js | 2 ++ 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 build/grunt.js diff --git a/appveyor.yml b/appveyor.yml index d76605d1c..63f93035b 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -10,19 +10,18 @@ install: - set PATH=C:\Ruby23-x64\bin;%PATH% - ps: Install-Product node 6 x64 - yarn install - - type node_modules\.bin\grunt.cmd build_script: - yarn run icon-gen - del /f images\emoji\apple - mkdir images\emoji\apple - xcopy /Q components\emojidata\img-apple-64 images\emoji\apple - - node_modules\.bin\grunt + - node build\grunt.js - node_modules\.bin\build --em.environment=%SIGNAL_ENV% --publish=never test_script: - - node_modules\.bin\grunt test-release:win - - node_modules\.bin\grunt test + - node build\grunt.js test-release:win + - node build\grunt.js test artifacts: - path: dist/*.* diff --git a/build/grunt.js b/build/grunt.js new file mode 100644 index 000000000..e60487fb7 --- /dev/null +++ b/build/grunt.js @@ -0,0 +1,2 @@ +// because grunt.cmd is totally flakey on windows +require('grunt').cli();