forked from davidtheclark/grunt-spritesmith-hd
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Gruntfile.coffee
50 lines (41 loc) · 942 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
47
48
49
50
module.exports = (grunt) ->
# Configuration object
grunt.initConfig
pkg: grunt.file.readJSON "package.json"
sass:
test:
files:
"test/test-style.css": "test/scss/test-style.scss"
clean:
test:
src: [
"tempAssets"
"ld-test-assets"
"test/sprites"
"test/scss/sprites"
]
spriteHD:
options:
destImg: "test/sprites"
destCSS: "test/scss/sprites"
imgPath: "sprites"
engine: "gmsmith"
algorithmOpts:
sort: false
test1:
src: ["test/images/test-1/*"]
spriteName: "test-1"
grunt.loadNpmTasks "grunt-contrib-sass"
grunt.loadNpmTasks "grunt-contrib-clean"
grunt.loadTasks "tasks"
grunt.registerTask "test", [
"clean:test"
"spriteHD"
]
grunt.registerTask "style", [
"sass:test"
]
grunt.registerTask "sprite", [
"test"
"style"
]