-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
36 lines (29 loc) · 1.03 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
module.exports = function(grunt) {
var metadata = grunt.file.readJSON('extension/metadata.json'),
installDir = '~/.local/share/gnome-shell/extensions/' + metadata.uuid + '/',
shellDefaultOptions = { stdout: true };
// Project configuration.
grunt.initConfig({
shell: {
mkdir: {
command: 'mkdir ' + installDir,
options: shellDefaultOptions
},
compileSchema: {
command: 'glib-compile-schemas extension/schemas/',
options: shellDefaultOptions
},
copy: {
command: 'cp -r ./extension/* ' + installDir,
options: shellDefaultOptions
}
} ,
jasmine_node: {
}
});
grunt.loadNpmTasks('grunt-shell');
grunt.loadNpmTasks('grunt-jasmine-node');
// Default task(s).
grunt.registerTask('install', ['shell:mkdir', 'shell:compileSchema', 'shell:copy']);
grunt.registerTask('test', ['jasmine_node']);
};