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