-
Notifications
You must be signed in to change notification settings - Fork 2
/
Gruntfile.coffee
44 lines (37 loc) · 1.15 KB
/
Gruntfile.coffee
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
module.exports = (grunt) ->
require('jit-grunt') grunt
grunt.initConfig
uglify:
production:
options:
compress:true
files:
'dist/min/three.terrain.min.js': 'dist/three.terrain.js'
coffee:
compileJoined:
options:
join: true
files:
'dist/three.terrain.js':
[
'src/namespace.coffee',
'src/providers/RNGProvider.coffee',
'src/providers/NoiseProvider.coffee',
'src/providers/NoiseModifierProvider.coffee',
'src/providers/HeightMapProvider.coffee',
'src/providers/GeometryProvider.coffee',
'src/providers/MeshProvider.coffee',
'src/providers/PatchProvider.coffee',
'src/providers/FilterProvider.coffee'
]
watch:
coffee:
files: ['src/coffee/**/*.coffee']
tasks:
[
'coffee'
]
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-uglify'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.registerTask 'default', ['coffee']