Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring up a brand new hexo-filter-nofollow #1

Merged
merged 7 commits into from
Sep 1, 2019
Merged

Bring up a brand new hexo-filter-nofollow #1

merged 7 commits into from
Sep 1, 2019

Conversation

SukkaW
Copy link
Member

@SukkaW SukkaW commented Aug 28, 2019

  • Completely rewrite the code
  • Add a field option
  • Add eslint

@SukkaW SukkaW requested review from curbengh, lzjqsdd, yoshinorin and segayuu and removed request for lzjqsdd August 28, 2019 15:21
.eslintignore Outdated Show resolved Hide resolved
.travis.yml Outdated Show resolved Hide resolved
lib/filter.js Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
lib/filter.js Outdated Show resolved Hide resolved
@SukkaW SukkaW requested a review from curbengh August 29, 2019 09:58
lib/filter.js Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@@ -0,0 +1,38 @@
{
"name": "hexo-filter-nofollow",
"version": "2.0.0",
Copy link
Member

@yoshinorin yoshinorin Aug 30, 2019

Choose a reason for hiding this comment

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

1.0.0 or less than 1.0.0?

Copy link
Contributor

Choose a reason for hiding this comment

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

https://www.npmjs.com/package/hexo-filter-nofollow/v/1.0.1 is already published (which doesn't include this PR).

@@ -0,0 +1 @@
package-lock=false
Copy link
Member

Choose a reason for hiding this comment

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

FYI

We discussing lock file in hexojs/hexo#3370 (It hasn't reached a conclusion yet)

Copy link
Member Author

Choose a reason for hiding this comment

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

For hexo-filter-nofollow the lock file is not necessary, since it has no dependencies at all.

},
"scripts": {
"eslint": "eslint .",
"test": "echo \"Error: no test specified\" && exit 1"
Copy link
Member

Choose a reason for hiding this comment

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

IMHO you can choose anything test framework you want when you write a unit test code.

Copy link
Contributor

Choose a reason for hiding this comment

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

Or even a dummy test like https://github.com/hexojs/hexo-uglify, but it can be done in a separate PR.

Copy link
Member Author

Choose a reason for hiding this comment

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

A unit test might be added later in another PR.

Copy link
Contributor

@curbengh curbengh left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@yoshinorin yoshinorin left a comment

Choose a reason for hiding this comment

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

LGTM

@curbengh
Copy link
Contributor

curbengh commented Sep 1, 2019

@SukkaW Do you have anything else to add? Feel free to merge this and publish.

@SukkaW SukkaW merged commit 4222da1 into hexojs:master Sep 1, 2019
@SukkaW
Copy link
Member Author

SukkaW commented Sep 1, 2019

https://www.npmjs.com/package/hexo-filter-nofollow/v/2.0.0
New version has been published.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants