-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.coffee
46 lines (37 loc) · 1.1 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
45
46
module.exports = (grunt) ->
# libraries
libs = [
'lib/jquery/jquery-1.8.2.min.js',
'lib/jquery/jquery.fullscreen.min.js',
'lib/bootstrap/bootstrap.noicons.min.js',
'lib/underscore/underscore-min.js',
'lib/backbone/backbone-min.js',
'lib/marked/marked.js',
'lib/athena-lib/athena.lib.min.js',
]
# Project configuration.
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
uglify:
options:
banner: '/* <%= pkg.name %> <%= pkg.version %> */\n'
libs:
files:
'build/acorn.player.libs.min.js': libs
player:
files:
'build/acorn.player.min.js': 'lib/acorn-player/acorn.player.min.js'
clean: ['build']
connect:
server:
options:
port: 9001
keepalive: true
# load tasks
grunt.loadNpmTasks 'grunt-contrib-clean'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-uglify'
grunt.loadNpmTasks 'grunt-contrib-connect'
# default task
grunt.registerTask 'default', ['uglify']
grunt.registerTask 'server', ['uglify', 'connect:server']