This repository was archived by the owner on Dec 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGruntfile.coffee
More file actions
54 lines (52 loc) · 1.78 KB
/
Gruntfile.coffee
File metadata and controls
54 lines (52 loc) · 1.78 KB
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
module.exports = (grunt) ->
grunt.initConfig(
pkg: grunt.file.readJSON('package.json')
coffee:
files:
src: ['strongs/src/js/**/*.coffee']
dest: 'strongs/assets/js/script.js'
watch:
src:
files: [
'strongs/src/**/*.coffee',
'strongs/src/**/*.less',
'strongs/src/**/*.html'
],
tasks: ['coffee', 'less', 'copy']
less:
options:
paths: ['strongs/src/css']
files:
dest: 'strongs/assets/css/style.css',
src: ['strongs/src/less/**/*.less']
copy:
main:
files: [
{
expand: true,
cwd: 'strongs/fonts',
src: '**',
dest: 'strongs/assets/fonts',
flatten: true
},
{
expand: true,
cwd: 'strongs/media',
src: '**',
dest: 'strongs/assets/media',
flatten: true
},
{
expand: true,
cwd: 'strongs/src/elements',
src: '**',
dest: 'strongs/assets/elements',
flatten: true
}
]
)
grunt.loadNpmTasks('grunt-contrib-coffee')
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.registerTask('default', ['coffee', 'less', 'copy', 'watch'])