This repository has been archived by the owner on Apr 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 142
/
Gruntfile.js
55 lines (44 loc) · 1.56 KB
/
Gruntfile.js
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
'use strict';
var path = require('path');
module.exports = function (grunt) {
grunt.initConfig({
broccoli_build: {
build: {
dest: 'build/'
}
},
clean: {
build: 'build/',
tmp : 'tmp/'
},
pure_grids: {
main: {
dest: 'public/css/main-grid.css',
options: {
selectorPrefix: '.u-',
mediaQueries: {
sm: 'screen and (min-width: 35.5em)', // 568px
md: 'screen and (min-width: 48em)', // 768px
lg: 'screen and (min-width: 58em)', // 928px
xl: 'screen and (min-width: 75em)' // 1200px
}
}
}
},
shell: {
health_check: {
command: 'mkdir -p artifacts/test/health-check &&' +
' ./node_modules/.bin/mocha --reporter tap tests/health-check.js --host=' + (grunt.option('host') || 'localhost:5000') +
' | tee artifacts/test/health-check/results.tap'
}
}
});
// npm tasks.
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-broccoli-build');
grunt.loadNpmTasks('grunt-pure-grids');
grunt.loadNpmTasks('grunt-shell-spawn');
grunt.registerTask('build', ['clean', 'broccoli_build', 'clean:tmp']);
grunt.registerTask('health.check', ['shell:health_check']);
grunt.registerTask('default', ['build']);
};