-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.coffee
44 lines (36 loc) · 1019 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
41
42
43
44
# Generated on 2015-10-20 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
browserify:
dev:
src: "src/adequate-tabs.coffee"
dest: "dist/adequate-tabs.js"
options:
debug: true
transform: [ 'coffeeify' ]
browserifyOptions:
standalone: 'AdequateTabs'
plugin: [ 'browserify-derequire' ]
uglify:
build:
src: '<%=yeoman.dist %>/adequate-tabs.js'
dest: '<%=yeoman.dist %>/adequate-tabs.min.js'
mochaTest:
test:
options:
reporter: 'spec'
compilers: 'coffee:coffee-script'
src: ['test/**/*.coffee']
grunt.registerTask 'default', [
#'mochaTest'
'browserify'
'uglify'
]