Simplify the grunt-watched files pattern.
This commit is contained in:
parent
b1601188a1
commit
607c935e0d
@ -94,11 +94,10 @@ module.exports = function(grunt) {
|
|||||||
files: [
|
files: [
|
||||||
'Gruntfile.js',
|
'Gruntfile.js',
|
||||||
'package.json',
|
'package.json',
|
||||||
'lib/**/*.coffee',
|
'lib/**/*',
|
||||||
'src/**/*.coffee',
|
'src/**/*',
|
||||||
'src/**/*.js',
|
'css/**/*',
|
||||||
'css/**/*.css',
|
'img/**/*'
|
||||||
'img/*'
|
|
||||||
],
|
],
|
||||||
tasks: 'default'
|
tasks: 'default'
|
||||||
}
|
}
|
||||||
|
|||||||
@ -87,9 +87,7 @@ Header =
|
|||||||
else if /-full/.test t
|
else if /-full/.test t
|
||||||
a.textContent = "/#{board}/ - #{a.title}"
|
a.textContent = "/#{board}/ - #{a.title}"
|
||||||
else if /-(index|catalog|text)/.test t
|
else if /-(index|catalog|text)/.test t
|
||||||
c.log t, t.match /-(index|catalog)/
|
|
||||||
if m = t.match /-(index|catalog)/
|
if m = t.match /-(index|catalog)/
|
||||||
c.log m
|
|
||||||
a.setAttribute 'data-only', m[1]
|
a.setAttribute 'data-only', m[1]
|
||||||
a.href = "//boards.4chan.org/#{board}/"
|
a.href = "//boards.4chan.org/#{board}/"
|
||||||
a.href += 'catalog' if m[1] is 'catalog'
|
a.href += 'catalog' if m[1] is 'catalog'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user