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

feat(parser): add support for custom selfClosing tags #21

Closed
wants to merge 15 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,12 @@ root = true

[*]
charset = utf-8
indent_size = 4
indent_size = 2
end_of_line = lf
indent_style = space
trim_trailing_whitespace = true
insert_final_newline = true

[*.{bemjson.js,deps.js}]
indent_size = 4

[{bower,package}.json]
indent_size = 2

Expand Down
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @voischev @GitScrum @mrmlnc @michael-ciniawsky
29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
> ✏️ Briefly describe the issue you are experiencing (or the feature you want to see added to the plugin). Tell us what you were trying to do and what happened instead. Remember, this is _not_ a place to ask questions. For that, go to http://gitter.im/posthtml/posthtml

### `Details`

> ✏️ Describe in more detail the problem you have been experiencing, if necessary.

## `Error (Logs|Stacks)`

> 👉 Create a [gist](https://gist.github.com) which is a paste of your **full** logs, and link them here.

> ⚠️ Do **not** paste your full logs here (or at least hide them by using a `<details></details>` block), as it will make this issue long and hard to read! If you are reporting a bug, **always** include logs!

### `Reproduction (Code)`

> ⚠️ Please remember that, with sample code; it's easier to reproduce a bug and much faster to fix it.

> 🔗 Please refer to a simple code example.

```bash
$ git clone https://github.com/<user>/<sample>
```

### `Environment`

> ℹ️ Please provide information about your current environment.

|OS|node|npm/yarn|package|
|:-:|:--:|:-:|:------:|
|[name][version]|[version]|[version]|[version]|
55 changes: 55 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
### `Notable Changes`

> ✏️ Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue down below.

#### `Commit Message Summary (CHANGELOG)`

```
commit message body...
```

### `Type`

> ℹ️ What types of changes does your code introduce?

> 👉 _Put an `x` in the boxes that apply and delete all others_

- [ ] CI
- [ ] Fix
- [ ] Perf
- [ ] Docs
- [ ] Test
- [ ] Chore
- [ ] Style
- [ ] Build
- [ ] Feature
- [ ] Refactor

### `SemVer`

> ℹ️ What changes to the current `semver` range does your PR introduce?

> 👉 _Put an `x` in the boxes that apply and delete all others_

- [ ] Fix (:label: Patch)
- [ ] Feature (:label: Minor)
- [ ] Breaking Change (:label: Major)

### `Issues`

> ℹ️ What issue(s) (if any) are closed by your PR?

> 👉 _Replace `#1` with the issue number that applies and remove the ``` ` ```_

- Fixes `#1`

### `Checklist`

> ℹ️ You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. This is a reminder of what we are going to look for before merging your code.

> 👉 _Put an `x` in the boxes that apply and delete all others._

- [ ] Lint and unit tests pass with my changes
- [ ] I have added tests that prove my fix is effective/works
- [ ] I have added necessary documentation (if appropriate)
- [ ] Any dependent changes are merged and published in downstream modules
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# OS

.DS_Store
._*

# NODEJS
node_modules

npm-debug.log
node_modules

.nyc_output
coverage
61 changes: 0 additions & 61 deletions .jscsrc

This file was deleted.

2 changes: 0 additions & 2 deletions .jshintignore

This file was deleted.

8 changes: 0 additions & 8 deletions .jshintrc

This file was deleted.

10 changes: 5 additions & 5 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
node_modules/
test/
npm-debug.log
.editorconfig
.jscsrc
.jshintignore
.jshintrc

.nyc_output
test/
coverage/
node_modules/
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
15 changes: 6 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
sudo: false
language: node_js
node_js:
- "4.1"
- "0.12"
- "0.10"

env:
global:
- ISTANBUL_COVERAGE: yes
node_js:
- "stable"
- "lts/*"
- 6
- 4

after_success:
- npm i coveralls
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && echo "Coverage data was sent to coveralls!"
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(The MIT License)
License (MIT)

Copyright (c) 2015 Ivan Voischev <voischev.ivan@ya.ru>
Copyright (c) 2017 Ivan Voischev <voischev.ivan@ya.ru>

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
5 changes: 0 additions & 5 deletions MAINTAINERS

This file was deleted.

13 changes: 13 additions & 0 deletions PARSER.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<a name="parser"></a>

## parser(html, options) ⇒ <code>Array</code>
Parse HTML to PostHTML Tree

**Kind**: global function
**Returns**: <code>Array</code> - result

| Param | Type |
| --- | --- |
| html | <code>String</code> |
| options | <code>Object</code> |

Loading