forked from TypeStrong/atom-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
32 lines (29 loc) · 841 Bytes
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
module.exports = function (grunt) {
'use strict';
var srcDir = 'lib';
grunt.initConfig({
ts: {
options: {
target: 'es5',
module: 'commonjs',
sourceMap: false,
preserveConstEnums: true,
compiler: './node_modules/ntypescript/bin/tsc'
},
dev: {
src: [srcDir + '/**/*.ts'],
watch: srcDir,
outDir: './dist/',
baseDir: './lib/'
},
build: {
src: [srcDir + '/**/*.ts'],
outDir: './dist/',
baseDir: './lib/'
},
},
});
grunt.loadNpmTasks('grunt-ts');
grunt.registerTask('default', ['ts:dev']);
grunt.registerTask('build', ['ts:build']);
};