summaryrefslogtreecommitdiffstats
path: root/js/vendor/es6-shim/Gruntfile.js
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-11-12 17:21:08 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2015-11-12 17:21:08 +0100
commit104cf2afe06c7a51dee47b412a508bc9b0d83a69 (patch)
tree0221feb96a09546a3a66c23b24469ef3f91d17c2 /js/vendor/es6-shim/Gruntfile.js
parentec700890c0484250edb4796b197d490df99daa42 (diff)
update es6 shim
Diffstat (limited to 'js/vendor/es6-shim/Gruntfile.js')
-rw-r--r--js/vendor/es6-shim/Gruntfile.js74
1 files changed, 36 insertions, 38 deletions
diff --git a/js/vendor/es6-shim/Gruntfile.js b/js/vendor/es6-shim/Gruntfile.js
index 370443762..230934d6b 100644
--- a/js/vendor/es6-shim/Gruntfile.js
+++ b/js/vendor/es6-shim/Gruntfile.js
@@ -1,14 +1,16 @@
+'use strict';
+
module.exports = function (grunt) {
var browsers = [
- { browserName: "firefox", version: "19", platform: "XP" },
- { browserName: "firefox", platform: "linux" },
- { browserName: "firefox", platform: "OS X 10.10" },
- { browserName: "chrome", platform: "linux" },
- { browserName: "chrome", platform: "OS X 10.9" },
- { browserName: "chrome", platform: "XP" },
- { browserName: "internet explorer", platform: "Windows 8.1", version: "11" },
- { browserName: "internet explorer", platform: "WIN8", version: "10" },
- { browserName: "internet explorer", platform: "VISTA", version: "9" },
+ { browserName: 'firefox', version: '19', platform: 'XP' },
+ { browserName: 'firefox', platform: 'linux' },
+ { browserName: 'firefox', platform: 'OS X 10.10' },
+ { browserName: 'chrome', platform: 'linux' },
+ { browserName: 'chrome', platform: 'OS X 10.9' },
+ { browserName: 'chrome', platform: 'XP' },
+ { browserName: 'internet explorer', platform: 'Windows 8.1', version: '11' },
+ { browserName: 'internet explorer', platform: 'WIN8', version: '10' },
+ { browserName: 'internet explorer', platform: 'VISTA', version: '9' },
{ browserName: 'safari', platform: 'OS X 10.6' },
{ browserName: 'safari', platform: 'OS X 10.8' },
{ browserName: 'safari', platform: 'OS X 10.9' },
@@ -17,16 +19,16 @@ module.exports = function (grunt) {
{ browserName: 'android', platform: 'Linux', version: '4.4' },
];
var extraBrowsers = [
- { browserName: "firefox", platform: "linux", version: "30" },
- { browserName: "firefox", platform: "linux", version: "25" },
+ { browserName: 'firefox', platform: 'linux', version: '30' },
+ { browserName: 'firefox', platform: 'linux', version: '25' },
{ browserName: 'iphone', platform: 'OS X 10.8', version: '6.1' },
{ browserName: 'iphone', platform: 'OS X 10.8', version: '5.1' },
{ browserName: 'android', platform: 'Linux', version: '4.2' },
// XXX haven't investigated these:
- //{ browserName: "opera", platform: "Windows 7", version: "12" },
- //{ browserName: "opera", platform: "Windows 2008", version: "12" }
- //{ browserName: 'iphone', platform: 'OS X 10.6', version: '4.3' },
- //{ browserName: 'android', platform: 'Linux', version: '4.0' },
+ // { browserName: 'opera', platform: 'Windows 7', version: '12' },
+ // { browserName: 'opera', platform: 'Windows 2008', version: '12' }
+ // { browserName: 'iphone', platform: 'OS X 10.6', version: '4.3' },
+ // { browserName: 'android', platform: 'Linux', version: '4.0' },
];
if (grunt.option('extra')) {
browsers = browsers.concat(extraBrowsers);
@@ -35,7 +37,7 @@ module.exports = function (grunt) {
connect: {
server: {
options: {
- base: "",
+ base: '',
port: 9999,
useAvailablePort: true
}
@@ -45,56 +47,52 @@ module.exports = function (grunt) {
all: {
options: {
urls: (function () {
- var urls = ["http://localhost:9999/test/"];
+ var urls = ['http://localhost:9999/test/'];
if (grunt.option('extra')) {
- urls.push("http://localhost:9999/test-sham/");
+ urls.push('http://localhost:9999/test-sham/');
}
return urls;
}()),
- //tunnelTimeout: 5,
+ // tunnelTimeout: 5,
build: process.env.TRAVIS_BUILD_NUMBER,
tunneled: !process.env.SAUCE_HAS_TUNNEL,
identifier: process.env.TRAVIS_JOB_NUMBER,
sauceConfig: {
'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER
},
- //concurrency: 3,
+ // concurrency: 3,
browsers: browsers,
testname: (function () {
- var testname = "mocha";
- if (process.env.TRAVIS_PULL_REQUEST &&
- process.env.TRAVIS_PULL_REQUEST !== 'false') {
- testname += ' (PR '+process.env.TRAVIS_PULL_REQUEST+')';
+ var testname = 'mocha';
+ if (process.env.TRAVIS_PULL_REQUEST && process.env.TRAVIS_PULL_REQUEST !== 'false') {
+ testname += ' (PR ' + process.env.TRAVIS_PULL_REQUEST + ')';
}
- if (process.env.TRAVIS_BRANCH &&
- process.env.TRAVIS_BRANCH !== 'false') {
- testname += ' (branch '+process.env.TRAVIS_BRANCH+')';
+ if (process.env.TRAVIS_BRANCH && process.env.TRAVIS_BRANCH !== 'false') {
+ testname += ' (branch ' + process.env.TRAVIS_BRANCH + ')';
}
return testname;
- })(),
+ }()),
tags: (function () {
var tags = [];
- if (process.env.TRAVIS_PULL_REQUEST &&
- process.env.TRAVIS_PULL_REQUEST !== 'false') {
- tags.push('PR-'+process.env.TRAVIS_PULL_REQUEST);
+ if (process.env.TRAVIS_PULL_REQUEST && process.env.TRAVIS_PULL_REQUEST !== 'false') {
+ tags.push('PR-' + process.env.TRAVIS_PULL_REQUEST);
}
- if (process.env.TRAVIS_BRANCH &&
- process.env.TRAVIS_BRANCH !== 'false') {
+ if (process.env.TRAVIS_BRANCH && process.env.TRAVIS_BRANCH !== 'false') {
tags.push(process.env.TRAVIS_BRANCH);
}
return tags;
- })()
+ }())
}
}
},
watch: {}
});
// Loading dependencies
- for (var key in grunt.file.readJSON("package.json").devDependencies) {
- if (key !== "grunt" && key.indexOf("grunt") === 0) {
+ for (var key in grunt.file.readJSON('package.json').devDependencies) {
+ if (key !== 'grunt' && key.indexOf('grunt') === 0) {
grunt.loadNpmTasks(key);
}
}
- grunt.registerTask("dev", ["connect", "watch"]);
- grunt.registerTask("sauce", ["connect", "saucelabs-mocha"]);
+ grunt.registerTask('dev', ['connect', 'watch']);
+ grunt.registerTask('sauce', ['connect', 'saucelabs-mocha']);
};