From 44ef6a6514986e86b9574ba0f339f15423520208 Mon Sep 17 00:00:00 2001 From: Erjan Gavalji Date: Wed, 4 Nov 2015 15:27:47 +0200 Subject: [PATCH] Add a bom-removal task --- gruntfile.js | 13 +++++++++++++ package.json | 3 ++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/gruntfile.js b/gruntfile.js index c19a9987f..060496b54 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -396,6 +396,16 @@ module.exports = function(grunt) { nodeTests: { NODE_PATH: localCfg.outModulesDir, } + }, + bom: { + allTargetFiles: { + src: [ + pathModule.join(localCfg.outDir, "**/*.ts"), + pathModule.join(localCfg.outDir, "**/*.js"), + pathModule.join(localCfg.outDir, "**/*.css"), + pathModule.join(localCfg.outDir, "**/*.xml") + ] + } } }); @@ -408,6 +418,7 @@ module.exports = function(grunt) { grunt.loadNpmTasks("grunt-shell"); grunt.loadNpmTasks("grunt-env"); grunt.loadNpmTasks("grunt-simple-mocha"); + grunt.loadNpmTasks('grunt-bom-removal'); var cloneTasks = function(originalTasks, taskNameSuffix) { var clonedTasks = []; @@ -538,6 +549,8 @@ module.exports = function(grunt) { "distribute-apps-files", "distribute-ts-apps-files", + "bom:allTargetFiles", + "pack-modules" ])); diff --git a/package.json b/package.json index 49583fbe2..5ce3f46a2 100644 --- a/package.json +++ b/package.json @@ -15,11 +15,12 @@ "devDependencies": { "chai": "3.2.0", "grunt": "0.4.5", + "grunt-bom-removal": "0.2.0", "grunt-contrib-clean": "0.6.0", "grunt-contrib-copy": "git+https://github.com/ErjanGavalji/grunt-contrib-copy.git#1c976a133210be4ce8c96313f5daf14833f7f8f9", "grunt-env": "0.4.4", "grunt-exec": "0.4.6", - "grunt-mkdir": "^0.1.2", + "grunt-mkdir": "0.1.2", "grunt-multi-dest": "1.0.0", "grunt-shell": "1.1.2", "grunt-simple-mocha": "0.4.0",