forked from GersonDias/toggl-buttonVSOExtension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgruntfile.js
39 lines (36 loc) · 1.37 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
38
39
//---------------------------------------------------------------------
// <copyright file="gruntfile.js">
// This code is licensed under the MIT License.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
// ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
// TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
// PARTICULAR PURPOSE AND NONINFRINGEMENT.
// </copyright>
// <summary>grunt configuration file</summary>
//---------------------------------------------------------------------
module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-typescript');
grunt.loadNpmTasks('grunt-shell');
//require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks
grunt.initConfig({
typescript: {
base: {
src: ['scripts/*.ts'],
dest: 'public/javascripts/vsotogglbutton.js',
options: {
sourceMap: true,
declaration: false,
watch: false
}
},
},
shell: {
vsetPublish: {
command: 'vset publish'
}
}
});
grunt.registerTask('buildAndPublish', ['typescript:base', 'shell:vsetPublish']);
grunt.registerTask('build', ['typescript:base']);
grunt.registerTask('publish', ['shell:vsetPublish']);
};