Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
55 lines (51 sloc) 1.03 KB
module.exports = function(grunt) {
"use strict";
grunt.initConfig({
ts: {
app: {
src: ["server/**/*.ts"],
options: {
"target": "es6",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": false
}
}
},
clean: ['server/**/*.js'],
tslint: {
options: {
configuration: "tslint.json"
},
files: {
src: ["server/**/*.ts"]
}
},
watch: {
ts: {
files: ["server/**/*.ts"],
tasks: ["ts"],
options: {
livereload: true,
},
},
htmls: {
files: ["views/*", "public/**/*"],
tasks: [],
options: {
livereload: true,
},
}
}
});
grunt.loadNpmTasks("grunt-contrib-watch");
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks("grunt-ts");
grunt.loadNpmTasks("grunt-tslint");
grunt.registerTask("default", [
"clean",
"ts",
"tslint"
]);
};
You can’t perform that action at this time.