Skip to content

tools: rolled up lint-md - #20109

Merged
refack merged 5 commits into
nodejs:masterfrom
refack:rolled-up-lint-md
Sep 11, 2018
Merged

tools: rolled up lint-md#20109
refack merged 5 commits into
nodejs:masterfrom
refack:rolled-up-lint-md

Conversation

@refack

@refackrefack commented Apr 17, 2018

Copy link
Copy Markdown
Contributor

replace remark-cli and remark-preset-lint-node with a "rolled-up" single file.

  • Should solve all build & Makefile issue
  • very size economic (17KB instead of 20MB ~1300 files)
  • includes all recipes for re rolling & updating

/CC @wooorm @nodejs/build
H/T: @rollup

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • documentation is changed or added
  • commit message follows commit guidelines

@refackrefack added wip Issues and PRs that are still a work in progress. doc Issues and PRs related to the documentations. build Issues and PRs related to build files or the CI. tools Issues and PRs related to the tools directory. labels Apr 17, 2018
@refackrefack self-assigned this Apr 17, 2018
@nodejs-github-botnodejs-github-bot added build Issues and PRs related to build files or the CI. meta Issues and PRs related to the general management of the project. tools Issues and PRs related to the tools directory. labels Apr 17, 2018
@refack

Copy link
Copy Markdown
ContributorAuthor

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: missing line break at EOF.

Comment threadtools/remark-cli/LICENSE Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please could you update

addlicense "remark-cli""tools/remark-cli""$(cat ${rootdir}/tools/remark-cli/LICENSE)"
?

@gibfahn

Copy link
Copy Markdown
Member

This sounds like a great solution to the problem. If it works we should probably consider doing the same for eslint.

@joyeecheungjoyeecheungApr 19, 2018

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The lint-md-build makefile target is removed, can you add it back with a command that runs this?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since our CI runs this for every lint, I've made make lint-md-build a no-op, and added make lint-md-rollup

@joyeecheung

Copy link
Copy Markdown
Member

Very nice work. Thank you for working on this!

@BridgeAR

BridgeAR commented Apr 25, 2018

Copy link
Copy Markdown
Member

This is marked as WIP @refack is there anything else to do to get this landed (besides open comments)?

@refack

Copy link
Copy Markdown
ContributorAuthor

refack is there anything else to do to get this landed (besides open comments)?

I was hoping for some feedback on how we should track the license, and document this. Also i'm not sure how to test the new script...

@joyeecheung

Copy link
Copy Markdown
Member

@refack I think writing a bad .md in the root directory then running make lint-md expecting a non-zero exit code and some output complaining about it should be enough. Can be part of the doctool test suite. If we don't want to always run it we can just tweak the makefile and/or vcbuild.bat, it should be fine as long as it's run in the linter CI.

@BridgeAR

Copy link
Copy Markdown
Member

Ping @refack

@BridgeAR

Copy link
Copy Markdown
Member

I guess it is a good idea to do this but I am going to close this due to no response. If anyone feels like taking a stab at this, that would be great.

@refack please reopen in case you want to continue working on this.

@refack

Copy link
Copy Markdown
ContributorAuthor

Why should this not trigger the rollup?

Also lint-md-rollup uses npm up, and there is some spesific workaround code in the rollup config that could break:
https://github.com/nodejs/node/blob/67b6082e119b85551e5dcf4243b09f08f50f42ce/tools/node-lint-md-cli-rollup/rollup.config.js#L28-L36

@refack

Copy link
Copy Markdown
ContributorAuthor

PR-URL: nodejs#20109
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
PR-URL: nodejs#20109
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
PR-URL: nodejs#20109
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
PR-URL: nodejs#20109
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
* remove unused `tools/remark-cli`
* vcbuild tested with `vcbuild nobuild noprojgen lint-md-build lint-md`
PR-URL: nodejs#20109
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
@refack
refack merged commit e4dd213 into nodejs:masterSep 11, 2018
@refack

Copy link
Copy Markdown
ContributorAuthor

@refack
refack deleted the rolled-up-lint-md branch September 11, 2018 18:14
targos pushed a commit that referenced this pull request Sep 11, 2018
PR-URL: #20109
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
targos pushed a commit that referenced this pull request Sep 11, 2018
PR-URL: #20109
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
targos pushed a commit that referenced this pull request Sep 11, 2018
PR-URL: #20109
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
targos pushed a commit that referenced this pull request Sep 11, 2018
PR-URL: #20109
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
targos pushed a commit that referenced this pull request Sep 11, 2018
* remove unused `tools/remark-cli`
* vcbuild tested with `vcbuild nobuild noprojgen lint-md-build lint-md`
PR-URL: #20109
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
@targostargos mentioned this pull request Sep 18, 2018
targos added a commit to targos/node that referenced this pull request Sep 21, 2018
- In release guide
- In Travis config
Refs: nodejs#20109
addaleax pushed a commit that referenced this pull request Sep 22, 2018
- In release guide
- In Travis config
Refs: #20109
PR-URL: #22991
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
targos added a commit that referenced this pull request Sep 23, 2018
- In release guide
- In Travis config
Refs: #20109
PR-URL: #22991
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
@refackrefack removed their assignment Oct 12, 2018
MylesBorins pushed a commit that referenced this pull request Nov 26, 2018
- In release guide
- In Travis config
Refs: #20109
PR-URL: #22991
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
rvagg pushed a commit that referenced this pull request Nov 28, 2018
- In release guide
- In Travis config
Refs: #20109
PR-URL: #22991
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

buildIssues and PRs related to build files or the CI.docIssues and PRs related to the documentations.toolsIssues and PRs related to the tools directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants

@refack@gibfahn@joyeecheung@BridgeAR@jasnell@richardlau@devsnek@vsemozhetbyt@nodejs-github-bot