This repository has been archived by the owner on Nov 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Gruntfile.coffee
64 lines (53 loc) · 1.54 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
54
55
56
57
58
59
60
61
62
63
64
module.exports = (grunt) ->
sources = 'src/**/*.coffee'
tests = 'test/**/*.coffee'
grunt.initConfig
buster:
all: {} # Defaults
coffee:
dist:
files:
'dist/bootstrap-dialogs.js': sources
tests:
files:
'dist/bootstrap-dialogs-test.js': tests
coffeelint:
assets: 'Gruntfile.coffee'
dist: sources
tests: tests
connect:
examples: {}
copy:
dist:
files:
'bootstrap-dialogs.js': 'dist/bootstrap-dialogs.js'
'bootstrap-dialogs.min.js': 'dist/bootstrap-dialogs.min.js'
jshint:
assets: 'buster.js'
uglify:
dist:
files:
'dist/bootstrap-dialogs.min.js': 'dist/bootstrap-dialogs.js'
watch:
test:
files: [
'Gruntfile.coffee'
'buster.js'
sources
tests
]
tasks: ['test']
grunt.loadNpmTasks('grunt-buster')
grunt.loadNpmTasks('grunt-coffeelint')
grunt.loadNpmTasks('grunt-contrib-coffee')
grunt.loadNpmTasks('grunt-contrib-connect')
grunt.loadNpmTasks('grunt-contrib-copy')
grunt.loadNpmTasks('grunt-contrib-jshint')
grunt.loadNpmTasks('grunt-contrib-uglify')
grunt.loadNpmTasks('grunt-contrib-watch')
grunt.registerTask('lint', ['coffeelint', 'jshint'])
grunt.registerTask('build', ['lint', 'coffee', 'uglify'])
grunt.registerTask('dist', ['build', 'copy'])
grunt.registerTask('start', ['connect', 'test', 'watch'])
grunt.registerTask('test', ['build', 'buster'])
grunt.registerTask('default', ['test'])