-
Notifications
You must be signed in to change notification settings - Fork 6
/
Gruntfile.coffee
125 lines (106 loc) · 2.69 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
module.exports = (grunt) ->
grunt.initConfig
useminPrepare:
html: ['app/modules/FrontModule/templates/@layout.latte']
options:
dest: './'
netteBasePath:
task:
basePath: 'public'
options:
removeFromPath: ['app\\modules\\FrontModule\\templates\\']
nittro:
options:
vendor:
js: []
css: []
base:
core: true
datetime: true
neon: true
di: true
ajax: true
forms: true
page: true
flashes: true
routing: false
extras:
checklist: false,
dialogs: false,
confirm: false,
dropzone: false,
paginator: false,
keymap: false,
storage: false
libraries:
js: [
'public/js/nittro/NetteBasicFormToggle.js',
]
css: []
bootstrap:
params: null,
extensions: null,
services:
netteBasicFormToggle: 'App.NetteBasicFormToggle()!'
factories: null
stack: true
js:
dest: "public/js/nittro/nittro-build.js"
css:
dest: "public/css/nittro/nittro-build.less"
sass:
options:
includePaths: [
'node_modules/foundation-sites/scss'
'node_modules/motion-ui/src'
]
sourceMap: true
dist:
files:
'public/css/site/main.css': 'public/css/site/main.sass'
less:
development:
options:
paths: ['public/css/nittro']
files:
'public/css/nittro/nittro-build.css': 'public/css/nittro/nittro-build.less'
watch:
sass:
files: ['public/css/site/**/*.sass']
tasks: ['sass', 'postcss:dev']
postcss:
options:
map: true,
processors: [
require('autoprefixer')({browsers: ['last 3 version']})
]
dist:
src: 'public/css/site/site.min.css'
dev:
src: 'public/css/site/main.css'
uglify:
options:
mangle: false
# These plugins provide necessary tasks.
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-contrib-concat'
grunt.loadNpmTasks 'grunt-contrib-uglify'
grunt.loadNpmTasks 'grunt-contrib-cssmin'
grunt.loadNpmTasks 'grunt-usemin'
grunt.loadNpmTasks 'grunt-nette-basepath'
grunt.loadNpmTasks 'grunt-postcss'
grunt.loadNpmTasks 'grunt-sass'
grunt.loadNpmTasks 'grunt-nittro'
grunt.loadNpmTasks 'grunt-contrib-less'
# Default task.
grunt.registerTask 'default', [
'nittro'
'less'
'sass'
'useminPrepare'
'netteBasePath'
'concat'
'uglify'
'cssmin'
'postcss'
]