-
Notifications
You must be signed in to change notification settings - Fork 91
Expand file tree
/
Copy pathGruntfile.coffee
More file actions
37 lines (30 loc) · 839 Bytes
/
Gruntfile.coffee
File metadata and controls
37 lines (30 loc) · 839 Bytes
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
'use strict'
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON 'package.json'
home: process.env.HOME or process.env.HOMEPATH or process.env.USERPROFILE
less:
default:
files:
'Custom.css': 'Custom.less'
copy:
mac:
files:
'<%= home %>/Library/Application Support/Google/Chrome/Default/User StyleSheets/Custom.css': 'Custom.css'
win: {}
lin: {}
watch:
mac:
files: 'Custom.less'
tasks: [
'less'
'copy:mac'
]
win:
files: 'Custom.less'
lin:
files: 'Custom.less'
grunt.loadNpmTasks 'grunt-contrib-less'
grunt.loadNpmTasks 'grunt-contrib-copy'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.registerTask 'default', ['less','copy:mac']