Skip to content

Commit b2ffb69

Browse files
authored
Merge pull request #79 from mendix/feat/ts-compile
Add config to compile TS
2 parents 18c750d + b84cd11 commit b2ffb69

File tree

3 files changed

+57
-3
lines changed

3 files changed

+57
-3
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,7 @@
1818
.github/
1919

2020
# Zips
21-
**/*.zip
21+
**/*.zip
22+
23+
# Modules
24+
node_modules

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
"url": "https://github.com/mendix/Atlas-UI-Framework/issues"
1919
},
2020
"homepage": "https://github.com/mendix/Atlas-UI-Framework#readme",
21-
"devDependencies": {},
21+
"devDependencies": {
22+
"@types/react-native": "^0.61.19",
23+
"react-native-device-info": "^5.5.3"
24+
},
2225
"dependencies": {}
23-
}
26+
}

tsconfig.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": "./",
4+
"module": "es2015",
5+
"target": "esnext",
6+
"typeRoots": [
7+
"./node_modules/@types"
8+
],
9+
"types": [
10+
"react-native",
11+
"react-native-device-info"
12+
],
13+
"paths": {
14+
"react-native": [
15+
"./node_modules/@types/react-native"
16+
],
17+
"react-native-device-info": [
18+
"./node_modules/react-native-device-info/lib/typescript"
19+
]
20+
},
21+
"lib": [
22+
"es2017"
23+
],
24+
"noEmitOnError": true,
25+
"sourceMap": false,
26+
"allowSyntheticDefaultImports": true,
27+
"esModuleInterop": true,
28+
"removeComments": false,
29+
"allowJs": true,
30+
"checkJs": true,
31+
"declaration": false,
32+
"noLib": false,
33+
"watch": false,
34+
"forceConsistentCasingInFileNames": true,
35+
"noFallthroughCasesInSwitch": true,
36+
"strict": true,
37+
"strictFunctionTypes": false,
38+
"skipLibCheck": true,
39+
"noUnusedLocals": true,
40+
"noUnusedParameters": true,
41+
"moduleResolution": "node",
42+
"outDir": "./styles/native/js",
43+
"newLine": "CRLF"
44+
},
45+
"include": [
46+
"./styles/native/**/*.ts"
47+
]
48+
}

0 commit comments

Comments
 (0)