Skip to content

Commit 89ce36f

Browse files
committed
Refactor api for retext@1.0.0
1 parent 61abeaf commit 89ce36f

19 files changed

+298760
-447
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 4
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.{json,mdastrc,eslintrc,sh}]
12+
indent_size = 2
13+
14+
[*.md]
15+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
build/
2+
components/
3+
coverage/
4+
build.js
5+
retext-pos.js
6+
retext-pos.min.js

.eslintrc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
2+
"extends": "eslint:recommended",
23
"env": {
3-
"node": true,
4-
"browser": true
4+
"browser": true,
5+
"node": true
56
},
67
"rules": {
78
"quotes": [2, "single"]

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
bower_components/
44
build/
55
components/
6-
coverage/
76
node_modules/
7+
coverage/
8+
build.js

.jscs.json

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,27 @@
11
{
2-
"plugins": [
3-
"jscs-jsdoc"
2+
"excludeFiles": [
3+
"build/",
4+
"components/",
5+
"coverage/",
6+
"node_modules/",
7+
"build.js",
8+
"retext-pos.js",
9+
"retext-pos.min.js"
410
],
511
"jsDoc": {
612
"checkAnnotations": "jsdoc3",
713
"checkParamNames": true,
8-
"requireParamTypes": true,
14+
"checkRedundantAccess": true,
915
"checkRedundantParams": true,
10-
"checkReturnTypes": true,
1116
"checkRedundantReturns": true,
12-
"requireReturnTypes": true,
17+
"checkReturnTypes": true,
1318
"checkTypes": "strictNativeCase",
14-
"checkRedundantAccess": true,
1519
"enforceExistence": true,
16-
"requireHyphenBeforeDescription": true
20+
"requireHyphenBeforeDescription": true,
21+
"requireNewlineAfterDescription": true,
22+
"requireParamTypes": true,
23+
"requireParamDescription": true,
24+
"requireReturnTypes": true
1725
},
1826
"requireCurlyBraces": [
1927
"if",
@@ -38,6 +46,9 @@
3846
"requireSpaceBeforeBlockStatements": true,
3947
"requireParenthesesAroundIIFE": true,
4048
"requireSpacesInConditionalExpression": true,
49+
"requireSpacesInFunctionExpression": {
50+
"beforeOpeningCurlyBrace": true
51+
},
4152
"requireSpacesInAnonymousFunctionExpression": {
4253
"beforeOpeningRoundBrace": true,
4354
"beforeOpeningCurlyBrace": true
@@ -46,12 +57,7 @@
4657
"beforeOpeningRoundBrace": true,
4758
"beforeOpeningCurlyBrace": true
4859
},
49-
"requireSpacesInFunctionExpression": {
50-
"beforeOpeningCurlyBrace": true
51-
},
52-
"requireMultipleVarDecl": true,
5360
"requireBlocksOnNewline": true,
54-
"disallowPaddingNewlinesInBlocks": true,
5561
"disallowEmptyBlocks": true,
5662
"disallowSpacesInsideObjectBrackets": true,
5763
"disallowSpacesInsideArrayBrackets": true,
@@ -135,10 +141,5 @@
135141
"requireCapitalizedConstructors": true,
136142
"safeContextKeyword": "self",
137143
"requireDotNotation": true,
138-
"disallowYodaConditions": true,
139-
"validateJSDoc": {
140-
"checkParamNames": true,
141-
"checkRedundantParams": true,
142-
"requireParamTypes": true
143-
}
144+
"disallowYodaConditions": true
144145
}

.mdastignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
components/

.mdastrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"output": true,
3+
"plugins": [
4+
"lint",
5+
"github",
6+
"comment-config",
7+
"slug",
8+
"validate-links"
9+
],
10+
"settings": {
11+
"bullet": "*"
12+
}
13+
}

.npmignore

Lines changed: 0 additions & 12 deletions
This file was deleted.

.travis.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@ script: npm run-script test-travis
33
node_js:
44
- '0.10'
55
- '0.11'
6-
after_script: npm install coveralls@2.10.0 && cat ./coverage/lcov.info | coveralls
7-
deploy:
8-
provider: npm
9-
email: tituswormer@gmail.com
10-
api_key:
11-
secure: PbT/C5VB+hTWibD0xsYQOFo5wKe9UK2stjHVQihKh7QfUYkKZc3SXdZmNceT+tSXyaSrbNRfpZlT7OGDcwtVkWsoSJqd6zFegClXrMoFd72lOChouvXnMCYxITc8z0wGkt40Gr+GvjU9EDZrdV/OtaDkJ18zJj+8zuMwjLqLk+c=
12-
on:
13-
repo: wooorm/retext-pos
6+
- '0.12'
7+
- iojs
8+
sudo: false
9+
after_script: npm install codecov.io && cat ./coverage/lcov.info | codecov

History.md

Lines changed: 85 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,110 +1,129 @@
1+
<!--mdast setext-->
2+
3+
<!--lint disable no-multiple-toplevel-headings-->
4+
5+
<!--lint disable maximum-line-length-->
16

27
0.2.1 / 2015-01-18
38
==================
49

5-
* Update `.gitignore` for bower
6-
* Update `.npmignore` for bower
7-
* Add Bower as an installation method in `Readme.md`
8-
* Add `bower.json`
9-
* Refactor `index.js` for updated installation methods
10-
* Update `.npmignore` for component
11-
* Update `.gitignore` for component
12-
* Add Component as an instalation method in `Readme.md`
13-
* Add `component.json`
10+
* Update changelog for 0.2.1 ([dc893af](https://github.com/wooorm/retext-pos/commit/dc893af))
11+
* Update `.gitignore` for bower ([9295897](https://github.com/wooorm/retext-pos/commit/9295897))
12+
* Update `.npmignore` for bower ([379fa02](https://github.com/wooorm/retext-pos/commit/379fa02))
13+
* Add Bower as an installation method in `Readme.md` ([03d3229](https://github.com/wooorm/retext-pos/commit/03d3229))
14+
* Add `bower.json` ([558ddb3](https://github.com/wooorm/retext-pos/commit/558ddb3))
15+
* Refactor `index.js` for updated installation methods ([a64e3a1](https://github.com/wooorm/retext-pos/commit/a64e3a1))
16+
* Update `.npmignore` for component ([6d27ac7](https://github.com/wooorm/retext-pos/commit/6d27ac7))
17+
* Update `.gitignore` for component ([94fbc76](https://github.com/wooorm/retext-pos/commit/94fbc76))
18+
* Add Component as an instalation method in `Readme.md` ([b426136](https://github.com/wooorm/retext-pos/commit/b426136))
19+
* Add `component.json` ([3fa175b](https://github.com/wooorm/retext-pos/commit/3fa175b))
1420

1521
0.2.0 / 2015-01-14
1622
==================
1723

18-
* Update copyright notice in `LICENSE` to include 2015
19-
* Add link to whole license in `Readme.md`
20-
* Add Duo as an instalation method in `Readme.md`
21-
* Add support for duo
22-
* Add links to installation methods in `Readme.md`
23-
* Refactor fences code blocks in `Readme.md`
24-
* Refactor to adhere to strict jsdoc style
25-
* Add jscs-jsdoc configuration to `.jscs.json`
26-
* Add jscs-jsdoc as a dev-dependency
27-
* Refactor npm scripts for changes in npm
28-
* Update eslint
29-
* Refactor to use generic `changeinside` in new retext
30-
* Update retext to stable release
24+
* Update changelog for 0.2.0 ([68576f4](https://github.com/wooorm/retext-pos/commit/68576f4))
25+
* Update copyright notice in `LICENSE` to include 2015 ([0cc8b77](https://github.com/wooorm/retext-pos/commit/0cc8b77))
26+
* Add link to whole license in `Readme.md` ([34512ba](https://github.com/wooorm/retext-pos/commit/34512ba))
27+
* Add Duo as an instalation method in `Readme.md` ([911d2c7](https://github.com/wooorm/retext-pos/commit/911d2c7))
28+
* Add support for duo ([d7a8d1e](https://github.com/wooorm/retext-pos/commit/d7a8d1e))
29+
* Add links to installation methods in `Readme.md` ([e91bf27](https://github.com/wooorm/retext-pos/commit/e91bf27))
30+
* Refactor fences code blocks in `Readme.md` ([60bc007](https://github.com/wooorm/retext-pos/commit/60bc007))
31+
* Refactor to adhere to strict jsdoc style ([3a18a69](https://github.com/wooorm/retext-pos/commit/3a18a69))
32+
* Add jscs-jsdoc configuration to `.jscs.json` ([958cfd6](https://github.com/wooorm/retext-pos/commit/958cfd6))
33+
* Add jscs-jsdoc as a dev-dependency ([2e80783](https://github.com/wooorm/retext-pos/commit/2e80783))
34+
* Refactor npm scripts for changes in npm ([43fcf8b](https://github.com/wooorm/retext-pos/commit/43fcf8b))
35+
* Update eslint ([889d215](https://github.com/wooorm/retext-pos/commit/889d215))
36+
* Refactor to use generic `changeinside` in new retext ([deb2937](https://github.com/wooorm/retext-pos/commit/deb2937))
37+
* Update retext to stable release ([1bf7542](https://github.com/wooorm/retext-pos/commit/1bf7542))
3138

3239
0.1.9 / 2014-12-06
3340
==================
3441

35-
* Update retext
36-
* Add benchmark
37-
* Add rewording to docs in `Readme.md`
38-
* Refactor npm script targets in `package.json`
39-
* Update eslint
40-
* Add link to personal website to copyright in `Readme.md`
42+
* Update changelog for 0.1.9 ([3f72014](https://github.com/wooorm/retext-pos/commit/3f72014))
43+
* Update retext ([e7d11f0](https://github.com/wooorm/retext-pos/commit/e7d11f0))
44+
* Add benchmark ([b96a908](https://github.com/wooorm/retext-pos/commit/b96a908))
45+
* Add rewording to docs in `Readme.md` ([7473631](https://github.com/wooorm/retext-pos/commit/7473631))
46+
* Refactor npm script targets in `package.json` ([1a5a5ee](https://github.com/wooorm/retext-pos/commit/1a5a5ee))
47+
* Update eslint ([5a25b4e](https://github.com/wooorm/retext-pos/commit/5a25b4e))
48+
* Add link to personal website to copyright in `Readme.md` ([82b51e2](https://github.com/wooorm/retext-pos/commit/82b51e2))
4149

4250
0.1.8 / 2014-11-21
4351
==================
4452

45-
* Fix missing variable declaration in `test.js`
46-
* Refactor `Readme.md`
47-
* Add retext-inspect to dev-dependencies
48-
* Add flat badges to `Readme.md`
49-
* Fix incorrect executive rights on `test.js`
50-
* Refactor npm script targets in `package.json`
51-
* Add missing `.eslintrc` file
52-
* Update retext
53+
* Update changelog for 0.1.8 ([1a5cd7c](https://github.com/wooorm/retext-pos/commit/1a5cd7c))
54+
* Fix missing variable declaration in `test.js` ([410a686](https://github.com/wooorm/retext-pos/commit/410a686))
55+
* Refactor `Readme.md` ([6644541](https://github.com/wooorm/retext-pos/commit/6644541))
56+
* Add retext-inspect to dev-dependencies ([a205367](https://github.com/wooorm/retext-pos/commit/a205367))
57+
* Add flat badges to `Readme.md` ([b3cf7f6](https://github.com/wooorm/retext-pos/commit/b3cf7f6))
58+
* Fix incorrect executive rights on `test.js` ([d244879](https://github.com/wooorm/retext-pos/commit/d244879))
59+
* Refactor npm script targets in `package.json` ([9ce5b0e](https://github.com/wooorm/retext-pos/commit/9ce5b0e))
60+
* Add missing `.eslintrc` file ([f025dd0](https://github.com/wooorm/retext-pos/commit/f025dd0))
61+
* Update retext ([fdb2077](https://github.com/wooorm/retext-pos/commit/fdb2077))
5362

5463
0.1.7 / 2014-10-27
5564
==================
5665

57-
* Add `.eslintrc`
58-
* Refactor to disallow space after object keys
59-
* Refactor for changes in retext
60-
* Update eslint, mocha, retext, retext-visit, retext-content
66+
* Update changelog for 0.1.7 ([3c33ef5](https://github.com/wooorm/retext-pos/commit/3c33ef5))
67+
* Add `.eslintrc` ([244b8cb](https://github.com/wooorm/retext-pos/commit/244b8cb))
68+
* Refactor to disallow space after object keys ([ce6de65](https://github.com/wooorm/retext-pos/commit/ce6de65))
69+
* Refactor for changes in retext ([35a0077](https://github.com/wooorm/retext-pos/commit/35a0077))
70+
* Update eslint, mocha, retext, retext-visit, retext-content ([55cecfe](https://github.com/wooorm/retext-pos/commit/55cecfe))
6171

6272
0.1.6 / 2014-10-21
6373
==================
6474

65-
* Refactor test
66-
* Refactor .jscs.json
67-
* Update retext
75+
* Update changelog for 0.1.6 ([4798952](https://github.com/wooorm/retext-pos/commit/4798952))
76+
* Refactor test ([cf119ec](https://github.com/wooorm/retext-pos/commit/cf119ec))
77+
* Refactor .jscs.json ([51e4a87](https://github.com/wooorm/retext-pos/commit/51e4a87))
78+
* Update retext ([04fec58](https://github.com/wooorm/retext-pos/commit/04fec58))
6879

6980
0.1.5 / 2014-10-14
7081
==================
7182

72-
* Fix test for retext-visit@0.2.0
83+
* Update changelog for 0.1.5 ([155a14d](https://github.com/wooorm/retext-pos/commit/155a14d))
84+
* Fix test for retext-visit@0.2.0 ([5445602](https://github.com/wooorm/retext-pos/commit/5445602))
7385

7486
0.1.4 / 2014-10-14
7587
==================
7688

77-
* Update retext, retext-visit
78-
* Update .gitignore .npmignore
79-
* Move spec to test.js
89+
* Update changelog for 0.1.4 ([e7925e2](https://github.com/wooorm/retext-pos/commit/e7925e2))
90+
* Update retext, retext-visit ([ef32908](https://github.com/wooorm/retext-pos/commit/ef32908))
91+
* Update .gitignore .npmignore ([c7d393e](https://github.com/wooorm/retext-pos/commit/c7d393e))
92+
* Move spec to test.js ([b991ac5](https://github.com/wooorm/retext-pos/commit/b991ac5))
8093

8194
0.1.3 / 2014-09-25
8295
==================
8396

84-
* Refactor Readme.md
85-
* Refactor API
86-
* Add npm deployment to travis
87-
* Remove `npm update` from travis
88-
* Remove browser test
89-
* Update .gitignore, .npmignore
90-
* Update Installation in docs
91-
* Fix property order in package.json
92-
* Update copyright in Readme.md
93-
* Remove testling
94-
* Refactor spec
95-
* Add retext-content as a dev-dependency
96-
* Update eslint, retext
97+
* Update changelog for 0.1.3 ([6173dac](https://github.com/wooorm/retext-pos/commit/6173dac))
98+
* Refactor Readme.md ([d39da1f](https://github.com/wooorm/retext-pos/commit/d39da1f))
99+
* Refactor API ([aca12de](https://github.com/wooorm/retext-pos/commit/aca12de))
100+
* Add npm deployment to travis ([8d0d4f6](https://github.com/wooorm/retext-pos/commit/8d0d4f6))
101+
* Remove `npm update` from travis ([c917ad4](https://github.com/wooorm/retext-pos/commit/c917ad4))
102+
* Remove browser test ([e2a23fc](https://github.com/wooorm/retext-pos/commit/e2a23fc))
103+
* Update .gitignore, .npmignore ([58f089c](https://github.com/wooorm/retext-pos/commit/58f089c))
104+
* Update Installation in docs ([469df29](https://github.com/wooorm/retext-pos/commit/469df29))
105+
* Fix property order in package.json ([dedc6ec](https://github.com/wooorm/retext-pos/commit/dedc6ec))
106+
* Update copyright in Readme.md ([4d2eb77](https://github.com/wooorm/retext-pos/commit/4d2eb77))
107+
* Remove testling ([6c5c1e2](https://github.com/wooorm/retext-pos/commit/6c5c1e2))
108+
* Refactor spec ([8655148](https://github.com/wooorm/retext-pos/commit/8655148))
109+
* Add retext-content as a dev-dependency ([0c3f439](https://github.com/wooorm/retext-pos/commit/0c3f439))
110+
* Update eslint, retext ([a40f409](https://github.com/wooorm/retext-pos/commit/a40f409))
97111

98112
0.1.2 / 2014-07-31
99113
==================
100114

101-
* Fix a bug where on remove a parent would not recalculate (fixes #2)
115+
* Update changelog for 0.1.2 ([4b0ee36](https://github.com/wooorm/retext-pos/commit/4b0ee36))
116+
* Fix a bug where on remove a parent would not recalculate (fixes [#2](https://github.com/wooorm/retext-pos/issues/2)) ([d38ec14](https://github.com/wooorm/retext-pos/commit/d38ec14))
102117

103118
0.1.1 / 2014-07-24
104119
==================
105120

106-
* Update usage example with new sample text
107-
* Fixed awareness of surrounding words
108-
* Update mocha to 1.21.0
109-
* Add retext as a peer dependency
110-
* Add spec/browser.spec.js to gitignore
121+
* Update changelog for 0.1.1 ([1935a23](https://github.com/wooorm/retext-pos/commit/1935a23))
122+
* Update usage example with new sample text ([ef5b29f](https://github.com/wooorm/retext-pos/commit/ef5b29f))
123+
* Fixed awareness of surrounding words ([b92cde1](https://github.com/wooorm/retext-pos/commit/b92cde1))
124+
* Update mocha to 1.21.0 ([e026a7c](https://github.com/wooorm/retext-pos/commit/e026a7c))
125+
* Add retext as a peer dependency ([d48f778](https://github.com/wooorm/retext-pos/commit/d48f778))
126+
* Add spec/browser.spec.js to gitignore ([8a85552](https://github.com/wooorm/retext-pos/commit/8a85552))
127+
128+
0.0.1 / 2014-07-15
129+
==================

0 commit comments

Comments
 (0)