forked from hellsan631/LogosDistort
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.coffee
72 lines (60 loc) · 1.79 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
65
66
67
68
69
70
module.exports = (grunt)->
############################################################
# Project configuration
############################################################
grunt.initConfig
coffee:
build:
options:
bare: false
sourceMap: true
files:
'dist/jquery.logosDistort.js': 'src/jquery.logosDistort.coffee'
compass:
build:
options:
sourcemap: true
sassDir: 'demo/assets/_scss'
cssDir: 'demo/assets/css'
environment: 'development'
outputStyle: 'expanded'
uglify:
build:
options:
mangle: true
sourceMap: true
compress:
drop_console: true
files:
'dist/jquery.logosDistort.min.js': 'src/jquery.logosDistort.js'
cssmin:
build:
options:
sourceMap: true
advanced: false
compatibility: true
processImport: false
shorthandCompacting: false
files: [
expand: true
cwd: 'demo/assets/css'
src: ['*.css', '!*.min.css', '!style.css']
dest: 'dist/css'
ext: '.min.css'
]
##############################################################
# Dependencies
###############################################################
grunt.loadNpmTasks('grunt-contrib-coffee')
grunt.loadNpmTasks('grunt-contrib-compass')
grunt.loadNpmTasks('grunt-contrib-cssmin')
grunt.loadNpmTasks('grunt-contrib-uglify')
############################################################
# Alias tasks
############################################################
grunt.registerTask('build', [
#'coffee:build' # tmp
'compass:build' # tmp
'uglify:build' # public
'cssmin:build' # public
])