mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Add a bom-removal task
This commit is contained in:
13
gruntfile.js
13
gruntfile.js
@@ -396,6 +396,16 @@ module.exports = function(grunt) {
|
|||||||
nodeTests: {
|
nodeTests: {
|
||||||
NODE_PATH: localCfg.outModulesDir,
|
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-shell");
|
||||||
grunt.loadNpmTasks("grunt-env");
|
grunt.loadNpmTasks("grunt-env");
|
||||||
grunt.loadNpmTasks("grunt-simple-mocha");
|
grunt.loadNpmTasks("grunt-simple-mocha");
|
||||||
|
grunt.loadNpmTasks('grunt-bom-removal');
|
||||||
|
|
||||||
var cloneTasks = function(originalTasks, taskNameSuffix) {
|
var cloneTasks = function(originalTasks, taskNameSuffix) {
|
||||||
var clonedTasks = [];
|
var clonedTasks = [];
|
||||||
@@ -538,6 +549,8 @@ module.exports = function(grunt) {
|
|||||||
"distribute-apps-files",
|
"distribute-apps-files",
|
||||||
"distribute-ts-apps-files",
|
"distribute-ts-apps-files",
|
||||||
|
|
||||||
|
"bom:allTargetFiles",
|
||||||
|
|
||||||
"pack-modules"
|
"pack-modules"
|
||||||
]));
|
]));
|
||||||
|
|
||||||
|
|||||||
@@ -15,11 +15,12 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"chai": "3.2.0",
|
"chai": "3.2.0",
|
||||||
"grunt": "0.4.5",
|
"grunt": "0.4.5",
|
||||||
|
"grunt-bom-removal": "0.2.0",
|
||||||
"grunt-contrib-clean": "0.6.0",
|
"grunt-contrib-clean": "0.6.0",
|
||||||
"grunt-contrib-copy": "git+https://github.com/ErjanGavalji/grunt-contrib-copy.git#1c976a133210be4ce8c96313f5daf14833f7f8f9",
|
"grunt-contrib-copy": "git+https://github.com/ErjanGavalji/grunt-contrib-copy.git#1c976a133210be4ce8c96313f5daf14833f7f8f9",
|
||||||
"grunt-env": "0.4.4",
|
"grunt-env": "0.4.4",
|
||||||
"grunt-exec": "0.4.6",
|
"grunt-exec": "0.4.6",
|
||||||
"grunt-mkdir": "^0.1.2",
|
"grunt-mkdir": "0.1.2",
|
||||||
"grunt-multi-dest": "1.0.0",
|
"grunt-multi-dest": "1.0.0",
|
||||||
"grunt-shell": "1.1.2",
|
"grunt-shell": "1.1.2",
|
||||||
"grunt-simple-mocha": "0.4.0",
|
"grunt-simple-mocha": "0.4.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user