Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Gruntfile.js from ES5 to ES6 #3628

Merged
merged 2 commits into from
Mar 21, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
*/

function getYuidocOptions() {
var BASE_YUIDOC_OPTIONS = {
const BASE_YUIDOC_OPTIONS = {
name: '<%= pkg.name %>',
description: '<%= pkg.description %>',
version: '<%= pkg.version %>',
Expand All @@ -76,7 +76,7 @@ function getYuidocOptions() {

// note dev is no longer used, prod is used to build both testing and production ready docs

var o = {
const o = {
prod: JSON.parse(JSON.stringify(BASE_YUIDOC_OPTIONS)),
dev: JSON.parse(JSON.stringify(BASE_YUIDOC_OPTIONS))
};
Expand All @@ -87,22 +87,22 @@ function getYuidocOptions() {
return o;
}

module.exports = function(grunt) {
module.exports = grunt => {
// Specify what reporter we'd like to use for Mocha
var quietReport = process.env.TRAVIS || grunt.option('quiet');
var reporter = quietReport ? 'spec' : 'Nyan';
const quietReport = process.env.TRAVIS || grunt.option('quiet');
const reporter = quietReport ? 'spec' : 'Nyan';

// Load karma tasks from an external file to keep this file clean
var karmaTasks = require('./grunt-karma.js');
const karmaTasks = require('./grunt-karma.js');

// For the static server used in running tests, configure the keepalive.
// (might not be useful at all.)
var keepalive = false;
let keepalive = false;
if (grunt.option('keepalive')) {
keepalive = true;
}

var mochaConfig = {
const mochaConfig = {
yui: {
options: {
urls: ['http://localhost:9001/test/test-reference.html'],
Expand Down