nestia 3.1.1 → 3.1.2-dev.20221016
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/README.md +133 -17
- package/lib/executable/internal/NestiaStarter.js +10 -26
- package/lib/executable/internal/NestiaStarter.js.map +1 -1
- package/package.json +2 -2
- package/template/.eslintrc.cjs +0 -22
- package/template/.github/workflows/build.yml +0 -18
- package/template/.prettierignore +0 -6
- package/template/.vscode/launch.json +0 -19
- package/template/.vscode/settings.json +0 -10
- package/template/LICENSE +0 -21
- package/template/README.md +0 -131
- package/template/bundle/gitignore +0 -6
- package/template/bundle/npmignore +0 -6
- package/template/nestia.config.ts +0 -12
- package/template/package.json +0 -62
- package/template/packages/api/LICENSE +0 -21
- package/template/packages/api/README.md +0 -66
- package/template/packages/api/package.json +0 -21
- package/template/prettier.config.js +0 -18
- package/template/src/Backend.ts +0 -65
- package/template/src/Configuration.ts +0 -11
- package/template/src/api/HttpError.ts +0 -1
- package/template/src/api/IConnection.ts +0 -1
- package/template/src/api/Primitive.ts +0 -1
- package/template/src/api/__internal/AesPkcs5.ts +0 -1
- package/template/src/api/__internal/Fetcher.ts +0 -1
- package/template/src/api/functional/bbs/articles/index.ts +0 -166
- package/template/src/api/functional/bbs/index.ts +0 -7
- package/template/src/api/functional/index.ts +0 -7
- package/template/src/api/index.ts +0 -4
- package/template/src/api/module.ts +0 -5
- package/template/src/api/structures/bbs/IBbsArticle.ts +0 -142
- package/template/src/api/structures/common/IAttachmentFile.ts +0 -5
- package/template/src/api/structures/common/IPage.ts +0 -75
- package/template/src/controllers/BbsArticlesController.ts +0 -46
- package/template/src/providers/bbs/BbsArticleProvider.ts +0 -217
- package/template/src/test/features/api/bbs/test_api_bbs_article_at.ts +0 -52
- package/template/src/test/features/api/bbs/test_api_bbs_article_index_search.ts +0 -82
- package/template/src/test/features/api/bbs/test_api_bbs_article_index_sort.ts +0 -49
- package/template/src/test/features/api/bbs/test_api_bbs_article_store.ts +0 -44
- package/template/src/test/features/api/bbs/test_api_bbs_article_update.ts +0 -66
- package/template/src/test/index.ts +0 -45
- package/template/src/test/internal/DynamicImportIterator.ts +0 -119
- package/template/src/test/internal/GaffComparator.ts +0 -48
- package/template/src/test/internal/IPointer.ts +0 -3
- package/template/src/test/internal/RandomGenerator.ts +0 -72
- package/template/src/test/internal/StopWatch.ts +0 -16
- package/template/src/test/internal/exception_must_be_thrown.ts +0 -11
- package/template/src/test/internal/validate_index.ts +0 -29
- package/template/src/test/internal/validate_index_sort.ts +0 -39
- package/template/src/utils/ArrayUtil.ts +0 -86
- package/template/src/utils/MapUtil.ts +0 -14
- package/template/tsconfig.api.json +0 -15
- package/template/tsconfig.json +0 -118
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
|
|
3
|
-
export namespace GaffComparator {
|
|
4
|
-
export const strings =
|
|
5
|
-
<T>(closure: (input: T) => string | string[]) =>
|
|
6
|
-
(x: T, y: T) => {
|
|
7
|
-
const alpha: string[] = wrap(closure(x));
|
|
8
|
-
const beta: string[] = wrap(closure(y));
|
|
9
|
-
|
|
10
|
-
for (let i: number = 0; i < alpha.length; ++i)
|
|
11
|
-
if (alpha[i] !== beta[i]) return compare(alpha[i], beta[i]);
|
|
12
|
-
return 0;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export const dates =
|
|
16
|
-
<T>(closure: (input: T) => string | string[]) =>
|
|
17
|
-
(x: T, y: T) => {
|
|
18
|
-
const alpha: number[] = wrap(closure(x)).map((str) =>
|
|
19
|
-
new Date(str).getTime(),
|
|
20
|
-
);
|
|
21
|
-
const beta: number[] = wrap(closure(y)).map((str) =>
|
|
22
|
-
new Date(str).getTime(),
|
|
23
|
-
);
|
|
24
|
-
|
|
25
|
-
for (let i: number = 0; i < alpha.length; ++i)
|
|
26
|
-
if (alpha[i] !== beta[i]) return alpha[i] - beta[i];
|
|
27
|
-
return 0;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export const numbers =
|
|
31
|
-
<T>(closure: (input: T) => number | number[]) =>
|
|
32
|
-
(x: T, y: T) => {
|
|
33
|
-
const alpha: number[] = wrap(closure(x));
|
|
34
|
-
const beta: number[] = wrap(closure(y));
|
|
35
|
-
|
|
36
|
-
for (let i: number = 0; i < alpha.length; ++i)
|
|
37
|
-
if (alpha[i] !== beta[i]) return alpha[i] - beta[i];
|
|
38
|
-
return 0;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
function compare(x: string, y: string) {
|
|
42
|
-
return x.localeCompare(y);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
function wrap<T>(elem: T | T[]): T[] {
|
|
46
|
-
return Array.isArray(elem) ? elem : [elem];
|
|
47
|
-
}
|
|
48
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { randint } from "tstl/algorithm/random";
|
|
2
|
-
import { sample as _Sample } from "tstl/ranges/algorithm/random";
|
|
3
|
-
|
|
4
|
-
import { ArrayUtil } from "../../utils/ArrayUtil";
|
|
5
|
-
|
|
6
|
-
export namespace RandomGenerator {
|
|
7
|
-
/* ----------------------------------------------------------------
|
|
8
|
-
IDENTIFICATIONS
|
|
9
|
-
---------------------------------------------------------------- */
|
|
10
|
-
const CHARACTERS = "abcdefghijklmnopqrstuvwxyz";
|
|
11
|
-
|
|
12
|
-
export function alphabets(length: number): string {
|
|
13
|
-
return new Array(length)
|
|
14
|
-
.fill("")
|
|
15
|
-
.map(() => CHARACTERS[randint(0, CHARACTERS.length - 1)])
|
|
16
|
-
.join("");
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export function name(length: number = 3): string {
|
|
20
|
-
return paragraph(length);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export function paragraph(
|
|
24
|
-
sentences: number = randint(2, 5),
|
|
25
|
-
wordMin: number = 3,
|
|
26
|
-
wordMax: number = 7,
|
|
27
|
-
): string {
|
|
28
|
-
return ArrayUtil.repeat(sentences, () =>
|
|
29
|
-
alphabets(randint(wordMin, wordMax)),
|
|
30
|
-
).join(" ");
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export function content(
|
|
34
|
-
paragraphes: number = randint(3, 8),
|
|
35
|
-
sentenceMin: number = 10,
|
|
36
|
-
sentenceMax: number = 40,
|
|
37
|
-
wordMin: number = 1,
|
|
38
|
-
wordMax: number = 7,
|
|
39
|
-
): string {
|
|
40
|
-
return ArrayUtil.repeat(paragraphes, () =>
|
|
41
|
-
paragraph(randint(sentenceMin, sentenceMax), wordMin, wordMax),
|
|
42
|
-
).join("\n\n");
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function partial(content: string): string {
|
|
46
|
-
const first: number = randint(0, content.length - 1);
|
|
47
|
-
const last: number = randint(first + 1, content.length);
|
|
48
|
-
|
|
49
|
-
return content.substring(first, last).trim();
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function mobile(): string {
|
|
53
|
-
return `010${digit(3, 4)}${digit(4, 4)}`;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function digit(minC: number, maxC: number): string {
|
|
57
|
-
const val: number = randint(0, Math.pow(10.0, maxC) - 1);
|
|
58
|
-
const log10: number = val ? Math.floor(Math.log10(val)) + 1 : 0;
|
|
59
|
-
const prefix: string = "0".repeat(Math.max(0, minC - log10));
|
|
60
|
-
|
|
61
|
-
return prefix + val.toString();
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function date(from: Date, range: number): Date {
|
|
65
|
-
const time: number = from.getTime() + randint(0, range);
|
|
66
|
-
return new Date(time);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export function pick<T>(array: T[]): T {
|
|
70
|
-
return array[randint(0, array.length - 1)];
|
|
71
|
-
}
|
|
72
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export namespace StopWatch {
|
|
2
|
-
export type Task = () => Promise<void>;
|
|
3
|
-
|
|
4
|
-
export async function measure(task: Task): Promise<number> {
|
|
5
|
-
const time: number = Date.now();
|
|
6
|
-
await task();
|
|
7
|
-
return Date.now() - time;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export async function trace(title: string, task: Task): Promise<void> {
|
|
11
|
-
process.stdout.write(` - ${title}: `);
|
|
12
|
-
const time: number = await measure(task);
|
|
13
|
-
|
|
14
|
-
console.log(`${time.toLocaleString()} ms`);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { equal } from "tstl/ranges/algorithm/iterations";
|
|
2
|
-
|
|
3
|
-
interface IEntity {
|
|
4
|
-
id: string;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
function get_ids<Entity extends IEntity>(entities: Entity[]): string[] {
|
|
8
|
-
return entities.map((entity) => entity.id).sort((x, y) => (x < y ? -1 : 1));
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export function validate_index<
|
|
12
|
-
Solution extends IEntity,
|
|
13
|
-
Summary extends IEntity,
|
|
14
|
-
>(symbol: string, solution: Solution[], summaries: Summary[]): void {
|
|
15
|
-
const length: number = Math.min(solution.length, summaries.length);
|
|
16
|
-
const xIds: string[] = get_ids(solution).slice(0, length);
|
|
17
|
-
const yIds: string[] = get_ids(summaries)
|
|
18
|
-
.filter((id) => id >= xIds[0])
|
|
19
|
-
.slice(0, length);
|
|
20
|
-
|
|
21
|
-
if (equal(xIds, yIds) === true) return;
|
|
22
|
-
|
|
23
|
-
console.log(xIds);
|
|
24
|
-
console.log(yIds);
|
|
25
|
-
|
|
26
|
-
throw new Error(
|
|
27
|
-
`Bug on ${symbol}: result of the index is different with manual aggregation.`,
|
|
28
|
-
);
|
|
29
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { is_sorted } from "tstl/ranges/algorithm/sorting";
|
|
2
|
-
|
|
3
|
-
import { IPage } from "@ORGANIZATION/PROJECT-api/lib/structures/common/IPage";
|
|
4
|
-
|
|
5
|
-
export const validate_index_sort =
|
|
6
|
-
(method: string) =>
|
|
7
|
-
<T extends object, Fields extends string>(
|
|
8
|
-
getter: (
|
|
9
|
-
input: IPage.IRequest & {
|
|
10
|
-
sort?: IPage.IRequest.Sort<Fields>;
|
|
11
|
-
},
|
|
12
|
-
) => Promise<IPage<T>>,
|
|
13
|
-
) =>
|
|
14
|
-
(...fields: Fields[]) =>
|
|
15
|
-
(comp: (x: T, y: T) => number, filter?: (elem: T) => boolean) =>
|
|
16
|
-
async (direction: "+" | "-") => {
|
|
17
|
-
const page: IPage<T> = await getter({
|
|
18
|
-
limit: 100,
|
|
19
|
-
sort: fields.map((field) => `${direction}${field}` as const),
|
|
20
|
-
});
|
|
21
|
-
if (filter) page.data = page.data.filter(filter);
|
|
22
|
-
|
|
23
|
-
const reversed: typeof comp =
|
|
24
|
-
direction === "+" ? comp : (x, y) => comp(y, x);
|
|
25
|
-
if (is_sorted(page.data, (x, y) => reversed(x, y) < 0) === false) {
|
|
26
|
-
console.log(direction, ...fields);
|
|
27
|
-
if (
|
|
28
|
-
fields.length === 1 &&
|
|
29
|
-
page.data.length &&
|
|
30
|
-
(page.data as any)[0][fields[0]] !== undefined
|
|
31
|
-
)
|
|
32
|
-
console.log(page.data.map((elem) => (elem as any)[fields[0]]));
|
|
33
|
-
throw new Error(
|
|
34
|
-
`Bug on ${method}: wrong sorting on ${direction}(${fields.join(
|
|
35
|
-
", ",
|
|
36
|
-
)}).`,
|
|
37
|
-
);
|
|
38
|
-
}
|
|
39
|
-
};
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
export namespace ArrayUtil {
|
|
2
|
-
export function at<T>(array: T[], index: number): T {
|
|
3
|
-
return array[index < 0 ? array.length + index : index];
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export async function asyncFilter<Input>(
|
|
7
|
-
elements: readonly Input[],
|
|
8
|
-
pred: (
|
|
9
|
-
elem: Input,
|
|
10
|
-
index: number,
|
|
11
|
-
array: readonly Input[],
|
|
12
|
-
) => Promise<boolean>,
|
|
13
|
-
): Promise<Input[]> {
|
|
14
|
-
const ret: Input[] = [];
|
|
15
|
-
await asyncForEach(elements, async (elem, index, array) => {
|
|
16
|
-
const flag: boolean = await pred(elem, index, array);
|
|
17
|
-
if (flag === true) ret.push(elem);
|
|
18
|
-
});
|
|
19
|
-
return ret;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export async function asyncForEach<Input>(
|
|
23
|
-
elements: readonly Input[],
|
|
24
|
-
closure: (
|
|
25
|
-
elem: Input,
|
|
26
|
-
index: number,
|
|
27
|
-
array: readonly Input[],
|
|
28
|
-
) => Promise<any>,
|
|
29
|
-
): Promise<void> {
|
|
30
|
-
await asyncRepeat(elements.length, (index) =>
|
|
31
|
-
closure(elements[index], index, elements),
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export async function asyncMap<Input, Output>(
|
|
36
|
-
elements: readonly Input[],
|
|
37
|
-
closure: (
|
|
38
|
-
elem: Input,
|
|
39
|
-
index: number,
|
|
40
|
-
array: readonly Input[],
|
|
41
|
-
) => Promise<Output>,
|
|
42
|
-
): Promise<Output[]> {
|
|
43
|
-
const ret: Output[] = [];
|
|
44
|
-
await asyncForEach(elements, async (elem, index, array) => {
|
|
45
|
-
const output: Output = await closure(elem, index, array);
|
|
46
|
-
ret.push(output);
|
|
47
|
-
});
|
|
48
|
-
return ret;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export async function asyncRepeat<T>(
|
|
52
|
-
count: number,
|
|
53
|
-
closure: (index: number) => Promise<T>,
|
|
54
|
-
): Promise<T[]> {
|
|
55
|
-
const indexes: number[] = new Array(count)
|
|
56
|
-
.fill(1)
|
|
57
|
-
.map((_, index) => index);
|
|
58
|
-
|
|
59
|
-
const output: T[] = [];
|
|
60
|
-
for (const index of indexes) output.push(await closure(index));
|
|
61
|
-
|
|
62
|
-
return output;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export function has<T>(
|
|
66
|
-
elements: readonly T[],
|
|
67
|
-
pred: (elem: T) => boolean,
|
|
68
|
-
): boolean {
|
|
69
|
-
return elements.find(pred) !== undefined;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export function repeat<T>(
|
|
73
|
-
count: number,
|
|
74
|
-
closure: (index: number) => T,
|
|
75
|
-
): T[] {
|
|
76
|
-
return new Array(count).fill("").map((_, index) => closure(index));
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export function last<T>(array: T[]): T {
|
|
80
|
-
return array[array.length - 1];
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export function flat<T>(matrix: T[][]): T[] {
|
|
84
|
-
return ([] as T[]).concat(...matrix);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export namespace MapUtil {
|
|
2
|
-
export function take<Key, T>(
|
|
3
|
-
dict: Map<Key, T>,
|
|
4
|
-
key: Key,
|
|
5
|
-
generator: () => T,
|
|
6
|
-
): T {
|
|
7
|
-
const oldbie: T | undefined = dict.get(key);
|
|
8
|
-
if (oldbie) return oldbie;
|
|
9
|
-
|
|
10
|
-
const value: T = generator();
|
|
11
|
-
dict.set(key, value);
|
|
12
|
-
return value;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"target": "ES5",
|
|
5
|
-
"declaration": true,
|
|
6
|
-
"outDir": "packages/api/lib",
|
|
7
|
-
"downlevelIteration": true,
|
|
8
|
-
"lib": [
|
|
9
|
-
"DOM",
|
|
10
|
-
"ES2015",
|
|
11
|
-
]
|
|
12
|
-
},
|
|
13
|
-
"include": ["src/api"],
|
|
14
|
-
"exclude": ["node_modules"],
|
|
15
|
-
}
|
package/template/tsconfig.json
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
/* Visit https://aka.ms/tsconfig to read more about this file */
|
|
4
|
-
|
|
5
|
-
/* Projects */
|
|
6
|
-
// "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
|
|
7
|
-
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
|
|
8
|
-
// "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
|
|
9
|
-
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
|
|
10
|
-
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
|
|
11
|
-
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
|
|
12
|
-
|
|
13
|
-
/* Language and Environment */
|
|
14
|
-
"target": "ES2015", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
|
15
|
-
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
|
16
|
-
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
|
17
|
-
"experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */
|
|
18
|
-
"emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
|
|
19
|
-
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
|
|
20
|
-
// "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
|
|
21
|
-
// "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
|
|
22
|
-
// "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
|
|
23
|
-
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
|
|
24
|
-
// "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
|
|
25
|
-
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
|
26
|
-
|
|
27
|
-
/* Modules */
|
|
28
|
-
"module": "commonjs", /* Specify what module code is generated. */
|
|
29
|
-
// "rootDir": "./", /* Specify the root folder within your source files. */
|
|
30
|
-
// "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
|
|
31
|
-
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
|
32
|
-
"paths": {
|
|
33
|
-
"@ORGANIZATION/PROJECT-api/lib/*": ["./src/api/*"],
|
|
34
|
-
"@ORGANIZATION/PROJECT-api": ["./src/api"],
|
|
35
|
-
}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
|
36
|
-
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
|
37
|
-
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
|
|
38
|
-
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
|
|
39
|
-
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
|
40
|
-
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
|
|
41
|
-
// "resolveJsonModule": true, /* Enable importing .json files. */
|
|
42
|
-
// "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
|
|
43
|
-
|
|
44
|
-
/* JavaScript Support */
|
|
45
|
-
// "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
|
|
46
|
-
// "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
|
|
47
|
-
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
|
48
|
-
|
|
49
|
-
/* Emit */
|
|
50
|
-
// "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
|
51
|
-
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
|
|
52
|
-
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
|
|
53
|
-
"sourceMap": true, /* Create source map files for emitted JavaScript files. */
|
|
54
|
-
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
|
|
55
|
-
"outDir": "./bin", /* Specify an output folder for all emitted files. */
|
|
56
|
-
// "removeComments": true, /* Disable emitting comments. */
|
|
57
|
-
// "noEmit": true, /* Disable emitting files from a compilation. */
|
|
58
|
-
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
|
|
59
|
-
// "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
|
|
60
|
-
// "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
|
|
61
|
-
// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
|
|
62
|
-
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
|
63
|
-
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
|
|
64
|
-
// "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
|
|
65
|
-
// "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
|
|
66
|
-
"newLine": "lf", /* Set the newline character for emitting files. */
|
|
67
|
-
"stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
|
|
68
|
-
// "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
|
|
69
|
-
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
|
|
70
|
-
// "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
|
|
71
|
-
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */
|
|
72
|
-
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
|
|
73
|
-
|
|
74
|
-
/* Interop Constraints */
|
|
75
|
-
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
|
|
76
|
-
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
|
|
77
|
-
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
|
|
78
|
-
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
|
|
79
|
-
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
|
|
80
|
-
|
|
81
|
-
/* Type Checking */
|
|
82
|
-
"strict": true, /* Enable all strict type-checking options. */
|
|
83
|
-
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
|
|
84
|
-
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
|
|
85
|
-
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
|
|
86
|
-
// "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
|
|
87
|
-
// "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
|
|
88
|
-
// "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
|
|
89
|
-
// "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
|
|
90
|
-
// "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
|
|
91
|
-
"noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
|
|
92
|
-
"noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
|
|
93
|
-
// "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
|
|
94
|
-
"noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
|
|
95
|
-
"noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
|
|
96
|
-
// "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
|
|
97
|
-
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
|
|
98
|
-
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
|
|
99
|
-
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
|
|
100
|
-
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
|
|
101
|
-
|
|
102
|
-
/* Completeness */
|
|
103
|
-
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
|
104
|
-
"skipLibCheck": true, /* Skip type checking all .d.ts files. */
|
|
105
|
-
"plugins": [
|
|
106
|
-
{ "transform": "typescript-json/lib/transform" },
|
|
107
|
-
{ "transform": "nestia-helper/lib/transform" },
|
|
108
|
-
{ "transform": "typescript-transform-paths" }
|
|
109
|
-
]
|
|
110
|
-
},
|
|
111
|
-
"include": [
|
|
112
|
-
"src",
|
|
113
|
-
],
|
|
114
|
-
"exclude": [
|
|
115
|
-
"node_modules",
|
|
116
|
-
"packages",
|
|
117
|
-
]
|
|
118
|
-
}
|