Skip to content

Commit

Permalink
fixes linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewma7 committed Sep 22, 2017
1 parent 92ba4a6 commit 4c211bc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/build-website.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ about: ${json.about.text}
exampleCss: ${JSON.stringify(json.exampleCss)}
exampleJs: ${JSON.stringify(json.exampleJs)}
---
`+ html;
` + html;
fs.writeFileSync(path.resolve(output, 'index.html'), html);
return json;
});
Expand Down
4 changes: 2 additions & 2 deletions tutorials/build-website.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ glob('tutorials/*/tutorial.json')

var pugTemplate = fs.readFileSync(path.relative('.', path.resolve(dir, 'index.pug')), 'utf8');
pugTemplate = pugTemplate.replace('extends ../common/index.pug', 'extends ../common/index-website.pug');

var fn = pug.compile(pugTemplate, {
pretty: false,
filename: path.relative('.', path.resolve(dir, 'index.pug'))
Expand All @@ -45,7 +45,7 @@ tutorialCss: ${JSON.stringify(json.tutorialCss)}
tutorialJs: ${JSON.stringify(json.tutorialJs)}
---
` + html;
fs.writeFileSync(path.resolve(output, 'index.html'),html);
fs.writeFileSync(path.resolve(output, 'index.html'), html);
return json;
});

Expand Down
2 changes: 1 addition & 1 deletion webpack-website-examples.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ var config = require('./webpack-examples.config.js');
config.entry.bundle = './examples/index-website.js';
config.output.path = path.join(__dirname, 'website', 'source', 'examples');

module.exports = config;
module.exports = config;
2 changes: 1 addition & 1 deletion webpack-website-tutorials.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ var config = require('./webpack-tutorials.config.js');
config.entry.bundle = './tutorials/index-website.js';
config.output.path = path.join(__dirname, 'website', 'source', 'tutorials');

module.exports = config;
module.exports = config;

0 comments on commit 4c211bc

Please sign in to comment.