Skip to content
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.

Commit

Permalink
Bundle fix for windows and otherwise
Browse files Browse the repository at this point in the history
  • Loading branch information
AntJanus committed Dec 8, 2014
1 parent 4e6ea4d commit 45279e9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/foundationCLI.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ var yeti = require('./yeti');
var bower = require('bower');
var isRoot = require('is-root');
var pkg = require('../package.json');
var npm = process.platform === 'win32' ? 'npm.cmd' : 'npm';
var bower = process.platform === 'win32' ? 'bower.cmd' : 'bower';

var npm = process.platform === 'win32' ? 'npm.cmd' : 'npm';
var bower = process.platform === 'win32' ? 'bower.cmd' : 'bower';
var bundle = process.platform === 'win32' ? 'bundle.bat' : 'bundle';

// HELP
// List all available commands, or info for a specific command
Expand Down Expand Up @@ -94,7 +96,7 @@ module.exports.new = function(args, options) {
var gitClone = ['git', 'clone', 'https://github.com/zurb/foundation-apps-template.git', args[0]];
var npmInstall = [npm, 'install'];
var bowerInstall = [bower, 'install'];
var bundleInstall = ['bundle'];
var bundleInstall = [bundle];
if (isRoot()) bowerInstall.push('--allow-root');

// Show help screen if the user didn't enter a project name
Expand Down

0 comments on commit 45279e9

Please sign in to comment.