Skip to content

Commit 6678c1c

Browse files
committed
Adding Gruntfile, npm package.json and updating map and min files respectively.
1 parent c1bfa28 commit 6678c1c

File tree

5 files changed

+58
-2
lines changed

5 files changed

+58
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.DS_Store
2+
node_modules/

Gruntfile.js

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
module.exports = function(grunt) {
2+
3+
grunt.initConfig({
4+
pkg: grunt.file.readJSON('package.json'),
5+
uglify: {
6+
options: {
7+
banner: '/*! jquery.jgrowl.js <%= grunt.template.today("yyyy-mm-dd") %> */\n',
8+
sourceMap: true,
9+
sourceMapName: 'jquery.jgrowl.map'
10+
},
11+
jgrowl: {
12+
files: {
13+
'jquery.jgrowl.min.js': ['jquery.jgrowl.js']
14+
}
15+
},
16+
},
17+
jshint: {
18+
files: ['Gruntfile.js', 'jquery.jgrowl.js'],
19+
options: {
20+
// options here to override JSHint defaults
21+
globals: {
22+
jQuery: true,
23+
console: true,
24+
module: true,
25+
document: true
26+
}
27+
}
28+
},
29+
watch: {
30+
files: ['<%= jshint.files %>'],
31+
tasks: ['jshint', 'qunit']
32+
}
33+
});
34+
35+
grunt.loadNpmTasks('grunt-contrib-uglify');
36+
grunt.loadNpmTasks('grunt-contrib-jshint');
37+
grunt.loadNpmTasks('grunt-contrib-watch');
38+
39+
grunt.registerTask('test', ['jshint']);
40+
41+
grunt.registerTask('default', ['jshint', 'uglify']);
42+
43+
};

jquery.jgrowl.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)