forked from soyjavi/tuktuk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgruntfile.coffee
52 lines (42 loc) · 1.63 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
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON "site/package/component.json"
meta:
file: "tuktuk"
endpoint: "site/package",
banner: """
/* <%= pkg.name %> v<%= pkg.version %> - <%= grunt.template.today("m/d/yyyy") %>
<%= pkg.homepage %>
Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %> - Licensed <%= _.pluck(pkg.license, "type").join(", ") %> */
"""
source:
coffee: ["sources/tuktuk.coffee", "sources/tuktuk.*.coffee"],
stylus: [ "sources/stylesheets/tuktuk.*.styl"],
theme: [ "sources/themes/theme.default.styl"],
icons: "sources/componentes/lungo.icon/lungo.icon.css"
coffee:
engine: files: "<%= meta.endpoint %>/<%= meta.file %>.js" : ["<%= source.coffee %>"]
stylus:
stylesheets:
options: compress: true
files: '<%= meta.endpoint %>/<%=meta.file%>.css': '<%= source.stylus %>'
theme:
options: compress: true
files: '<%= meta.endpoint %>/<%=meta.file%>.theme.css': '<%= source.theme %>'
copy:
main:
files:
src: '<%= source.icons %>',
dest: "<%= meta.endpoint %>/<%=meta.file%>.icons.css"
watch:
coffee:
files: ["<%= source.coffee %>"]
tasks: ["coffee"]
stylus:
files: ["<%= source.stylus %>", "<%= source.theme %>"]
tasks: ["stylus"]
grunt.loadNpmTasks "grunt-contrib-coffee"
grunt.loadNpmTasks "grunt-contrib-stylus"
grunt.loadNpmTasks "grunt-contrib-copy"
grunt.loadNpmTasks "grunt-contrib-watch"
grunt.registerTask "default", [ "coffee", "stylus", "copy"]