-
Notifications
You must be signed in to change notification settings - Fork 6
/
Gruntfile.coffee
43 lines (35 loc) · 1.05 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
# We were getting weird false positives here.
# Not sure why the crawler is crawling javascript?
IGNORE_LINK_CHECKER_FALSE_POSITIVES = (crawler) ->
crawler.addFetchCondition (url) ->
!url.path.match('strictMode') &&
!url.path.match('.js')
module.exports = (grunt) ->
grunt.loadNpmTasks 'grunt-link-checker'
grunt.loadNpmTasks 'grunt-gh-pages'
grunt.loadNpmTasks 'grunt-shell'
grunt.initConfig
pkg: '<json:package.json>'
linkChecker:
options:
maxConcurrency: 5
dev:
site: 'localhost'
options:
initialPort: 8080
callback: IGNORE_LINK_CHECKER_FALSE_POSITIVES
postDeploy:
site: 'help.dobt.co'
options:
callback: IGNORE_LINK_CHECKER_FALSE_POSITIVES
'gh-pages':
options:
base: 'build'
message: 'Deploy (via Grunt)'
src: ['**']
shell:
build:
command: 'wintersmith build'
pushtoheroku:
command: 'git push heroku master'
grunt.registerTask 'deploy', ['shell:build', 'gh-pages', 'shell:pushtoheroku']