diff --git a/Gruntfile.js b/Gruntfile.js index 180ba78..63acb1c 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -113,8 +113,8 @@ module.exports = function gruntConfig(grunt) { dest: '<%= paths.build %>/<%= files.cat %>', options: { process: (content) => { - let replaceRegex = /\s\/\* \[POWERTIP CODE\] \*\//, - coreFile = grunt.file.read(grunt.template.process('<%= concat.core.dest %>')); + const replaceRegex = /\s\/\* \[POWERTIP CODE\] \*\//; + const coreFile = grunt.file.read(grunt.template.process('<%= concat.core.dest %>')); return grunt.template.process(content).replace(replaceRegex, coreFile); } } @@ -128,8 +128,8 @@ module.exports = function gruntConfig(grunt) { dest: '<%= paths.build %>/', options: { process: (content) => { - let scriptsRegex = /(?:.*\r?\n\s)*/, - builtScriptTag = ''; + const scriptsRegex = /(?:.*\r?\n\s)*/; + const builtScriptTag = ''; return content.replace(scriptsRegex, grunt.template.process(builtScriptTag)); } } @@ -234,13 +234,13 @@ module.exports = function gruntConfig(grunt) { // custom task to build the gh-pages index.md file grunt.registerTask('build:gh-pages', 'Create the gh-pages markdown.', () => { - let template = grunt.file.read('doc/gh-pages.template.md'), - data = { - pkg: grunt.file.readJSON('package.json'), - doc: grunt.file.read('doc/README.md'), - changelog: grunt.file.readYAML(grunt.template.process('<%= files.changelog %>')) - }, - page = grunt.template.process(template, { data: data }); + const template = grunt.file.read('doc/gh-pages.template.md'); + const data = { + pkg: grunt.file.readJSON('package.json'), + doc: grunt.file.read('doc/README.md'), + changelog: grunt.file.readYAML(grunt.template.process('<%= files.changelog %>')) + }; + const page = grunt.template.process(template, { data: data }); grunt.file.write('dist/index.md', page); grunt.log.ok('gh-pages markdown created'); });