chore: refactor & fix typo

This commit is contained in:
endiliey 2018-08-01 15:52:20 +08:00
parent dd5757ce65
commit c5dfddaf61
6 changed files with 3 additions and 3 deletions

View file

@ -29,7 +29,7 @@ module.exports = async function dev(sourceDir, cliOptions = {}) {
console.error(chalk.red(err.stack));
});
};
const fsWatcher = chokidar.watch(['**/*.md', '.blogi/config.js'], {
const fsWatcher = chokidar.watch(['**/*.md', 'config.js'], {
cwd: sourceDir,
ignoreInitial: true
});

View file

@ -7,8 +7,8 @@
"blogi": "bin/blogi.js"
},
"scripts": {
"dev": "node bin/blogi dev blog",
"build": "node bin/blogi build blog",
"dev": "node bin/blogi dev examples",
"build": "node bin/blogi build examples",
"prettier": "prettier --config .prettierrc --write \"lib/**/*.js\" \"bin/**/*.js\" \"test/**/*.js\"",
"lint": "eslint --cache \"lib/**/*.js\" \"bin/**/*.js\" \"test/**/*.js\"",
"test": "jest"