fixed a spelling error in my Gruntfile
This commit is contained in:
25
Gruntfile.js
25
Gruntfile.js
@ -208,34 +208,35 @@ module.exports = function (grunt) {
|
|||||||
|
|
||||||
var browsers = {
|
var browsers = {
|
||||||
safari: {
|
safari: {
|
||||||
appName: 'Safari',
|
darwin: 'Safari'
|
||||||
executable: null
|
|
||||||
},
|
},
|
||||||
chrome: {
|
chrome: {
|
||||||
appName: 'Google Chrome',
|
darwin: 'Google Chrome',
|
||||||
|
win32: 'Google Chrome',
|
||||||
executable: 'google-chrome'
|
executable: 'google-chrome'
|
||||||
},
|
},
|
||||||
chromium: {
|
chromium: {
|
||||||
appName: null,
|
executable: 'chromium-browser',
|
||||||
executable: 'chromium-browser'
|
|
||||||
},
|
},
|
||||||
firefox: {
|
firefox: {
|
||||||
appName: 'Firefox',
|
darwin: 'Firefox',
|
||||||
|
win32: 'Firefox',
|
||||||
executable: 'firefox'
|
executable: 'firefox'
|
||||||
},
|
},
|
||||||
opera: {
|
opera: {
|
||||||
appName: 'Opera',
|
darwin: 'Opera',
|
||||||
|
win32: 'Opera',
|
||||||
executable: 'opera'
|
executable: 'opera'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// creates browser_tests:{{browser}} tasks, for the browsers listed directly above
|
// creates browser_tests:{{browser}} tasks, for the browsers listed directly above
|
||||||
Object.keys(browsers).forEach(function (browser) {
|
Object.keys(browsers).forEach(function (browser) {
|
||||||
// on other platforms, grunt-open expects appname to be the name of the executale...
|
var appName = browsers[browser][process.platform];
|
||||||
var appName = browsers[browser][process.platform === 'darwin' || process.platform === 'win32'
|
// on other platforms, open expects app to be the name of the executable...
|
||||||
? 'appName'
|
if (!appName && process.platform !== 'darwin' && process.platform !== 'win32') {
|
||||||
: 'executale'
|
appName = browsers[browser].executable;
|
||||||
];
|
}
|
||||||
|
|
||||||
if (!appName) {
|
if (!appName) {
|
||||||
// this browser doesn't run on this arch
|
// this browser doesn't run on this arch
|
||||||
|
|||||||
Reference in New Issue
Block a user