forked from breser/git2consul
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.js
50 lines (50 loc) · 1.56 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
44
45
46
47
48
49
50
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
debian_package: {
default_options: {
options: {
maintainer: {
"name": "Ryan Breen",
"email": "[email protected]"
},
short_description: "Mirrors the contents of a git repository into Consul KVs.",
long_description: "git2consul takes one or many git repositories and mirrors them" +
" into Consul KVs. The goal is for organizations of any size to use git as the backing store," +
" audit trail, and access control mechanism for configuration changes and Consul as the delivery mechanism.",
target_architecture: "all",
category: "misc",
custom_template: "custom_template/",
preinst: {
src: 'debian_package/preinst'
},
postinst: {
src: 'debian_package/postinst'
},
dependencies: "nodejs, git"
},
files: [
{
expand: true,
src: [
'lib/**',
'utils/**',
'node_modules/**'
],
dest: '/usr/share/git2consul/'
},
{
src: 'debian_package/git2consul.service',
dest: '/usr/lib/systemd/system/'
},
{
src: 'debian_package/default_config.json',
dest: '/etc/git2consul/config.json'
}
]
}
}
});
grunt.loadNpmTasks('grunt-debian-package');
};