Add item detail page

This commit is contained in:
Tom Raithel
2017-02-11 22:53:54 +01:00
parent 56f9495a59
commit 1f58dea853
21 changed files with 301 additions and 89 deletions

View File

@@ -12,7 +12,8 @@ import {
distPath,
} from './file';
const watchBuild = (name) => (eventType, fileName) => {
const runBuild = (name) => (
exec(`npm run build:${name}`, (error, stdout, stderr) => {
if (error) {
console.error(`exec error: ${error}`);
@@ -21,12 +22,16 @@ const watchBuild = (name) => (eventType, fileName) => {
console.log(stdout);
console.error(stderr);
})
}
);
const watchBuild = (name) => (eventType, fileName) => runBuild(name);
const options = {
recursive: true,
}
runBuild('all');
watch(stylesPath(), options, watchBuild('css'));
watch(jsPath(), options, watchBuild('js'));
watch(assetsPath(), options, watchBuild('assets'));