Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7703261

Browse files
committed
setup typescript
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent046f461 commit7703261

File tree

5 files changed

+88
-2
lines changed

5 files changed

+88
-2
lines changed

‎.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
build
12
node_modules

‎.vscode/settings.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"source.organizeImports":false,
55
"source.fixAll":true
66
},
7-
"eslint.validate": ["javascript"],
7+
"eslint.validate": ["javascript","typescript"],
88
"files.exclude": {},
9-
"git.alwaysSignOff":true
9+
"git.alwaysSignOff":true,
10+
"typescript.tsdk":"./node_modules/typescript/lib"
1011
}

‎package-lock.json

Lines changed: 52 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,12 @@
2626
"ncp":"^2.0.0",
2727
"npc":"0.0.1",
2828
"simple-git":"^2.5.0"
29+
},
30+
"devDependencies": {
31+
"@types/inquirer":"^6.5.0",
32+
"@types/js-yaml":"^3.12.4",
33+
"@types/lodash":"^4.14.154",
34+
"@types/ncp":"^2.0.4",
35+
"typescript":"^3.9.3"
2936
}
3037
}

‎tsconfig.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"compilerOptions": {
3+
"module":"commonjs",
4+
"target":"es2018",
5+
"outDir":"build",
6+
"lib": ["es2018","dom"],
7+
"sourceMap":true,
8+
"rootDir":"src",
9+
"baseUrl":"src",
10+
"strict":true/* enable all strict type-checking options*/,
11+
/* Additional Checks*/
12+
"forceConsistentCasingInFileNames":true,
13+
"noImplicitReturns":true,
14+
"noImplicitThis":true,
15+
"noImplicitAny":true,
16+
"strictNullChecks":true,
17+
"suppressImplicitAnyIndexErrors":true,
18+
"noUnusedLocals":false,
19+
"experimentalDecorators":true,
20+
"emitDecoratorMetadata":true,
21+
"allowJs":true,
22+
"removeComments":true
23+
},
24+
"exclude": ["node_modules",".vscode","bin","build","test"]
25+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp