-
Notifications
You must be signed in to change notification settings - Fork 6
/
Gruntfile.coffee
40 lines (34 loc) · 928 Bytes
/
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
# Generated on 2015-08-24 using generator-bower 0.0.1
'use strict'
mountFolder = (connect, dir) ->
connect.static require('path').resolve(dir)
module.exports = (grunt) ->
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks)
yeomanConfig =
src: 'src'
dist : 'dist'
grunt.initConfig
yeoman: yeomanConfig
copy:
dist:
files: [
expand: true
cwd: '<%= yeoman.src %>'
src: '{,*/}*.js'
dest: '<%= yeoman.dist %>'
]
uglify:
build:
src: '<%=yeoman.dist %>/angular-browser-push-notifications.js'
dest: '<%=yeoman.dist %>/angular-browser-push-notifications.min.js'
mochaTest:
test:
options:
reporter: 'spec'
compilers: 'coffee:coffee-script'
src: ['test/**/*.coffee']
grunt.registerTask 'default', [
# 'mochaTest'
'copy'
'uglify'
]