forked from kylewelsby/angular-post-message
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.coffee
50 lines (48 loc) · 1.48 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
47
48
49
50
module.exports = (grunt) ->
grunt.initConfig(
pkg: grunt.file.readJSON('package.json')
banner: """/*!
* <%= pkg.name %> v<%= pkg.version %>
* Copyright <%= grunt.template.today("yyyy") %> <%= pkg.author %>
* Licensed under The MIT License
*/
"""
clean:
dist: ['dist']
testem:
options:
launch_in_ci: null
dist:
options:
serve_files: [
'bower_components/angular-1.2.0-rc.3/angular.js'
'dist/angular-post-message.min.js'
'bower_components/angular-mocks-1.2.0-rc.3/angular-mocks.js'
'.tmp/tests/*.js'
]
fail_on_zero_tests: true
launch_in_dev: ['PhantomJS']
launch_in_ci: ['PhantomJS']
coffee:
dist:
files:
'dist/angular-post-message.js': ['src/*.coffee']
concat:
options:
banner: '<%= banner %>'
dist:
src: ['dist/angular-post-message.js']
dest: 'dist/angular-post-message.js'
uglify:
options:
banner: '<%= banner %>'
dist:
files:
'dist/angular-post-message.min.js': ['dist/angular-post-message.js']
)
grunt.loadNpmTasks('grunt-contrib-clean')
grunt.loadNpmTasks('grunt-contrib-uglify')
grunt.loadNpmTasks('grunt-contrib-coffee')
grunt.loadNpmTasks('grunt-contrib-testem')
grunt.loadNpmTasks('grunt-contrib-concat')
grunt.registerTask('default', ['clean:dist', 'coffee:dist', 'concat:dist', 'uglify:dist', 'testem:ci:dist'])