Skip to content

Commit e2f1d0b

Browse files
committed
Refactor project
1 parent 377ce94 commit e2f1d0b

20 files changed

+328
-236
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,svg,mdastrc,eslintrc}]
12+
indent_size = 2
13+
14+
[*.md]
15+
trim_trailing_whitespace = false

.eslintignore

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

.eslintrc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
2-
"env": {
3-
"node": true,
4-
"browser": true
5-
},
2+
"extends": "eslint:recommended",
63
"rules": {
74
"quotes": [2, "single"]
85
}

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.DS_Store
22
*.log
3-
bower_components/
43
build/
54
components/
6-
node_modules/
75
coverage/
6+
node_modules/
7+
build.js

.jscs.json

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,28 @@
11
{
2-
"plugins": [
3-
"jscs-jsdoc"
2+
"excludeFiles": [
3+
"build/",
4+
"components/",
5+
"coverage/",
6+
"node_modules/",
7+
"build.js",
8+
"example.js",
9+
"nlcst-to-string.js",
10+
"nlcst-to-string.min.js"
411
],
512
"jsDoc": {
613
"checkAnnotations": "jsdoc3",
714
"checkParamNames": true,
8-
"requireParamTypes": true,
15+
"checkRedundantAccess": true,
916
"checkRedundantParams": true,
10-
"checkReturnTypes": true,
1117
"checkRedundantReturns": true,
12-
"requireReturnTypes": true,
18+
"checkReturnTypes": true,
1319
"checkTypes": "strictNativeCase",
14-
"checkRedundantAccess": true,
1520
"enforceExistence": true,
16-
"requireHyphenBeforeDescription": true
21+
"requireHyphenBeforeDescription": true,
22+
"requireNewlineAfterDescription": true,
23+
"requireParamTypes": true,
24+
"requireParamDescription": true,
25+
"requireReturnTypes": true
1726
},
1827
"requireCurlyBraces": [
1928
"if",
@@ -38,6 +47,9 @@
3847
"requireSpaceBeforeBlockStatements": true,
3948
"requireParenthesesAroundIIFE": true,
4049
"requireSpacesInConditionalExpression": true,
50+
"requireSpacesInFunctionExpression": {
51+
"beforeOpeningCurlyBrace": true
52+
},
4153
"requireSpacesInAnonymousFunctionExpression": {
4254
"beforeOpeningRoundBrace": true,
4355
"beforeOpeningCurlyBrace": true
@@ -46,12 +58,7 @@
4658
"beforeOpeningRoundBrace": true,
4759
"beforeOpeningCurlyBrace": true
4860
},
49-
"requireSpacesInFunctionExpression": {
50-
"beforeOpeningCurlyBrace": true
51-
},
52-
"requireMultipleVarDecl": true,
5361
"requireBlocksOnNewline": true,
54-
"disallowPaddingNewlinesInBlocks": true,
5562
"disallowEmptyBlocks": true,
5663
"disallowSpacesInsideObjectBrackets": true,
5764
"disallowSpacesInsideArrayBrackets": true,
@@ -131,14 +138,8 @@
131138
"else"
132139
],
133140
"requireLineFeedAtFileEnd": true,
134-
"maximumLineLength": 78,
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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Dependencies.
2+
components/

.mdastrc

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

.npmignore

Lines changed: 0 additions & 11 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 [email protected] && cat ./coverage/lcov.info | coveralls
7-
deploy:
8-
provider: npm
9-
10-
api_key:
11-
secure: gIQo++iWR1Lm9hmlCKETx5aTOwQW5wNJGc+xuJbRSsvUE6DQkxXLKZ0eWRyWWc8IyVArV+Nc/4AdeCtPmu6Mlp465gH9/ZzgouqI+1ygE0oFojpJP95I7/KHA3YILBRhaNZDuY+tkk9UzmaGSby6yOz1MoDZHzPEm2Uet/LtxrA=
12-
on:
13-
repo: wooorm/nlcst-to-string
6+
- '0.12'
7+
- iojs
8+
sudo: false
9+
after_script: npm install codecov.io && cat ./coverage/lcov.info | codecov

History.md

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

Readme.md

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

bower.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"name": "nlcst-to-string",
3-
"main": "index.js",
4-
"description": "Transform a Natural Language Concrete Syntax Tree (NLCST) node into a string",
3+
"main": "nlcst-to-string.js",
4+
"description": "Transform an NLCST node into a string",
55
"license": "MIT",
66
"keywords": [
77
"nlcst",
8+
"retext",
89
"to",
910
"string"
1011
],
@@ -23,8 +24,11 @@
2324
"components/",
2425
"coverage/",
2526
"node_modules/",
27+
"build.js",
28+
"example.js",
29+
"index.js",
30+
"test.js",
2631
"component.json",
27-
"package.json",
28-
"test.js"
32+
"package.json"
2933
]
3034
}

component.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
{
22
"name": "nlcst-to-string",
3-
"version": "0.1.5",
4-
"description": "Transform a Natural Language Concrete Syntax Tree (NLCST) node into a string",
3+
"version": "1.0.0",
4+
"description": "Transform an NLCST node into a string",
55
"license": "MIT",
66
"keywords": [
77
"nlcst",
8+
"retext",
89
"to",
910
"string"
1011
],
1112
"repository": "wooorm/nlcst-to-string",
12-
"scripts" : [
13+
"scripts": [
1314
"index.js"
1415
]
1516
}

history.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<!--mdast setext-->
2+
3+
<!--lint disable no-multiple-toplevel-headings-->
4+
5+
0.1.5 / 2015-01-18
6+
==================
7+
8+
* Update copyright notice in `LICENSE` to include 2015 ([b8ab750](https://github.com/wooorm/nlcst-to-string/commit/b8ab750))
9+
* Add links to installation methods in `Readme.md` ([a816354](https://github.com/wooorm/nlcst-to-string/commit/a816354))
10+
* Refactor npm scripts for changes in npm ([2072ebf](https://github.com/wooorm/nlcst-to-string/commit/2072ebf))
11+
12+
0.1.4 / 2014-12-09
13+
==================
14+
15+
* Fix to be more forgiving when stringifying ([1f446f8](https://github.com/wooorm/nlcst-to-string/commit/1f446f8))
16+
17+
0.1.3 / 2014-12-05
18+
==================
19+
20+
* Refactor npm script targets in `package.json` ([21c92fa](https://github.com/wooorm/nlcst-to-string/commit/21c92fa))
21+
* Add link to personal website to copyright in `Readme.md` ([06e7cc6](https://github.com/wooorm/nlcst-to-string/commit/06e7cc6))
22+
* Fix incorrect executive rights on `test.js` ([a4c84e8](https://github.com/wooorm/nlcst-to-string/commit/a4c84e8))
23+
24+
0.1.2 / 2014-11-06
25+
==================
26+
27+
* Refactor test ([c0cfbc3](https://github.com/wooorm/nlcst-to-string/commit/c0cfbc3))
28+
* Refactor npm script target order in `package.json` ([db0e147](https://github.com/wooorm/nlcst-to-string/commit/db0e147))
29+
30+
0.1.1 / 2014-10-20
31+
==================
32+
33+
* Update .gitignore, .npmignore, bower ignore ([15bb72e](https://github.com/wooorm/nlcst-to-string/commit/15bb72e))
34+
35+
0.1.0 / 2014-10-07
36+
==================
37+
38+
* Add mention of NLCST to Readme.md ([f3246b6](https://github.com/wooorm/nlcst-to-string/commit/f3246b6))

0 commit comments

Comments
 (0)