-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGruntfile.js
More file actions
44 lines (39 loc) · 1.12 KB
/
Gruntfile.js
File metadata and controls
44 lines (39 loc) · 1.12 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
44
/**
* Created by Matthijs on 8-3-14.
*/
module.exports = function (grunt) {
"use strict";
// Configuration goes here
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// Metadata
meta: {
jsPath: 'plc/js',
srcPath: 'plc/src'
},
uglify: {
options: {
banner: '/*! <%= pkg.name %>-<%= pkg.version %> - <%= pkg.author %> <%= grunt.template.today("dd-mm-yyyy H:MM:ss") %> */\n'
},
js_files: {
files: {
'<%= meta.jsPath %>/<%= pkg.name %>.min.js': '<%= meta.srcPath %>/<%= pkg.name %>*.js'
}
}
},
watch: {
src: {
files: '<%= meta.srcPath %>/*.js',
tasks: ['uglify']
}
}
});
// Load plugins here
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
// Define your tasks here
// register default task
grunt.registerTask('default', 'Compress', function () {
grunt.task.run('uglify');
});
};