-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrunt.js
49 lines (49 loc) · 1.51 KB
/
grunt.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
module.exports = function(grunt) {
grunt.initConfig({
meta: {
name: 'lsys.js',
version: 'v0.1.0',
author: 'rtsan',
repo: 'https://github.com/rtsan/lsys.js',
banner:
'/*\n' +
' * <%= meta.name %> <%= meta.version %>\n' +
' * <%= meta.repo %>\n' +
' *\n' +
' * Copyright (c) <%= grunt.template.today("yyyy") %> <%= meta.author %>\n' +
' * Licensed under the MIT license.\n' +
' */',
min_banner: '/* <%= meta.name %> <%= meta.version %> Licensed under the MIT license. (c) <%= grunt.template.today("yyyy") %> <%= meta.author %> */'
},
concat: {
dist: {
src: [
'<banner:meta.banner>',
'src/_header.js',
'src/Operator.js',
'src/Rule.js',
'src/LSystem.js',
'src/_exports.js',
'src/_footer.js'
],
dest: 'lsys.js'
}
},
lint: {
files: [ 'lsys.js' ]
},
qunit: [
'qunit/test.html'
],
min: {
dist: {
src: [
'<banner:meta.min_banner>',
'lsys.js'
],
dest: 'lsys.min.js'
}
}
});
grunt.registerTask('default', 'concat lint qunit min');
};