Cleaning up publish task output

This commit is contained in:
Vadim Makeev 2014-05-09 16:56:00 +02:00
parent e450088636
commit e3ffb58faa
1 changed files with 8 additions and 7 deletions

View File

@ -24,7 +24,7 @@ module.exports = function(grunt) {
'!bower.json', '!bower.json',
'!package.json' '!package.json'
], ],
dest: 'temp/' dest: 'temp/pres/'
},{ },{
expand: true, expand: true,
cwd: 'node_modules/shower-core/', cwd: 'node_modules/shower-core/',
@ -33,7 +33,7 @@ module.exports = function(grunt) {
'!package.json', '!package.json',
'!Readme.md' '!Readme.md'
], ],
dest: 'temp/shower/' dest: 'temp/pres/shower/'
},{ },{
expand: true, expand: true,
cwd: 'node_modules/shower-ribbon/', cwd: 'node_modules/shower-ribbon/',
@ -42,7 +42,7 @@ module.exports = function(grunt) {
'!package.json', '!package.json',
'!Readme.md' '!Readme.md'
], ],
dest: 'temp/shower/themes/ribbon/' dest: 'temp/pres/shower/themes/ribbon/'
},{ },{
expand: true, expand: true,
cwd: 'node_modules/shower-bright/', cwd: 'node_modules/shower-bright/',
@ -51,13 +51,13 @@ module.exports = function(grunt) {
'!package.json', '!package.json',
'!Readme.md' '!Readme.md'
], ],
dest: 'temp/shower/themes/bright/' dest: 'temp/pres/shower/themes/bright/'
}] }]
} }
}, },
replace: { replace: {
core: { core: {
src: 'temp/index.html', src: 'temp/pres/index.html',
overwrite: true, overwrite: true,
replacements: [{ replacements: [{
from: /(node_modules|bower_components)\/shower-core/g, from: /(node_modules|bower_components)\/shower-core/g,
@ -68,7 +68,7 @@ module.exports = function(grunt) {
}] }]
}, },
themes: { themes: {
src: 'temp/shower/themes/*/index.html', src: 'temp/pres/shower/themes/*/index.html',
overwrite: true, overwrite: true,
replacements: [{ replacements: [{
from: '../shower-core', to: '../..' from: '../shower-core', to: '../..'
@ -77,7 +77,8 @@ module.exports = function(grunt) {
}, },
'gh-pages': { 'gh-pages': {
options: { options: {
base: 'temp' base: 'temp/pres',
clone: 'temp/clone'
}, },
src: ['**'] src: ['**']
}, },