Skip to content
This repository was archived by the owner on Feb 16, 2021. It is now read-only.

Commit 1ce071f

Browse files
committed
Merge pull request #21 from gcanti/travis
add travis CI
2 parents 902ea68 + 6179833 commit 1ce071f

File tree

5 files changed

+19
-8
lines changed

5 files changed

+19
-8
lines changed

.eslintrc

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"extends": "eslint:recommended",
23
"env": {
34
"browser": true,
45
"node": true
@@ -7,9 +8,6 @@
78
"modules": true
89
},
910
"rules": {
10-
"new-cap": 0,
11-
"no-shadow": 0,
12-
"quotes": [2, "single"],
13-
"comma-dangle": "always"
11+
"semi": 1
1412
}
1513
}

.travis.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
language: node_js
2+
node_js:
3+
- "0.12"
4+
before_script:
5+
- export DISPLAY=:99.0
6+
- sh -e /etc/init.d/xvfb start

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
1212
**Note**: Gaps between patch versions are faulty/broken releases.
1313

14+
## v0.2.5
15+
16+
- **New Feature**
17+
- Added possibility to define patterns with regex flags (thanks @emiloberg)
18+
1419
## v0.2.4
1520

1621
- **New Feature**

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ var types = {
7575
return predicate ? t.subtype(util.Int, predicate) : util.Int;
7676
},
7777

78-
boolean: function (s) {
78+
boolean: function () {
7979
return t.Boolean;
8080
},
8181

package.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
{
22
"name": "tcomb-json-schema",
3-
"version": "0.2.4",
3+
"version": "0.2.5",
44
"description": "Transforms a JSON Schema to a tcomb type",
55
"main": "index.js",
66
"files": [
77
"index.js",
88
"util.js"
99
],
1010
"scripts": {
11-
"test": "mocha"
11+
"lint": "eslint index.js",
12+
"test": "npm run lint && mocha"
1213
},
1314
"repository": {
1415
"type": "git",
@@ -25,7 +26,8 @@
2526
"tcomb": "^2.2.0"
2627
},
2728
"devDependencies": {
28-
"eslint": "^1.1.0"
29+
"eslint": "1.10.3",
30+
"mocha": "2.4.5"
2931
},
3032
"tags": [
3133
"tcomb",

0 commit comments

Comments
 (0)