diff --git a/gruntfile.js b/gruntfile.js index 67b0d8a1c..42cd5e013 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -329,149 +329,146 @@ module.exports = function(grunt) { }, buildNodeTests: { src: [ - 'js-libs/easysax/**/*.ts', - 'xml/**/*.ts', - 'node-tests/**/*.ts', - ], - outDir: localCfg.outModulesDir, - options: { - fast: 'never', - module: "commonjs", - target: "es5", - sourceMap: false, - declaration: false, - removeComments: "<%= !grunt.option('leavecomments') || '' %>", - compiler: "node_modules/typescript/bin/tsc", - noEmitOnError: true - } - } - }, - tslint: { - build: { - files: { - src: localCfg.typeScriptSrcForTsLint - }, - options: { - configuration: grunt.file.readJSON("./build/tslint.json") - } - } - }, - exec: { - packModules: { - cmd: "npm pack", - cwd: localCfg.outModulesDir + "/" - }, - packDefinitions: { - cmd: "npm pack", - cwd: localCfg.outDefinitionsDir + "/" - }, - packApp: { - cmd: "npm pack", - cwd: "__dummy__" - }, - mochaNode: { - cmd: "grunt simplemocha:node" - } - }, - multidest: { - copyLicenseFiles: { - tasks: ["copy:appLicense"], - dest: function() { - var apps = getSubDirs(localCfg.srcAppsDir); - var targetDirs = []; - apps.forEach(function(item){ - targetDirs.push(pathModule.join(localCfg.outAppsDir, item.name)); - targetDirs.push(pathModule.join(localCfg.outTsAppsDir, item.name)); - }); - return targetDirs; - }() - } - }, - shell: { - getGitSHA: { - command: "git rev-parse HEAD", - options: { - callback: assignGitSHA - } - }, - }, - simplemocha: { - node: { - src: localCfg.nodeTestsDir + '/**/*.js' - } - }, - env: { - nodeTests: { - NODE_PATH: localCfg.outModulesDir, - } - } - }); - - grunt.loadNpmTasks("grunt-ts"); - grunt.loadNpmTasks("grunt-contrib-clean"); - grunt.loadNpmTasks("grunt-contrib-copy"); - grunt.loadNpmTasks("grunt-exec"); - grunt.loadNpmTasks("grunt-tslint"); - grunt.loadNpmTasks("grunt-multi-dest"); - grunt.loadNpmTasks("grunt-shell"); - grunt.loadNpmTasks("grunt-env"); - grunt.loadNpmTasks("grunt-simple-mocha"); - - var cloneTasks = function(originalTasks, taskNameSuffix) - { - var clonedTasks = []; - for(var i=0; i", + compiler: "node_modules/typescript/bin/tsc", + noEmitOnError: true + } } - }); + }, + tslint: { + build: { + files: { + src: localCfg.typeScriptSrcForTsLint + }, + options: { + configuration: grunt.file.readJSON("./build/tslint.json") + } + } + }, + exec: { + packModules: { + cmd: "npm pack", + cwd: localCfg.outModulesDir + "/" + }, + packDefinitions: { + cmd: "npm pack", + cwd: localCfg.outDefinitionsDir + "/" + }, + packApp: { + cmd: "npm pack", + cwd: "__dummy__" + }, + mochaNode: { + cmd: "grunt simplemocha:node" + } + }, + multidest: { + copyLicenseFiles: { + tasks: ["copy:appLicense"], + dest: function() { + var apps = getSubDirs(localCfg.srcAppsDir); + var targetDirs = []; + apps.forEach(function(item){ + targetDirs.push(pathModule.join(localCfg.outAppsDir, item.name)); + targetDirs.push(pathModule.join(localCfg.outTsAppsDir, item.name)); + }); + return targetDirs; + }() + } + }, + shell: { + getGitSHA: { + command: "git rev-parse HEAD", + options: { + callback: assignGitSHA + } + }, + }, + simplemocha: { + node: { + src: localCfg.nodeTestsDir + '/**/*.js' + } + }, + env: { + nodeTests: { + NODE_PATH: localCfg.outModulesDir, + } + } + }); + + grunt.loadNpmTasks("grunt-ts"); + grunt.loadNpmTasks("grunt-contrib-clean"); + grunt.loadNpmTasks("grunt-contrib-copy"); + grunt.loadNpmTasks("grunt-exec"); + grunt.loadNpmTasks("grunt-tslint"); + grunt.loadNpmTasks("grunt-multi-dest"); + grunt.loadNpmTasks("grunt-shell"); + grunt.loadNpmTasks("grunt-env"); + grunt.loadNpmTasks("grunt-simple-mocha"); + + var cloneTasks = function(originalTasks, taskNameSuffix) { + var clonedTasks = []; + for(var i=0; i