/
Gruntfile.js
54 lines (46 loc) · 1.06 KB
/
Gruntfile.js
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
46
47
48
49
50
51
52
53
54
'use strict';
module.exports = function (grunt) {
require('time-grunt')(grunt);
require('jit-grunt')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jscs: {
options: {
config: '.jscsrc',
fix: true,
force: true
},
dist: '<%= jshint.src %>'
},
jshint: {
options: {
jshintrc: '.jshintrc',
reporter: require('jshint-stylish')
},
src: [
'src/*.js'
]
},
uglify: {
options: {
banner: '/* Audero Smoke Effect <%= pkg.version %> | Aurelio De Rosa (@AurelioDeRosa) | MIT/GPL-3.0 Licensed */\n'
},
dist: {
files: {
'dist/jquery.auderoSmokeEffect.min.js': ['src/jquery.auderoSmokeEffect.js']
}
}
}
});
grunt.registerTask('lint', [
'jshint',
'jscs'
]);
grunt.registerTask('build', [
'uglify'
]);
grunt.registerTask('default', [
'lint',
'build'
]);
};