Skip to content

Commit 5882756

Browse files
committed
Refactor module
* Use tape instead of mocha; * Remove Duo support; * Refactor code style; * Update dependencies, dev-dependencies.
1 parent 76fd3fd commit 5882756

39 files changed

+1308
-1705
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ charset = utf-8
88
trim_trailing_whitespace = true
99
insert_final_newline = true
1010

11-
[*.{eslintrc,json,remarkrc,yml}]
11+
[*.{json,remarkrc,eslintrc,sh}]
1212
indent_size = 2
1313

1414
[*.md]

.eslintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
components/
21
coverage/
32
example.js
43
parse-latin.js

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
.DS_STORE
1+
.DS_Store
22
*.log
3-
components/
43
coverage/
54
node_modules/
65
parse-latin.js

.jscs.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
{
22
"excludeFiles": [
3-
"components/",
43
"coverage/",
54
"node_modules/",
65
"parse-latin.js",
76
"parse-latin.min.js"
87
],
9-
"preset": "yandex",
10-
"requireQuotedKeysInObjects": true,
11-
"disallowQuotedKeysInObjects": false,
8+
"preset": "crockford",
9+
"requireMultipleVarDecl": false,
10+
"requireVarDeclFirst": false,
11+
"disallowDanglingUnderscores": false,
12+
"disallowQuotedKeysInObjects": {
13+
"allExcept": [
14+
"reserved"
15+
]
16+
},
17+
"disallowKeywords": [
18+
"with"
19+
],
1220
"maximumLineLength": {
1321
"value": 79,
1422
"allExcept": [

.remarkignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.remarkrc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
{
22
"output": true,
33
"plugins": [
4+
"comment-config",
45
"lint",
56
"github",
6-
"comment-config",
7-
"usage",
8-
"slug",
9-
"validate-links"
7+
"validate-links",
8+
"usage"
109
],
1110
"settings": {
1211
"bullet": "*"

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
language: node_js
22
node_js:
3-
- '0.10'
43
- '0.11'
54
- '0.12'
65
- '4.0'
76
- '5.0'
7+
- '6.0'
88
sudo: false
9-
after_script: npm install codecov.io && cat ./coverage/lcov.info | codecov
9+
after_success:
10+
- bash <(curl -s https://codecov.io/bash)
1011
deploy:
1112
- provider: npm
1213
@@ -23,3 +24,4 @@ deploy:
2324
- "parse-latin.min.js"
2425
on:
2526
tags: true
27+
node: '6.0'

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(The MIT License)
22

3-
Copyright (c) 2014-2015 Titus Wormer <[email protected]>
3+
Copyright (c) 2014 Titus Wormer <[email protected]>
44

55
Permission is hereby granted, free of charge, to any person obtaining
66
a copy of this software and associated documentation files (the

component.json

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

example.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
// Dependencies:
22
var inspect = require('unist-util-inspect');
3-
var ParseLatin = require('./index.js');
4-
var latin = new ParseLatin();
3+
var Latin = require('./index.js');
54

6-
// Invoking `parse`:
7-
var ast = latin.parse('A simple sentence.');
5+
// Parse:
6+
var tree = new Latin().parse('A simple sentence.');
87

9-
// Yields:
10-
console.log('txt', inspect.noColor(ast));
8+
// Which, when inspecting, yields:
9+
console.log('txt', inspect.noColor(tree));

0 commit comments

Comments
 (0)