Skip to content

Commit ca4c6df

Browse files
committed
Add TypeScript
1 parent 770359a commit ca4c6df

File tree

6 files changed

+37
-2
lines changed

6 files changed

+37
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
2-
npm-debug.log
2+
npm-debug.log
3+
dist

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,15 @@
66
"types": "src/index.d.ts",
77
"author": "Marcin Chudy <marcinchudy94@gmail.com>",
88
"license": "MIT",
9-
"dependencies": {},
9+
"scripts": {
10+
"build": "tsc"
11+
},
1012
"repository": {
1113
"type": "git",
1214
"url": "git://github.com/mchudy/react-native-redux-devtools.git"
15+
},
16+
"dependencies": {},
17+
"devDependencies": {
18+
"typescript": "^3.1.1"
1319
}
1420
}

src/index.js

Whitespace-only changes.

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default 'index';

tsconfig.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"compilerOptions": {
3+
"jsx": "react",
4+
"target": "es5",
5+
"experimentalDecorators": true,
6+
"preserveConstEnums": true,
7+
"skipDefaultLibCheck": true,
8+
"skipLibCheck": true,
9+
"allowSyntheticDefaultImports": true,
10+
"sourceMap": false,
11+
"outDir": "dist",
12+
"rootDir": "src",
13+
"moduleResolution": "node",
14+
"declaration" : true,
15+
},
16+
"include": [
17+
"src/**/*"
18+
],
19+
"exclude": [
20+
"node_modules",
21+
"**/*.test.ts",
22+
"example"
23+
]
24+
}

yarn.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@
22
# yarn lockfile v1
33

44

5+
typescript@^3.1.1:
6+
version "3.1.1"
7+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.1.1.tgz#3362ba9dd1e482ebb2355b02dfe8bcd19a2c7c96"

0 commit comments

Comments
 (0)