Permalink
Browse files

Setup TypeScript compilation

  • Loading branch information...
Justin-Credible committed Aug 14, 2016
1 parent 4c0fede commit 839ab388b5b12ee0b722a8b71224e5fe47c735bf
Showing with 42 additions and 3 deletions.
  1. +4 −0 .gitignore
  2. +3 −0 .vscode/settings.json
  3. +18 −0 .vscode/tasks.json
  4. +2 −0 src/main.ts
  5. +10 −2 tsconfig.json
  6. +5 −1 typings.json
View
@@ -39,3 +39,7 @@ buck-out/
\.buckd/
android/app/libs
android/keystores/debug.keystore
+
+# TypeScript artifacts
+artifacts
+typings
View
@@ -0,0 +1,3 @@
+{
+ "typescript.tsdk": "node_modules/typescript/lib"
+}
View
@@ -0,0 +1,18 @@
+{
+ // See https://go.microsoft.com/fwlink/?LinkId=733558
+ // for the documentation about the tasks.json format
+ "version": "0.1.0",
+ "windows": {
+ "command": ".\\node_modules\\.bin\\tsc"
+ },
+ "linux": {
+ "command": "./node_modules/.bin/tsc"
+ },
+ "osx": {
+ "command": "./node_modules/.bin/tsc"
+ },
+ "isShellCommand": true,
+ "args": ["-p", "."],
+ "showOutput": "silent",
+ "problemMatcher": "$tsc"
+}
View
@@ -0,0 +1,2 @@
+
+console.log("Hello World!");
View
@@ -1,11 +1,19 @@
{
"compilerOptions": {
"module": "commonjs",
- "target": "es5",
+ "target": "es6",
+ "jsx": "react",
+ "outDir": "artifacts",
"noImplicitAny": false,
"sourceMap": false
},
+ "filesGlob": [
+ "typings/index.d.ts",
+ "src/**/*.ts",
+ "src/**/*.tsx"
+ ],
"exclude": [
- "node_modules"
+ "node_modules",
+ "artifacts"
]
}
View
@@ -1,4 +1,8 @@
{
"name": "SampleApp1",
- "dependencies": {}
+ "dependencies": {},
+ "globalDependencies": {
+ "react": "registry:dt/react#0.14.0+20160805125551",
+ "react-native": "registry:dt/react-native#0.29.0+20160728152643"
+ }
}

0 comments on commit 839ab38

Please sign in to comment.