Skip to content

Commit c30a092

Browse files
authored
Add misc files (#8)
Update `history` reference
1 parent 9819b4c commit c30a092

File tree

9 files changed

+109
-11
lines changed

9 files changed

+109
-11
lines changed

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
10+
[*.md]
11+
trim_trailing_whitespace = false

.gitignore

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,44 @@
1-
typings
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
6+
# Runtime data
7+
pids
8+
*.pid
9+
*.seed
10+
11+
# Directory for instrumented libs generated by jscoverage/JSCover
12+
lib-cov
13+
14+
# Coverage directory used by tools like istanbul
15+
coverage
16+
17+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
18+
.grunt
19+
20+
# node-waf configuration
21+
.lock-wscript
22+
23+
# Compiled binary addons (http://nodejs.org/api/addons.html)
24+
build/Release
25+
26+
# Dependency directory
27+
bower_components
28+
jspm_packages
29+
node_modules
30+
31+
# Optional npm cache directory
32+
.npm
33+
34+
# Optional REPL history
35+
.node_repl_history
36+
37+
# webstorm
38+
.idea
39+
40+
# typings
41+
typings
42+
43+
# output folder
44+
out

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
language: node_js
2+
3+
notifications:
4+
email:
5+
on_success: never
6+
on_failure: change
7+
8+
node_js:
9+
- "stable"
10+
11+
script:
12+
- npm run lint+build+test

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Typings-React-Router
1+
# Typings-React-Router
22

33
This is typings for thee [react-router](https://github.com/reactjs/react-router)
44

package.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"private": true,
3+
"scripts": {
4+
"build": "echo building... && typings bundle -o out/index.d.ts",
5+
"lint": "echo linting... && tslint \"**/*.ts\" -e \"source/**\" -e \"source-test/**\" -e \"out/**\" -e \"node_modules/**\" -e \"typings/**\"",
6+
"browser-test": "echo running browser tests... && echo no browser test",
7+
"source-test": "echo running source tests... && echo no source test",
8+
"test": "echo running server tests... && cd test && ts-node ../node_modules/blue-tape/bin/blue-tape \"**/*.ts\" | tap-spec",
9+
"watch": "onchange -w \"**/*.ts\" -i -e \"out/**\" -- npm -s run build+test",
10+
"publish": "npm -s run lint+build+test && echo please publish to typings/registry",
11+
"all-tests": "npm test",
12+
"build+test": "npm run build && npm run all-tests",
13+
"lint+build+test": "npm run lint && npm run build+test",
14+
"prepublish": "typings install"
15+
},
16+
"devDependencies": {
17+
"blue-tape": "^0.2.0",
18+
"jspm": "^0.16.42",
19+
"onchange": "^2.5.0",
20+
"stream": "0.0.2",
21+
"tap-spec": "^4.1.1",
22+
"tape-run": "^2.1.4",
23+
"ts-node": "^1.2.2",
24+
"tslint": "^3.14.0",
25+
"tslint-config-typings": "^0.2.3",
26+
"typings": "^1.3.2"
27+
}
28+
}

react-router.d.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
/// <reference path="typings/main.d.ts" />
1+
import * as React from 'react';
2+
import {LocationDescriptor, Query, Location, History, HistoryOptions, CreateHistory, BasenameOptions, QueryOptions} from 'history';
23

3-
import * as React from "react";
4-
import {LocationDescriptor, Query, Location, History, HistoryOptions, CreateHistory, BasenameOptions, QueryOptions} from "history";
5-
6-
declare module ReactRouter {
4+
declare namespace ReactRouter {
75

86
type RouteConfig = Route | PlainRoute;
97

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
"target": "es6",
44
"module": "commonjs",
55
"jsx": "react",
6-
"allowSyntheticDefaultImports": true,
76
"noEmit": true,
87
"noImplicitAny": true
98
},
109
"exclude": [
11-
"typings"
10+
"node_modules",
11+
"out"
1212
]
1313
}

tslint.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "tslint-config-typings"
3+
}

typings.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@
33
"main": "react-router.d.ts",
44
"version": "2.4.0",
55
"dependencies": {
6-
"history": "github:andrew-w-ross/typings-history"
6+
"history": "registry:npm/history#2.0.0+20160607172317"
7+
},
8+
"devDependencies": {
9+
"blue-tape": "registry:npm/blue-tape#0.2.0+20160723033700"
710
},
8-
"devDependencies": {},
911
"globalDependencies": {
1012
"react": "github:DefinitelyTyped/DefinitelyTyped/react/react.d.ts#f407264835650f5f38d4bb2c515a79e7a835916b"
1113
},
1214
"globalDevDependencies": {
15+
"node": "registry:env/node#6.0.0+20160723033700",
1316
"react-dom": "github:DefinitelyTyped/DefinitelyTyped/react/react-dom.d.ts#ca5bfe76d2d9bf6852cbc712d9f3e0047c93486e"
1417
}
1518
}

0 commit comments

Comments
 (0)