aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwabilin <[email protected]>2020-07-31 18:55:54 +0900
committerwabilin <[email protected]>2020-07-31 18:56:51 +0900
commit70487792f84bcf1930cfb7cf7cbd48fc934b74b5 (patch)
tree62d8a19325f408658a84bfb9c3f83f6b42113960
parentinstall and init ts (diff)
downloadholo-schedule-70487792f84bcf1930cfb7cf7cbd48fc934b74b5.tar.xz
holo-schedule-70487792f84bcf1930cfb7cf7cbd48fc934b74b5.zip
Hello typescript
-rw-r--r--.gitignore3
-rw-r--r--package.json4
-rw-r--r--src/index.ts1
-rw-r--r--tsconfig.json5
-rw-r--r--yarn.lock5
5 files changed, 16 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 9cdd1da..42ce3a0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -118,3 +118,6 @@ dist
# editor
.vscode
+
+# dist
+/lib
diff --git a/package.json b/package.json
index f49f15f..0008480 100644
--- a/package.json
+++ b/package.json
@@ -7,6 +7,10 @@
"license": "MIT",
"private": false,
"devDependencies": {
+ "@types/node": "^14.0.27",
"typescript": "^3.9.7"
+ },
+ "scripts": {
+ "build": "tsc"
}
}
diff --git a/src/index.ts b/src/index.ts
new file mode 100644
index 0000000..809eab1
--- /dev/null
+++ b/src/index.ts
@@ -0,0 +1 @@
+export const foo = () => 'foo'
diff --git a/tsconfig.json b/tsconfig.json
index c9f603c..6d7cffd 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -14,7 +14,7 @@
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
// "sourceMap": true, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
- // "outDir": "./", /* Redirect output structure to the directory. */
+ "outDir": "./lib", /* Redirect output structure to the directory. */
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
// "composite": true, /* Enable project compilation */
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
@@ -65,5 +65,6 @@
/* Advanced Options */
"skipLibCheck": true, /* Skip type checking of declaration files. */
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
- }
+ },
+ "include": ["src"]
}
diff --git a/yarn.lock b/yarn.lock
index 7d57386..5a9f3ed 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2,6 +2,11 @@
# yarn lockfile v1
+"@types/node@^14.0.27":
+ version "14.0.27"
+ resolved "https://registry.yarnpkg.com/@types/node/-/node-14.0.27.tgz#a151873af5a5e851b51b3b065c9e63390a9e0eb1"
+ integrity sha512-kVrqXhbclHNHGu9ztnAwSncIgJv/FaxmzXJvGXNdcCpV1b8u1/Mi6z6m0vwy0LzKeXFTPLH0NzwmoJ3fNCIq0g==
+
typescript@^3.9.7:
version "3.9.7"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.7.tgz#98d600a5ebdc38f40cb277522f12dc800e9e25fa"