This repository was archived by the owner on Oct 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathGruntfile.js
More file actions
43 lines (40 loc) · 1.32 KB
/
Gruntfile.js
File metadata and controls
43 lines (40 loc) · 1.32 KB
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
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
name: '<%= pkg.name %>.<%= pkg.version %>',
jshint: {
files: ['gruntfile.js', 'src/js/**/*.js', 'test/**/*.js'],
options: {
reporterOutput: "",
jshintrc: true,
ignores: ['src/js/Chart/flotlib/jquery.flot.navigate.js']
}
},
watch: {
files: ['<%= jshint.files %>'],
tasks: ['jshint']
},
concat: {
options: {
separator: "\n"
},
n52swcChart: {
src: [
"src/js/Chart/*/*Mdul.js",
"src/js/Chart/*/*Ctrl.js",
"src/js/Chart/*/*Serv.js",
"src/js/Chart/*/*Drtv.js",
"src/js/Chart/flotlib/*.js"
],
dest: 'dist/n52swcChart.js'
}
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.registerTask('test', ['jshint', 'watch']);
grunt.registerTask('default', ['jshint', 'concat']);
grunt.registerTask('concatModules', ['concat']);
};