forked from joewalnes/reconnecting-websocket
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathGruntfile.js
37 lines (35 loc) · 1.12 KB
/
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
33
34
35
36
37
module.exports = function (grunt) {
grunt.initConfig({
pkg: 'package.json',
typescript: {
base: {
src: ['reconnecting-websocket.ts'],
dest: 'reconnecting-websocket.js',
options: {
noImplicitAny: true,
nolib: false,
module: 'commonjs',
target: 'es3',
sourcemap: true,
fullSourceMapPath: false,
declaration: false
}
}
},
uglify: {
target: {
options: {
sourceMap: 'reconnecting-websocket.js.map',
sourceMapIn: 'reconnecting-websocket.js.map'
},
files: {
'reconnecting-websocket.min.js': ['reconnecting-websocket.js']
}
}
}
});
grunt.loadNpmTasks('grunt-typescript');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.registerTask('dist', ['typescript', 'uglify']);
grunt.registerTask('default', ['dist']);
};