forked from callstacker/VSTS-SSIS-Extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gruntfile.js
43 lines (41 loc) · 1.54 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
40
41
42
43
/// <binding ProjectOpened='exec:update' />
/*
This file in the main entry point for defining grunt tasks and using grunt plugins.
Click here to learn more. http://go.microsoft.com/fwlink/?LinkID=513275&clcid=0x409
*/
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
settings: grunt.file.readJSON("settings.tfx.json"),
exec: {
update: {
command: "npm up --save-dev",
stdout: true,
stderr: true
},
publish_task: {
command: "tfx build tasks upload --token <%= settings.publish.token %> --auth-type pat --task-path ./ExampleTask --service-url <%= settings.serviceUrl %>",
stdout: true,
stderr: true
},
publish_ext: {
command: "tfx extension publish --token <%= settings.publish.token %> --auth-type pat --service-url <%= settings.serviceUrl %>",
stdout: true,
stderr: true
},
package: {
command: "tfx extension create --manifest-globs <%= settings.package.manifestGlobs %>",
stdout: true,
stderr: true
}
},
jasmine: {
src: ["scripts/**/*.js"],
specs: "test/**/*[sS]pec.js",
helpers: "test/helpers/*.js"
}
});
grunt.loadNpmTasks("grunt-exec");
grunt.loadNpmTasks("grunt-contrib-copy");
grunt.loadNpmTasks("grunt-contrib-jasmine");
};