Skip to content

Commit

Permalink
Fix the app-css task (#25)
Browse files Browse the repository at this point in the history
According to the instructions, the colors.json file should
exist in the views directory root, but this task is actually
reading from the project root dir because gulp automatically
performs a cwd to the gulpfile.js location.

This fix makes the task behavior consistent with the README,
which is presumably ideal.
  • Loading branch information
gpeterso authored and NoamaExl committed Jan 5, 2017
1 parent 1f89e6e commit bf9cedd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gulp/tasks/build-scss.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ gulp.task('extract-scss-files', () => {
.pipe(tar.extract('.'))
});
gulp.task('color-variables',() => {
let colorVariables =JSON.parse(fs.readFileSync('colors.json', 'utf8'));
let colorVariables =JSON.parse(fs.readFileSync(config.viewCssDir() + '/../colors.json', 'utf8'));
console.log(colorVariables.links);
return gulp.src(templateFile)
.pipe(template(colorVariables))
Expand Down

0 comments on commit bf9cedd

Please sign in to comment.