setup typescript
This commit is contained in:
parent
24eba19957
commit
62bc623c12
4 changed files with 34 additions and 1 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -39,3 +39,6 @@ buck-out/
|
|||
\.buckd/
|
||||
android/app/libs
|
||||
android/keystores/debug.keystore
|
||||
|
||||
dist/
|
||||
typings/
|
||||
|
|
|
@ -3,13 +3,15 @@
|
|||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"start": "node node_modules/react-native/local-cli/cli.js start"
|
||||
"start": "node node_modules/react-native/local-cli/cli.js start",
|
||||
"build": "tsc"
|
||||
},
|
||||
"dependencies": {
|
||||
"immutable": "=3.8.1",
|
||||
"react": "=15.3.1",
|
||||
"react-native": "=0.33.0",
|
||||
"react-native-progress-bar": "=0.1.2",
|
||||
"typescript": "^1.8.10",
|
||||
"underscore": "=1.8.3",
|
||||
"zxcvbn": "=4.3.0"
|
||||
}
|
||||
|
|
19
tsconfig.json
Normal file
19
tsconfig.json
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "es6",
|
||||
"allowJs": true,
|
||||
"jsx": "react",
|
||||
"outDir": "dist",
|
||||
"rootDir": "src",
|
||||
"sourceMap": true,
|
||||
"noImplicitAny": false
|
||||
},
|
||||
"filesGlob": [
|
||||
"typings/**/*.d.ts",
|
||||
"src/**/*.ts",
|
||||
"src/**/*.tsx"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
]
|
||||
}
|
9
typings.json
Normal file
9
typings.json
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"name": "zxcvbn-app",
|
||||
"dependencies": {
|
||||
"immutable": "registry:npm/immutable#3.7.6+20160411060006"
|
||||
},
|
||||
"globalDependencies": {
|
||||
"react-native": "registry:dt/react-native#0.29.0+20160830141535"
|
||||
}
|
||||
}
|
Reference in a new issue