-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Closed
Labels
metaIssues and PRs related to the general management of the project.Issues and PRs related to the general management of the project.
Description
The core idea
Introduce Nodejs as base dependency to simplify current workflow.
The problem
- Upgrade toolchain like eslint cumbersome.
- Cpp format is really painful.
When I work on src: refactor to nullptr #25888. I am pretty painful. With @joyeecheung awesome's work, we haveclang-formatalso withmake-formatc-cpp. But it's only available on unix-like os. And we have not clang-format the whole repo. I ended up copy the related snippet. - Lint fix
Node community is more familiar with nodejs tools like npm or yarn instead of bash or bat file. - Use more community tools
We may need to introduce more tools to improve develop efficiency likeprettierandhusky.
How do we achieve this
- create
package.jsonin project root and add nodejs inprerequesite.md - move eslint and other packages to
pacakge.json, remove the sources. - introduce
huskyandlint-staged, and addclang-formatto the hooks. We can see it in electron and repo likeCRAsee https://github.com/facebook/create-react-app/blob/master/package.json and https://github.com/electron/electron/blob/master/package.json.
Also we should agree on.clang-formatrules and format thesrcandtestfolder commit to the repo.
Update on 2019-02-07:
- Not use related toolchain in build phase
- Not introduce
huskyandlint-stagedfor now, see Improve current workflow #25908 (comment) - Not clang-format the whole repo, see [Internal] clang-format the whole repo #25955 (comment)
Update on 2019-02-12
- There are other reason I don't like copy all
eslintandbabel-eslintand all its dependency code to this repo. It's just a tool. Also with this review eslint upgrade will be much easier. - Also I think we have same lint logic in both
Makefileandvcbuild.bat. Unify it inpackage.jsonwill remove redundant code.
Metadata
Metadata
Assignees
Labels
metaIssues and PRs related to the general management of the project.Issues and PRs related to the general management of the project.