-
Notifications
You must be signed in to change notification settings - Fork 109
Expand file tree
/
Copy pathGruntfile.js
More file actions
executable file
·38 lines (38 loc) · 1.2 KB
/
Gruntfile.js
File metadata and controls
executable file
·38 lines (38 loc) · 1.2 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
module.exports = function (grunt) {
'use strict';
grunt.loadNpmTasks('grunt-contrib-jshint');
//grunt.loadNpmTasks('grunt-contrib-requirejs');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-release');
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
release: { options: { npm: false } },
jshint: {
files: [
'**.js',
'test/*.js'
],
options: {
ignores: [
'code/*',
'test/vendor/**/*'
],
jshintrc: '.jshintrc'
}
},
uglify: {
intention: {
options: { banner: '/*! <%= pkg.name %> v<%= pkg.version %> \n* <%= pkg.homepage %> \n* \n* intention.js \n* \n* <%=pkg.copyright %>, <%= grunt.template.today("yyyy") %>\n* <%=pkg.banner %>*/ ' },
files: { 'code/intention.min.js': ['intention.js'] }
},
context: {
options: { banner: '/*! <%= pkg.name %> v<%= pkg.version %> \n* <%= pkg.homepage %> \n* \n* context.js \n* \n* <%=pkg.copyright %>, <%= grunt.template.today("yyyy") %>\n* <%=pkg.banner %>*/ ' },
files: { 'code/context.min.js': ['context.js'] }
}
}
});
grunt.registerTask('default', [
'jshint',
'uglify'
]);
};