Skip to content

Commit

Permalink
Bump xo from 0.25.4 to 0.32.1 (#5)
Browse files Browse the repository at this point in the history
* Bump xo from 0.25.4 to 0.32.1

Bumps [xo](https://github.com/xojs/xo) from 0.25.4 to 0.32.1.
- [Release notes](https://github.com/xojs/xo/releases)
- [Commits](xojs/xo@v0.25.4...v0.32.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* chore(prettier): apply prettier code style

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: dailyrandomphoto <dailyrandomphoto@gmail.com>
  • Loading branch information
1 parent c0f2ab2 commit 2586b49
Show file tree
Hide file tree
Showing 11 changed files with 171 additions and 114 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
8 changes: 4 additions & 4 deletions .github/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ minApprovals:
reportStatus: true

rules:
- minApprovals:
OWNER: 1
- minApprovals:
MEMBER: 2
- minApprovals:
OWNER: 1
- minApprovals:
MEMBER: 2
7 changes: 7 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
coverage/**
node_modules/**
dist/**
build/**
.nyc_output/**
LICENSE
documents/**
13 changes: 13 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"overrides": [
{
"files": ["**/*.js", "**/*.jsx"],
"options": {
"singleQuote": true,
"jsxSingleQuote": true,
"trailingComma": "none",
"bracketSpacing": true
}
}
]
}
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
[![NPM Version][npm-version-image]][npm-url]
[![LICENSE][license-image]][license-url]
[![Build Status][travis-image]][travis-url]
[![dependencies Status][dependencies-image]][dependencies-url]
[![devDependencies Status][devDependencies-image]][devDependencies-url]
[![code style: prettier][code-style-prettier-image]][code-style-prettier-url]

A Generator to generate README of Developer Blog Directory.

Expand All @@ -15,15 +14,19 @@ npm install dev-blog-directory-readme-generator
```

## Usages

```sh
$ npx readme-gen RAW_DATA_PATH
```

e.g.

```sh
$ npx readme-gen ../dev-blog-directory-raw/documents
```

## TOODs

- [x] separate files by Languages.
- [x] add feed links (RSS, OPML)
- [ ] lastest published date
Expand All @@ -37,20 +40,16 @@ $ npx readme-gen ../dev-blog-directory-raw/documents
- [dev-blog-directory-save-yaml-cli](https://github.com/dailyrandomphoto/dev-blog-directory-save-yaml-cli) - A CLI for saves the YAML format blog list to `documents/*.yml`.

## License

Copyright (c) 2020 [dailyrandomphoto][my-url]. Licensed under the [MIT license][license-url].

[my-url]: https://github.com/dailyrandomphoto
[npm-url]: https://www.npmjs.com/package/dev-blog-directory-readme-generator
[travis-url]: https://travis-ci.org/dev-blog-directory/dev-blog-directory-readme-generator
[coveralls-url]: https://coveralls.io/github/dev-blog-directory/dev-blog-directory-readme-generator?branch=master
[license-url]: LICENSE
[dependencies-url]: https://david-dm.org/dev-blog-directory/dev-blog-directory-readme-generator
[devDependencies-url]: https://david-dm.org/dev-blog-directory/dev-blog-directory-readme-generator?type=dev

[code-style-prettier-url]: https://github.com/prettier/prettier
[npm-downloads-image]: https://img.shields.io/npm/dm/dev-blog-directory-readme-generator
[npm-version-image]: https://img.shields.io/npm/v/dev-blog-directory-readme-generator
[license-image]: https://img.shields.io/npm/l/dev-blog-directory-readme-generator
[travis-image]: https://img.shields.io/travis/dev-blog-directory/dev-blog-directory-readme-generator
[coveralls-image]: https://img.shields.io/coveralls/github/dev-blog-directory/dev-blog-directory-readme-generator
[dependencies-image]: https://img.shields.io/david/dev-blog-directory/dev-blog-directory-readme-generator
[devDependencies-image]: https://img.shields.io/david/dev/dev-blog-directory/dev-blog-directory-readme-generator
[code-style-prettier-image]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square
4 changes: 2 additions & 2 deletions lib/group-by-lang.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ function groupByLang(blogs) {
return group;
}

blogs.forEach(blog => {
blogs.forEach((blog) => {
const langs = blog.langs || ['en'];
langs.forEach(lang => {
langs.forEach((lang) => {
group[lang] = group[lang] || [];
group[lang].push(blog);
});
Expand Down
Loading

0 comments on commit 2586b49

Please sign in to comment.