forked from czapkowicz/grunt-bower-postinst
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
59 lines (46 loc) · 1.45 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
55
56
57
58
59
/*
* grunt-bower-postinst
* https://github.com/krampstudio/grunt-bower-postinst
*
* Copyright (c) 2013 Bertrand Chevrier
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
all: ['Gruntfile.js', 'tasks/*.js', '<%= nodeunit.tests %>'],
options: {
jshintrc: '.jshintrc',
}
},
clean : ['components'],
bower : {
install : {}
},
bower_postinst: {
dist: {
options: {
components: {
'jquery.ui': ['npm', {'grunt': 'sizer'}],
'bootstrap': ['npm', {'make': 'bootstrap' }],
'uritemplate': ['npm', {'jake' : 'build'}]
}
}
}
},
// Unit tests.
nodeunit: {
tests: ['test/*_test.js'],
}
});
//Load the plugin's task.
grunt.loadTasks('tasks');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-nodeunit');
grunt.loadNpmTasks('grunt-bower-task');
grunt.registerTask('bower-full', ['clean', 'bower', 'bower_postinst']);
grunt.registerTask('test', ['bower-full', 'nodeunit']);
grunt.registerTask('default', ['jshint', 'test']);
};