-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGruntfile.js
More file actions
24 lines (24 loc) · 746 Bytes
/
Copy pathGruntfile.js
File metadata and controls
24 lines (24 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jasmine: {
test: {
src: 'src/**/*.js',
options: {
specs: 'test/*.test.js',
keepRunner: true,
vendor: ['bower_components/jquery/dist/jquery.min.js']
}
}
},
uglify : {
js: {
src: 'src/textflow.jquery.js',
dest : 'dist/textflow.jquery.min.js'
}
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.registerTask('default', ['jasmine:test', 'uglify:js']);
};