mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-01 18:32:52 +02:00
Integrate eslint & precommit to codebase (#815)
* add eslint, precommit & refactor * fix exit code 127 * modify contributing.md & add package-lock * use .eslintrc.js
This commit is contained in:
parent
97eaaad744
commit
21dcea2a31
20 changed files with 4836 additions and 2139 deletions
|
@ -125,11 +125,11 @@ shell.exec('git rm -rf .');
|
|||
|
||||
shell.cd('../..');
|
||||
|
||||
fromPath = path.join('build', `${PROJECT_NAME}`);
|
||||
toPath = path.join('build', `${PROJECT_NAME}-${DEPLOYMENT_BRANCH}`);
|
||||
const fromPath = path.join('build', `${PROJECT_NAME}`);
|
||||
const toPath = path.join('build', `${PROJECT_NAME}-${DEPLOYMENT_BRANCH}`);
|
||||
// In github.io case, project is deployed to root. Need to not recursively
|
||||
// copy the deployment-branch to be.
|
||||
excludePath = `${PROJECT_NAME}-${DEPLOYMENT_BRANCH}`;
|
||||
const excludePath = `${PROJECT_NAME}-${DEPLOYMENT_BRANCH}`;
|
||||
|
||||
// cannot use shell.cp because it doesn't support copying dotfiles and we
|
||||
// need to copy directories like .circleci, for example
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue