forked from 4ian/GDevelop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
55 lines (55 loc) · 1.87 KB
/
tsconfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
// Note that while we use TypeScript to type the codebase (GDJS game engine
// and extension), we use esbuild to compile from TypeScript to JavaScript almost instantly.
// See `GDJS/scripts/build.js`.
"compilerOptions": {
"noEmit": true,
"allowJs": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noFallthroughCasesInSwitch": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"strictPropertyInitialization": true,
"skipLibCheck": true,
// Not used (as we don't compile with tsc), but necessary for iterating on Map/Set.
"downlevelIteration": true,
// Required by PixiJS, for importing 3rd-party dependencies like EventEmitter3.
"esModuleInterop": true,
// Required by PixiJS, loaders needs this to use the more strict mini-signal types.
"paths": {
"mini-signals": [
"GDJS/node_modules/resource-loader/typings/mini-signals.d.ts"
]
},
"baseUrl": "./",
"lib": ["DOM", "ES5", "ScriptHost", "ES2015.Iterable", "ES2015.Promise"],
"typeRoots": ["GDJS/node_modules/@types/"],
// JSX syntax for lightweight rendering in the game engine:
"jsx": "react",
"jsxFactory": "h",
"jsxFragmentFactory": "Fragment"
},
"include": [
"GDevelop.js/types.d.ts",
"GDJS/Runtime/**/*",
"Extensions/**/*.js",
"Extensions/**/*.ts",
"GDJS/tests/tests/**/*.js",
"GDJS/tests/tests-utils/**/*.js",
"GDJS/tests/benchmarks/**/*.js"
],
// Exclude pre-built js code
"exclude": [
"GDJS/Runtime/pixi-renderers/pixi.js",
"GDJS/Runtime/Cordova",
"GDJS/Runtime/Electron",
"GDJS/Runtime/FacebookInstantGames",
"GDJS/Runtime/libs/CocoonJS",
"Extensions/Effects/pixi-filters/filter-alpha.js",
"SharedLibs/TileMapHelper/**/*",
"Extensions/Spine/pixi-spine/pixi-spine.js",
"Extensions/P2P/A_peer.js",
"Extensions/Multiplayer/peer.js"
]
}