-
Notifications
You must be signed in to change notification settings - Fork 8
/
Gruntfile.js
38 lines (31 loc) · 839 Bytes
/
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
module.exports = function (grunt) {
'use strict';
var jshintOptions = grunt.file.readJSON('.jshintrc');
grunt.initConfig({
uglify: {
options: {
sourceMap: 'regex.min.map',
preserveComments: 'some',
},
'regex.min.js': 'regex.js'
},
qunit: {
all: 'test/index.html'
},
jshint: {
options: jshintOptions,
src: 'regex.js',
tests: 'test/cases/**/*.js'
},
});
grunt.registerTask('default', [
'jshint',
'qunit',
'quick_node_check',
'uglify'
]);
grunt.loadTasks('tasks');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-contrib-uglify');
};