-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrunt-config.ts
45 lines (40 loc) · 1.05 KB
/
grunt-config.ts
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
// This file contains the actual Grunt config which gets imported in Gruntfile.js.
import * as path from 'path';
import * as glob from 'glob';
export = function(grunt: IGrunt) {
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-sync');
const repoRoot = __dirname;
const packageJson = grunt.file.readJSON('./package.json');
grunt.initConfig({
'pkg': packageJson,
'jshint': {
files: ['Gruntfile.js'],
options: {
// options here to override JSHint defaults
globals: {
jQuery: true,
console: true,
module: true,
document: true
}
}
},
'sync': {
elements: {
files: [{
cwd: 'app/src',
src: [
'renderer/elements/**/*.html',
'!renderer/elements/code-mirror-editor/code-mirror-styles.html'
],
dest: 'app/lib'
}],
verbose: true,
//pretend: true
}
}
});
grunt.registerTask('lint', ['jshint']);
grunt.registerTask('default', ['lint']);
};