Skip to content

Commit

Permalink
Add option to build all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Falk committed Mar 13, 2014
1 parent bd5182f commit e482955
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
10 changes: 6 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,13 @@ var parseBuildPlatforms = function(argumentPlatform) {
inputPlatforms = inputPlatforms.replace("darwin", "mac");
inputPlatforms = inputPlatforms.replace(/;ia|;x|;arm/, "");

var buildAll = /^all$/.test(inputPlatforms);

var buildPlatforms = {
mac: /mac/.test(inputPlatforms),
win: /win/.test(inputPlatforms),
linux32: /linux32/.test(inputPlatforms),
linux64: /linux64/.test(inputPlatforms)
mac: /mac/.test(inputPlatforms) || buildAll,
win: /win/.test(inputPlatforms) || buildAll,
linux32: /linux32/.test(inputPlatforms) || buildAll,
linux64: /linux64/.test(inputPlatforms) || buildAll
};

return buildPlatforms;
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Install the node modules:

$ npm install

Built with:
Build with:

$ grunt nodewkbuild

Expand All @@ -47,6 +47,10 @@ grunt:

$ grunt nodewkbuild --platforms=linux32,linux64,mac,win

You can also build for all platforms with:

$ grunt nodewkbuild --platforms=all

## Any problem?

### Regarding superagent dependency
Expand Down

0 comments on commit e482955

Please sign in to comment.