mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-23 00:07:07 +00:00
Don't watch _output for changes
This commit is contained in:
parent
c59ca37d1a
commit
a3ddc12e24
1 changed files with 12 additions and 13 deletions
25
Gruntfile.js
25
Gruntfile.js
|
@ -3,7 +3,7 @@ module.exports = function (grunt) {
|
||||||
|
|
||||||
var outputRoot = '_output/';
|
var outputRoot = '_output/';
|
||||||
var outputDir = outputRoot +'UI/';
|
var outputDir = outputRoot +'UI/';
|
||||||
var srcRoot = 'src/UI/'
|
var srcRoot = 'src/UI/';
|
||||||
var srcContent = srcRoot + 'Content/';
|
var srcContent = srcRoot + 'Content/';
|
||||||
var destContent = outputDir + 'Content/';
|
var destContent = outputDir + 'Content/';
|
||||||
|
|
||||||
|
@ -87,7 +87,7 @@ module.exports = function (grunt) {
|
||||||
cwd : srcRoot,
|
cwd : srcRoot,
|
||||||
expand: true,
|
expand: true,
|
||||||
src : [
|
src : [
|
||||||
'**/*.js',
|
'**/*.js'
|
||||||
],
|
],
|
||||||
dest : outputDir
|
dest : outputDir
|
||||||
}
|
}
|
||||||
|
@ -128,18 +128,17 @@ module.exports = function (grunt) {
|
||||||
modules: [{
|
modules: [{
|
||||||
name: 'app',
|
name: 'app',
|
||||||
exclude: ['templates.js']
|
exclude: ['templates.js']
|
||||||
}],
|
}]
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
watch: {
|
watch: {
|
||||||
options: {
|
options: {
|
||||||
nospawn: false,
|
nospawn: false
|
||||||
},
|
},
|
||||||
bootstrap : {
|
bootstrap : {
|
||||||
files: [ srcContent + 'Bootstrap/**', srcContent +'FontAwesome/**'],
|
files: [ srcContent + 'Bootstrap/**', srcContent + 'FontAwesome/**'],
|
||||||
tasks: ['less:bootstrap','less:general']
|
tasks: ['less:bootstrap','less:general']
|
||||||
},
|
},
|
||||||
generalLess: {
|
generalLess: {
|
||||||
|
@ -152,13 +151,13 @@ module.exports = function (grunt) {
|
||||||
},
|
},
|
||||||
content : {
|
content : {
|
||||||
files: [
|
files: [
|
||||||
'**/index.html',
|
srcRoot + '**/index.html',
|
||||||
'**/*.css',
|
srcRoot + '**/*.css',
|
||||||
'**/*.png',
|
srcRoot + '**/*.png',
|
||||||
'**/*.jpg',
|
srcRoot + '**/*.jpg',
|
||||||
'**/*.ico',
|
srcRoot + '**/*.ico',
|
||||||
'**/FontAwesome/*.*',
|
srcRoot + '**/FontAwesome/*.*',
|
||||||
'**/fonts/*.*'
|
srcRoot + '**/fonts/*.*'
|
||||||
],
|
],
|
||||||
tasks: ['copy:content']
|
tasks: ['copy:content']
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue