/
Gruntfile.js
54 lines (46 loc) 路 1.67 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
51
52
53
54
'use strict';
module.exports = function(grunt) {
var config = {
// top-level task options, if needed.
shell: {
firefoxAddonSDK: {
options: {
stdout: true,
stderr: true,
execOptions: {
cwd: process.cwd()
}
},
command: function(sdkPath, buildPath) {
return 'cd "' + sdkPath + '" && ls -als ./ && source "bin/activate" && ls -als "' + buildPath + '" && cfx --verbose run --pkgdir="' + buildPath + '" -a firefox';
}
}
}
};
grunt.loadNpmTasks('grunt-express');
grunt.loadNpmTasks('grunt-contrib-requirejs');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-nodeunit');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-run-grunt');
grunt.loadNpmTasks('grunt-concurrent');
grunt.loadNpmTasks('grunt-git-describe');
grunt.loadNpmTasks('load-grunt-config');
grunt.loadNpmTasks('grunt-shell');
var path = require('path');
var configs = require('load-grunt-config')(grunt, {
configPath: path.join(process.cwd(), 'grunt'),
init: false
//loadGruntTasks: false
});
//grunt.loadTasks('grunt');
// console.log(JSON.stringify(subConfig));
// console.log('');
//grunt.util._.extend({}, configs)
grunt.util._.merge(config, configs);
// console.log(JSON.stringify(config));
// console.log('');
grunt.initConfig(config);
};