forked from dobtco/starrr
/
Gruntfile.coffee
46 lines (37 loc) · 999 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
45
46
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-contrib-coffee')
grunt.loadNpmTasks('grunt-contrib-sass')
grunt.loadNpmTasks('grunt-contrib-cssmin')
grunt.loadNpmTasks('grunt-contrib-uglify')
grunt.loadNpmTasks('grunt-contrib-watch')
grunt.loadNpmTasks('grunt-contrib-clean')
grunt.loadNpmTasks('grunt-release')
grunt.initConfig
pkg: '<json:package.json>'
coffee:
all:
src: 'starrr.coffee',
dest: 'starrr.js',
options:
bare: true
sass:
all:
files:
'starrr.css': 'starrr.scss'
cssmin:
dist:
files:
'starrr.min.css': 'starrr.css'
uglify:
dist:
files:
'starrr.min.js': 'starrr.js'
watch:
all:
files: ['starrr.coffee', 'starrr.scss']
tasks: 'default'
release:
options:
file: 'bower.json'
npm: false
grunt.registerTask 'default', ['coffee:all', 'sass:all', 'cssmin:dist', 'uglify:dist']