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)); console.error(chalk.red(err.stack));
}); });
}; };
const fsWatcher = chokidar.watch(['**/*.md', '.blogi/config.js'], { const fsWatcher = chokidar.watch(['**/*.md', 'config.js'], {
cwd: sourceDir, cwd: sourceDir,
ignoreInitial: true ignoreInitial: true
}); });

View file

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