diff options
| author | wabilin <[email protected]> | 2020-07-31 18:55:54 +0900 |
|---|---|---|
| committer | wabilin <[email protected]> | 2020-07-31 18:56:51 +0900 |
| commit | 70487792f84bcf1930cfb7cf7cbd48fc934b74b5 (patch) | |
| tree | 62d8a19325f408658a84bfb9c3f83f6b42113960 | |
| parent | install and init ts (diff) | |
| download | holo-schedule-70487792f84bcf1930cfb7cf7cbd48fc934b74b5.tar.xz holo-schedule-70487792f84bcf1930cfb7cf7cbd48fc934b74b5.zip | |
Hello typescript
| -rw-r--r-- | .gitignore | 3 | ||||
| -rw-r--r-- | package.json | 4 | ||||
| -rw-r--r-- | src/index.ts | 1 | ||||
| -rw-r--r-- | tsconfig.json | 5 | ||||
| -rw-r--r-- | yarn.lock | 5 |
5 files changed, 16 insertions, 2 deletions
@@ -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"] } @@ -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" |