Update all paths in gruntfile

This commit is contained in:
benjamin melançon 2018-08-20 09:40:53 -04:00
parent c9c94936cc
commit b9040a7fde

View file

@ -6,7 +6,7 @@ module.exports = function (grunt) {
style: 'compact'
},
files: {
'assets/css/agaric.css': 'sass/agaric.scss'
'static-layouts/assets/css/agaric.css': 'agaric/sass/agaric.scss'
}
}
},
@ -14,21 +14,21 @@ module.exports = function (grunt) {
dev: {
options: {
flatten: true,
data: 'design-source/data/*.{json,yml}',
data: 'static-layouts/design-source/data/*.{json,yml}',
layout: false,
partials: 'design-source/templates/**/*.hbs'
partials: 'static-layouts/design-source/templates/**/*.hbs'
},
files: [
{
expand: true,
cwd: 'design-source/pages',
cwd: 'static-layouts/design-source/pages',
src: '**/*.{hbs,md}',
dest: 'design-output/'
dest: 'static-layouts/design-output/'
}
]
}
},
clean: ['design-output/*.html'],
clean: ['static-layouts/design-output/*.html'],
connect: {
preview: {
options: {
@ -37,17 +37,17 @@ module.exports = function (grunt) {
hostname: 'localhost',
keepalive: false,
livereload: 35729,
open: 'http://0.0.0.0:9000/design-output'
open: 'http://0.0.0.0:9000/static-layouts/design-output'
}
}
},
watch: {
templates: {
files: [
'design-source/templates/**/*.{hbs,md}',
'design-source/pages/**/*.{hbs,md}',
'design-source/data/**/*.json',
'sass/**/*.scss',
'static-layouts/design-source/templates/**/*.{hbs,md}',
'static-layouts/design-source/pages/**/*.{hbs,md}',
'static-layouts/design-source/data/**/*.json',
'agaric/sass/**/*.scss',
],
tasks: ['assemble','sass:dev']
},
@ -55,12 +55,12 @@ module.exports = function (grunt) {
options: {
livereload: '<%= connect.preview.options.livereload %>'
},
files: ['design-output/**.*']
files: ['static-layouts/design-output/**.*']
}
},
shell: {
target: {
command: './node_modules/.bin/kss --config sass/styleguide-config.json --verbose'
command: './node_modules/.bin/kss --config styleguide/_source/styleguide-config.json --verbose'
}
}
});