-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrunt.js
52 lines (52 loc) · 1.74 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
50
51
52
module.exports = function(grunt) {
grunt.initConfig({
meta: {
name: 'biela.js',
version: 'v0.1.0',
author: 'rtsan',
repo: 'https://github.com/rtsan/biela.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) <%= meta.author %> */'
},
concat: {
dist: {
src: [
'<banner:meta.banner>',
'src/_intro.js',
'src/biela.js',
'src/CanvasFactory.js',
'src/RenderBuffer.js',
'src/ColorBuffer.js',
'src/DepthBuffer.js',
'src/FrameBuffer.js',
'src/MinMaxBuffer.js',
'src/VertexShader.js',
'src/FragmentShader.js',
'src/Program.js',
'src/Renderer.js',
'src/Texture.js',
'src/export.js',
'src/_outro.js'
],
dest: 'build/biela.js'
}
},
min: {
dist: {
src: [
'<banner:meta.min_banner>',
'build/biela.js'
],
dest: 'build/biela.min.js'
}
}
});
grunt.registerTask('default', 'concat min');
};