forked from Baedda/floating-form-labels
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
41 lines (37 loc) · 1.25 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
module.exports = function config (grunt) {
'use strict';
var pkg = grunt.file.readJSON('package.json'),
banner = '/*!**************************************************************\n' +
' * Package: <%= pkg.name %>\n' +
' * Version: v<%= pkg.version %>\n' +
' * Built : <%= Date() %>\n' +
' * URL : https://github.com/Baedda/floating-form-labels\n' +
' ***************************************************************/\n';
grunt.initConfig({
pkg: pkg,
eslint: {
options: {
configFile: '.eslintrc',
},
target: [
'Gruntfile.js',
'src/js/*.js',
'src/js/**/*.js'
]
},
uglify: {
options: {
banner: banner
},
dist: {
files: {
'dist/floatingFormLabels.min.js': 'js/floatingFormLabels.js'
}
}
},
});
grunt.loadNpmTasks('grunt-eslint');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.registerTask('default', ['dist']);
grunt.registerTask('dist', ['eslint', 'uglify:dist']);
};