From 55cd3a44368d529326b6d9b16ff7c0204fee5516 Mon Sep 17 00:00:00 2001 From: Michał Gołębiowski-Owczarek Date: Tue, 5 May 2020 14:30:14 +0200 Subject: Build: Followups after introducing ES modules compiled via Rollup This commit cleans up a few comments & configurations that are out of date after the migration to ES modules backed by a Rollup-based compilation. Also, de-indent AMD modules. This will preserve a more similar structure to the one on 3.x-stable where the body of the main `define` wrapper is not indented. Closes gh-4705 --- build/tasks/amd.js | 3 ++- build/tasks/build.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'build') diff --git a/build/tasks/amd.js b/build/tasks/amd.js index 617773ff2..c4c9c8941 100644 --- a/build/tasks/amd.js +++ b/build/tasks/amd.js @@ -19,7 +19,8 @@ module.exports = function( grunt ) { const outputRollupOptions = { format: "amd", - dir: "amd" + dir: "amd", + indent: false }; grunt.registerTask( diff --git a/build/tasks/build.js b/build/tasks/build.js index 6f984b705..06a5f4048 100644 --- a/build/tasks/build.js +++ b/build/tasks/build.js @@ -54,7 +54,7 @@ module.exports = function( grunt ) { grunt.registerMultiTask( "build", - "Concatenate source, remove sub AMD definitions, " + + "Build jQuery ECMAScript modules, " + "(include/exclude modules with +/- flags), embed date/version", async function() { const done = this.async(); @@ -302,7 +302,7 @@ module.exports = function( grunt ) { ); grunt.file.write( name, compiledContents ); - grunt.log.ok( "File '" + name + "' created." ); + grunt.log.ok( `File '${ name }' created.` ); done(); } catch ( err ) { done( err ); -- cgit v1.2.3