@nestia/migrate 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.prettierignore +3 -0
- package/.vscode/settings.json +10 -0
- package/lib/NestiaMigrateApplication.d.ts +18 -0
- package/lib/NestiaMigrateApplication.js +1330 -0
- package/lib/NestiaMigrateApplication.js.map +1 -0
- package/lib/archivers/FileArchiver.d.ts +8 -0
- package/lib/archivers/FileArchiver.js +35 -0
- package/lib/archivers/FileArchiver.js.map +1 -0
- package/lib/bundles/TEMPLATE.d.ts +5 -0
- package/lib/bundles/TEMPLATE.js +261 -0
- package/lib/bundles/TEMPLATE.js.map +1 -0
- package/lib/executable/bundle.d.ts +1 -0
- package/lib/executable/bundle.js +75 -0
- package/lib/executable/bundle.js.map +1 -0
- package/lib/executable/migrate.d.ts +2 -0
- package/lib/executable/migrate.js +65 -0
- package/lib/executable/migrate.js.map +1 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +32 -0
- package/lib/index.js.map +1 -0
- package/lib/module.d.ts +3 -0
- package/lib/module.js +20 -0
- package/lib/module.js.map +1 -0
- package/lib/programmers/ControllerProgrammer.d.ts +6 -0
- package/lib/programmers/ControllerProgrammer.js +119 -0
- package/lib/programmers/ControllerProgrammer.js.map +1 -0
- package/lib/programmers/DtoProgrammer.d.ts +6 -0
- package/lib/programmers/DtoProgrammer.js +95 -0
- package/lib/programmers/DtoProgrammer.js.map +1 -0
- package/lib/programmers/MigrateProgrammer.d.ts +7 -0
- package/lib/programmers/MigrateProgrammer.js +31 -0
- package/lib/programmers/MigrateProgrammer.js.map +1 -0
- package/lib/programmers/RouteProgrammer.d.ts +11 -0
- package/lib/programmers/RouteProgrammer.js +199 -0
- package/lib/programmers/RouteProgrammer.js.map +1 -0
- package/lib/programmers/SchemaProgrammer.d.ts +4 -0
- package/lib/programmers/SchemaProgrammer.js +163 -0
- package/lib/programmers/SchemaProgrammer.js.map +1 -0
- package/lib/structures/IMigrateController.d.ts +7 -0
- package/lib/structures/IMigrateController.js +3 -0
- package/lib/structures/IMigrateController.js.map +1 -0
- package/lib/structures/IMigrateDto.d.ts +7 -0
- package/lib/structures/IMigrateDto.js +3 -0
- package/lib/structures/IMigrateDto.js.map +1 -0
- package/lib/structures/IMigrateFile.d.ts +5 -0
- package/lib/structures/IMigrateFile.js +3 -0
- package/lib/structures/IMigrateFile.js.map +1 -0
- package/lib/structures/IMigrateProgram.d.ts +6 -0
- package/lib/structures/IMigrateProgram.js +3 -0
- package/lib/structures/IMigrateProgram.js.map +1 -0
- package/lib/structures/IMigrateRoute.d.ts +19 -0
- package/lib/structures/IMigrateRoute.js +3 -0
- package/lib/structures/IMigrateRoute.js.map +1 -0
- package/lib/structures/IMigrateSchema.d.ts +4 -0
- package/lib/structures/IMigrateSchema.js +3 -0
- package/lib/structures/IMigrateSchema.js.map +1 -0
- package/lib/structures/ISwaggeSchema.d.ts +72 -0
- package/lib/structures/ISwaggeSchema.js +3 -0
- package/lib/structures/ISwaggeSchema.js.map +1 -0
- package/lib/structures/ISwagger.d.ts +22 -0
- package/lib/structures/ISwagger.js +3 -0
- package/lib/structures/ISwagger.js.map +1 -0
- package/lib/structures/ISwaggerComponents.d.ts +6 -0
- package/lib/structures/ISwaggerComponents.js +3 -0
- package/lib/structures/ISwaggerComponents.js.map +1 -0
- package/lib/structures/ISwaggerRoute.d.ts +38 -0
- package/lib/structures/ISwaggerRoute.js +3 -0
- package/lib/structures/ISwaggerRoute.js.map +1 -0
- package/lib/structures/ISwaggerSecurity.d.ts +40 -0
- package/lib/structures/ISwaggerSecurity.js +3 -0
- package/lib/structures/ISwaggerSecurity.js.map +1 -0
- package/lib/test/index.d.ts +1 -0
- package/lib/test/index.js +45 -0
- package/lib/test/index.js.map +1 -0
- package/lib/utils/JsonTypeChecker.d.ts +13 -0
- package/lib/utils/JsonTypeChecker.js +20 -0
- package/lib/utils/JsonTypeChecker.js.map +1 -0
- package/lib/utils/MapUtil.d.ts +3 -0
- package/lib/utils/MapUtil.js +15 -0
- package/lib/utils/MapUtil.js.map +1 -0
- package/lib/utils/SetupWizard.d.ts +3 -0
- package/lib/utils/SetupWizard.js +21 -0
- package/lib/utils/SetupWizard.js.map +1 -0
- package/lib/utils/StringUtil.d.ts +9 -0
- package/lib/utils/StringUtil.js +41 -0
- package/lib/utils/StringUtil.js.map +1 -0
- package/package.json +43 -0
- package/prettier.config.js +15 -0
- package/src/NestiaMigrateApplication.ts +51 -0
- package/src/archivers/FileArchiver.ts +38 -0
- package/src/bundles/TEMPLATE.ts +257 -0
- package/src/executable/bundle.ts +74 -0
- package/src/executable/migrate.ts +58 -0
- package/src/index.ts +4 -0
- package/src/module.ts +4 -0
- package/src/programmers/ControllerProgrammer.ts +159 -0
- package/src/programmers/DtoProgrammer.ts +122 -0
- package/src/programmers/MigrateProgrammer.ts +31 -0
- package/src/programmers/RouteProgrammer.ts +264 -0
- package/src/programmers/SchemaProgrammer.ts +215 -0
- package/src/structures/IMigrateController.ts +8 -0
- package/src/structures/IMigrateDto.ts +8 -0
- package/src/structures/IMigrateFile.ts +5 -0
- package/src/structures/IMigrateProgram.ts +7 -0
- package/src/structures/IMigrateRoute.ts +20 -0
- package/src/structures/IMigrateSchema.ts +4 -0
- package/src/structures/ISwaggeSchema.ts +85 -0
- package/src/structures/ISwagger.ts +24 -0
- package/src/structures/ISwaggerComponents.ts +7 -0
- package/src/structures/ISwaggerRoute.ts +42 -0
- package/src/structures/ISwaggerSecurity.ts +47 -0
- package/src/test/index.ts +38 -0
- package/src/utils/JsonTypeChecker.ts +48 -0
- package/src/utils/MapUtil.ts +13 -0
- package/src/utils/SetupWizard.ts +15 -0
- package/src/utils/StringUtil.ts +49 -0
- package/tsconfig.json +81 -0
@@ -0,0 +1,42 @@
|
|
1
|
+
import { ISwaggerSchema } from "./ISwaggeSchema";
|
2
|
+
|
3
|
+
export interface ISwaggerRoute {
|
4
|
+
parameters: ISwaggerRoute.IParameter[];
|
5
|
+
requestBody?: ISwaggerRoute.IRequestBody;
|
6
|
+
responses: ISwaggerRoute.IResponseBody;
|
7
|
+
summary?: string;
|
8
|
+
description?: string;
|
9
|
+
deprecated?: boolean;
|
10
|
+
tags: string[];
|
11
|
+
}
|
12
|
+
export namespace ISwaggerRoute {
|
13
|
+
export interface IParameter {
|
14
|
+
name: string;
|
15
|
+
in: "path" | "query" | "header" | "cookie";
|
16
|
+
schema: ISwaggerSchema;
|
17
|
+
required: boolean;
|
18
|
+
description: string;
|
19
|
+
}
|
20
|
+
export interface IRequestBody {
|
21
|
+
description: string;
|
22
|
+
content: IContent;
|
23
|
+
required: true;
|
24
|
+
"x-nestia-encrypted": boolean;
|
25
|
+
}
|
26
|
+
export type IResponseBody = Record<
|
27
|
+
string,
|
28
|
+
{
|
29
|
+
description: string;
|
30
|
+
content?: IContent;
|
31
|
+
"x-nestia-encrypted"?: boolean;
|
32
|
+
}
|
33
|
+
>;
|
34
|
+
export interface IContent {
|
35
|
+
"text/plain"?: {
|
36
|
+
schema: ISwaggerSchema.IString;
|
37
|
+
};
|
38
|
+
"application/json"?: {
|
39
|
+
schema: ISwaggerSchema;
|
40
|
+
};
|
41
|
+
}
|
42
|
+
}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
export type ISwaggerSecurity =
|
2
|
+
| ISwaggerSecurity.IHttpBasic
|
3
|
+
| ISwaggerSecurity.IHttpBearer
|
4
|
+
| ISwaggerSecurity.IApiKey
|
5
|
+
| ISwaggerSecurity.IOpenId
|
6
|
+
| ISwaggerSecurity.IOAuth2;
|
7
|
+
export namespace ISwaggerSecurity {
|
8
|
+
export interface IHttpBasic {
|
9
|
+
type: "http";
|
10
|
+
schema: "basic";
|
11
|
+
}
|
12
|
+
export interface IHttpBearer {
|
13
|
+
type: "http";
|
14
|
+
scheme: "bearer";
|
15
|
+
bearerFormat?: string;
|
16
|
+
}
|
17
|
+
export interface IApiKey {
|
18
|
+
type: "apiKey";
|
19
|
+
in: "header" | "query" | "cookie";
|
20
|
+
name: string;
|
21
|
+
}
|
22
|
+
|
23
|
+
export interface IOpenId {
|
24
|
+
type: "openIdConnect";
|
25
|
+
openIdConnectUrl: string;
|
26
|
+
}
|
27
|
+
|
28
|
+
export interface IOAuth2 {
|
29
|
+
type: "oauth2";
|
30
|
+
flows: IOAuth2.IFlowSet;
|
31
|
+
description?: string;
|
32
|
+
}
|
33
|
+
export namespace IOAuth2 {
|
34
|
+
export interface IFlowSet {
|
35
|
+
authorizationCode?: IFlow;
|
36
|
+
implicit?: Omit<IFlow, "tokenUrl">;
|
37
|
+
password?: Omit<IFlow, "authorizationUrl">;
|
38
|
+
clientCredentials?: Omit<IFlow, "authorizationUrl">;
|
39
|
+
}
|
40
|
+
export interface IFlow {
|
41
|
+
authorizationUrl: string;
|
42
|
+
tokenUrl: string;
|
43
|
+
refreshUrl: string;
|
44
|
+
scopes?: Record<string, string>;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import fs from "fs";
|
2
|
+
|
3
|
+
import { ISwagger, NestiaMigrateApplication } from "../module";
|
4
|
+
import { SetupWizard } from "../utils/SetupWizard";
|
5
|
+
|
6
|
+
const INPUT = __dirname + "/../../assets/input";
|
7
|
+
const OUTPUT = __dirname + "/../../assets/output";
|
8
|
+
|
9
|
+
const main = async () => {
|
10
|
+
if (fs.existsSync(OUTPUT))
|
11
|
+
await fs.promises.rm(OUTPUT, { recursive: true });
|
12
|
+
await fs.promises.mkdir(OUTPUT);
|
13
|
+
|
14
|
+
const directory: string[] = await fs.promises.readdir(INPUT);
|
15
|
+
for (const file of directory) {
|
16
|
+
const location: string = `${INPUT}/${file}`;
|
17
|
+
if (!location.endsWith(".json")) continue;
|
18
|
+
|
19
|
+
const swagger: ISwagger = JSON.parse(
|
20
|
+
await fs.promises.readFile(location, "utf8"),
|
21
|
+
);
|
22
|
+
const app = new NestiaMigrateApplication(swagger);
|
23
|
+
app.analyze();
|
24
|
+
|
25
|
+
const project: string = `${OUTPUT}/${file.replace(".json", "")}`;
|
26
|
+
await fs.promises.mkdir(project);
|
27
|
+
await app.generate({
|
28
|
+
mkdir: fs.promises.mkdir,
|
29
|
+
writeFile: (path, content) =>
|
30
|
+
fs.promises.writeFile(path, content, "utf8"),
|
31
|
+
})(project);
|
32
|
+
await SetupWizard.setup(project);
|
33
|
+
}
|
34
|
+
};
|
35
|
+
main().catch((exp) => {
|
36
|
+
console.error(exp);
|
37
|
+
process.exit(-1);
|
38
|
+
});
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import { ISwaggerSchema } from "../structures/ISwaggeSchema";
|
2
|
+
|
3
|
+
export namespace JsonTypeChecker {
|
4
|
+
export const isAnyOf = (
|
5
|
+
schema: ISwaggerSchema,
|
6
|
+
): schema is ISwaggerSchema.IAnyOf => (schema as any).anyOf !== undefined;
|
7
|
+
|
8
|
+
export const isOneOf = (
|
9
|
+
schema: ISwaggerSchema,
|
10
|
+
): schema is ISwaggerSchema.IOneOf => (schema as any).oneOf !== undefined;
|
11
|
+
|
12
|
+
export const isBoolean = (
|
13
|
+
schema: ISwaggerSchema,
|
14
|
+
): schema is ISwaggerSchema.IBoolean => (schema as any).type === "boolean";
|
15
|
+
|
16
|
+
export const isInteger = (
|
17
|
+
schema: ISwaggerSchema,
|
18
|
+
): schema is ISwaggerSchema.IInteger => (schema as any).type === "integer";
|
19
|
+
|
20
|
+
export const isNumber = (
|
21
|
+
schema: ISwaggerSchema,
|
22
|
+
): schema is ISwaggerSchema.INumber => (schema as any).type === "number";
|
23
|
+
|
24
|
+
export const isString = (
|
25
|
+
schema: ISwaggerSchema,
|
26
|
+
): schema is ISwaggerSchema.IString => (schema as any).type === "string";
|
27
|
+
|
28
|
+
export const isArray = (
|
29
|
+
schema: ISwaggerSchema,
|
30
|
+
): schema is ISwaggerSchema.IArray => (schema as any).type === "array";
|
31
|
+
|
32
|
+
export const isObject = (
|
33
|
+
schema: ISwaggerSchema,
|
34
|
+
): schema is ISwaggerSchema.IObject => (schema as any).type === "object";
|
35
|
+
|
36
|
+
export const isReference = (
|
37
|
+
schema: ISwaggerSchema,
|
38
|
+
): schema is ISwaggerSchema.IReference =>
|
39
|
+
(schema as any).$ref !== undefined;
|
40
|
+
|
41
|
+
export const isUnknown = (
|
42
|
+
schema: ISwaggerSchema,
|
43
|
+
): schema is ISwaggerSchema.IUnknown =>
|
44
|
+
(schema as any).type === undefined &&
|
45
|
+
!isAnyOf(schema) &&
|
46
|
+
!isOneOf(schema) &&
|
47
|
+
!isReference(schema);
|
48
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export namespace MapUtil {
|
2
|
+
export const take =
|
3
|
+
<Key, T>(dict: Map<Key, T>) =>
|
4
|
+
(key: Key) =>
|
5
|
+
(generator: () => T): T => {
|
6
|
+
const oldbie: T | undefined = dict.get(key);
|
7
|
+
if (oldbie) return oldbie;
|
8
|
+
|
9
|
+
const value: T = generator();
|
10
|
+
dict.set(key, value);
|
11
|
+
return value;
|
12
|
+
};
|
13
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import cp from "child_process";
|
2
|
+
|
3
|
+
export namespace SetupWizard {
|
4
|
+
export const setup = (output: string) => {
|
5
|
+
execute(output)("npm install");
|
6
|
+
execute(output)("npx nestia e2e", "npm run build:sdk");
|
7
|
+
execute(output)("npm run build:test");
|
8
|
+
execute(output)("npm run test");
|
9
|
+
};
|
10
|
+
|
11
|
+
const execute = (cwd: string) => (command: string, fake?: string) => {
|
12
|
+
console.log(fake ?? command);
|
13
|
+
cp.execSync(command, { cwd, stdio: "inherit" });
|
14
|
+
};
|
15
|
+
}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
export namespace StringUtil {
|
2
|
+
export const capitalize = (str: string) =>
|
3
|
+
str[0].toUpperCase() + str.slice(1).toLowerCase();
|
4
|
+
|
5
|
+
export const pascal = (path: string) =>
|
6
|
+
split(path)
|
7
|
+
.filter((str) => str[0] !== "{")
|
8
|
+
.map(capitalize)
|
9
|
+
.join("");
|
10
|
+
|
11
|
+
export const camel = (path: string) =>
|
12
|
+
split(path)
|
13
|
+
.map((str, i) => (i === 0 ? str : capitalize(str)))
|
14
|
+
.join("");
|
15
|
+
|
16
|
+
export const split = (path: string) =>
|
17
|
+
path
|
18
|
+
.split("/")
|
19
|
+
.map((str) => normalize(str.trim()))
|
20
|
+
.filter((str) => !!str.length);
|
21
|
+
|
22
|
+
export const reJoinWithoutParameters = (path: string) =>
|
23
|
+
split(path)
|
24
|
+
.map((str) =>
|
25
|
+
str[0] === "{" && str[str.length - 1] === "}"
|
26
|
+
? `:${str.substring(1, str.length - 1)}`
|
27
|
+
: str,
|
28
|
+
)
|
29
|
+
.join("/");
|
30
|
+
|
31
|
+
export const normalize = (str: string) =>
|
32
|
+
str.split(".").join("_").split("-").join("_");
|
33
|
+
|
34
|
+
export const commonPrefix = (strs: string[]): string => {
|
35
|
+
if (strs.length === 0) return "";
|
36
|
+
|
37
|
+
let prefix = strs[0];
|
38
|
+
for (let i = 1; i < strs.length; i++) {
|
39
|
+
while (strs[i].indexOf(prefix) !== 0) {
|
40
|
+
prefix = prefix.substring(0, prefix.length - 1);
|
41
|
+
if (prefix === "") return "";
|
42
|
+
}
|
43
|
+
}
|
44
|
+
return prefix
|
45
|
+
.split("/")
|
46
|
+
.filter((str) => str[0] !== "{" || str[str.length - 1] === "}")
|
47
|
+
.join("/");
|
48
|
+
};
|
49
|
+
}
|
package/tsconfig.json
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
{
|
2
|
+
"compilerOptions": {
|
3
|
+
/* Visit https://aka.ms/tsconfig.json to read more about this file */
|
4
|
+
|
5
|
+
/* Basic Options */
|
6
|
+
// "incremental": true, /* Enable incremental compilation */
|
7
|
+
"target": "es2015", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
|
8
|
+
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
|
9
|
+
"lib": [
|
10
|
+
"DOM",
|
11
|
+
"ES2015"
|
12
|
+
], /* Specify library files to be included in the compilation. */
|
13
|
+
// "allowJs": true, /* Allow javascript files to be compiled. */
|
14
|
+
// "checkJs": true, /* Report errors in .js files. */
|
15
|
+
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
|
16
|
+
"declaration": true, /* Generates corresponding '.d.ts' file. */
|
17
|
+
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
|
18
|
+
"sourceMap": true, /* Generates corresponding '.map' file. */
|
19
|
+
// "outFile": "./", /* Concatenate and emit output to single file. */
|
20
|
+
"outDir": "./lib", /* Redirect output structure to the directory. */
|
21
|
+
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
|
22
|
+
// "composite": true, /* Enable project compilation */
|
23
|
+
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
|
24
|
+
// "removeComments": true, /* Do not emit comments to output. */
|
25
|
+
// "noEmit": true, /* Do not emit outputs. */
|
26
|
+
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
|
27
|
+
"downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
|
28
|
+
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
|
29
|
+
|
30
|
+
/* Strict Type-Checking Options */
|
31
|
+
"strict": true, /* Enable all strict type-checking options. */
|
32
|
+
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
|
33
|
+
// "strictNullChecks": true, /* Enable strict null checks. */
|
34
|
+
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
|
35
|
+
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
|
36
|
+
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
|
37
|
+
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
|
38
|
+
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
|
39
|
+
|
40
|
+
/* Additional Checks */
|
41
|
+
"noUnusedLocals": true, /* Report errors on unused locals. */
|
42
|
+
"noUnusedParameters": true, /* Report errors on unused parameters. */
|
43
|
+
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
44
|
+
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
45
|
+
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
|
46
|
+
|
47
|
+
/* Module Resolution Options */
|
48
|
+
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
|
49
|
+
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
|
50
|
+
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
|
51
|
+
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
52
|
+
// "typeRoots": [], /* List of folders to include type definitions from. */
|
53
|
+
"types": [
|
54
|
+
"node",
|
55
|
+
], /* Type declaration files to be included in compilation. */
|
56
|
+
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
|
57
|
+
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
|
58
|
+
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
|
59
|
+
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
60
|
+
|
61
|
+
/* Source Map Options */
|
62
|
+
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
|
63
|
+
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
64
|
+
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
|
65
|
+
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
|
66
|
+
|
67
|
+
/* Experimental Options */
|
68
|
+
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
|
69
|
+
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
|
70
|
+
"stripInternal": true,
|
71
|
+
|
72
|
+
/* Advanced Options */
|
73
|
+
"skipLibCheck": true, /* Skip type checking of declaration files. */
|
74
|
+
"forceConsistentCasingInFileNames": true, /* Disallow inconsistently-cased references to the same file. */
|
75
|
+
"plugins": [
|
76
|
+
{ "transform": "typia/lib/transform" }
|
77
|
+
],
|
78
|
+
"newLine": "LF",
|
79
|
+
},
|
80
|
+
"include": ["src"]
|
81
|
+
}
|