-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathGruntfile.js
55 lines (50 loc) · 1.22 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
"use strict";
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
var options = require('./Tests/gruntfile-options');
grunt.initConfig({
'connect': options.grunt,
'packager': {
source: {
options: {
name: {
Behavior: 'Source/',
More: 'node_modules/mootools-more/',
Core: 'node_modules/mootools-core/'
},
/*
only: [
'Behavior/Behavior',
'Behavior/Element.Data',
'Behavior/BehaviorAPI'
]
*/
},
src: [
'node_modules/mootools-core/Source/**/*.js',
'node_modules/mootools-more/Source/**/*.js',
'Source/**/*.js'
],
dest: 'behavior.js'
},
specs: {
options: {
name: 'Specs',
ignoreYAMLheader: true
},
src: 'Tests/Specs/Behavior/*.js',
dest: 'behavior-specs.js'
}
},
'karma': {
options: options.karma,
continuous: {
browsers: ['PhantomJS']
}
},
'clean': {
all: {src: 'behavior*.js'}
}
});
grunt.registerTask('default', ['clean', 'packager:source', 'packager:specs', 'karma:continuous']);
};