[FOLLOWUP][TASK] Remove *.js.map from repository 49/50349/5
authorFrank Naegler <frank.naegler@typo3.org>
Mon, 24 Oct 2016 18:48:54 +0000 (20:48 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 25 Oct 2016 09:04:01 +0000 (11:04 +0200)
The generated JS files contain references to its source maps.
Per default these maps should not be generated.
To prevent side effects the target folder is removed before compiling
the JavaScript files.

Resolves: #78407
Releases: master
Change-Id: I1cc25ef71165d3533e29777d585ae170bdc7f8ae
Reviewed-on: https://review.typo3.org/50349
Reviewed-by: Patricia Tiedemann <pixelaeffchen@googlemail.com>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Stefan Bürk <stefan.buerk@impactmedia.de>
Tested-by: Stefan Bürk <stefan.buerk@impactmedia.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Build/Gruntfile.js
Build/tsconfig.json
typo3/sysext/backend/Resources/Public/JavaScript/ColorPicker.js

index 2fb315c..2c6febe 100644 (file)
@@ -387,7 +387,11 @@ module.exports = function(grunt) {
         * - 2) Compiles all TypeScript files (*.ts) which are located in sysext/<EXTKEY>/Resources/Private/TypeScript/*.ts
         * - 3) Copy all generated JavaScript and Map files to public folders
         */
-       grunt.registerTask('scripts', ['tslint', 'ts', 'copy:ts_files']);
+       grunt.registerTask('scripts', ['tslint', 'tsclean', 'ts', 'copy:ts_files']);
+
+       grunt.task.registerTask('tsclean', function() {
+               grunt.file.delete("JavaScript");
+       });
 
        /**
         * grunt build task
index 2209094..a990e60 100644 (file)
@@ -2,6 +2,7 @@
     "compilerOptions": {
         "target": "es5",
         "module": "amd",
+        "sourceMap": false,
         "removeComments": false,
         "pretty": true,
         "baseUrl": ".",
index cd1d1e6..f7abac0 100644 (file)
@@ -38,4 +38,3 @@ define(["require", "exports", 'jquery', "TYPO3/CMS/Core/Contrib/jquery.minicolor
     }());
     return new ColorPicker();
 });
-//# sourceMappingURL=ColorPicker.js.map
\ No newline at end of file