forked from mohebifar/angular-persian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.coffee
53 lines (44 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
45
46
47
48
49
50
51
52
53
'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'
tmp: '.tmp'
grunt.initConfig
yeoman: yeomanConfig
coffee:
dist:
files: [
expand: true
cwd: '<%= yeoman.tmp %>'
src: '{,*/}*.coffee'
dest: '<%= yeoman.dist %>'
ext: '.js'
]
concat:
dist:
src: ['<%= yeoman.src %>/module.coffee', '<%= yeoman.src %>/fn/*.coffee', '<%= yeoman.src %>/filters.coffee']
dest: '<%= yeoman.tmp %>/angularpersian.coffee'
uglify:
build:
src: '<%=yeoman.dist %>/angularpersian.js'
dest: '<%=yeoman.dist %>/angularpersian.min.js'
mocha_phantomjs:
options:
reporter: 'xunit',
output: 'test/results/result.xml'
all: ['test/**/*.html']
grunt.registerTask 'default', [
'concat'
'coffee'
]
grunt.registerTask 'build', [
'default'
'uglify'
]
grunt.registerTask 'test', [
'mocha_phantomjs'
]