Skip to content

Commit

Permalink
squash!
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Sep 4, 2023
1 parent b388b11 commit 4cea02d
Show file tree
Hide file tree
Showing 13 changed files with 98 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Target/Bin.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env node
import "./Index.js";
2 changes: 2 additions & 0 deletions Target/Bin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env node
import"./Index.js";
13 changes: 13 additions & 0 deletions Target/Command/Build.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import type { Pattern } from "fast-glob";
export type Pipe = string[];
/**
* The `Build` function compiles and builds TypeScript files using esbuild and TypeScript compiler.
* @param {Pattern[]} Files - An array of file patterns to be processed. Each pattern can include
* wildcards (*) to match multiple files.
* @param [Option] - The `Option` parameter is an optional object that can contain two properties:
*/
declare const _default: (Files: Pattern[], Option?: {
ESBuild?: string;
TypeScript?: string;
}) => Promise<void>;
export default _default;
1 change: 1 addition & 0 deletions Target/Command/Build.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions Target/Configuration/ESBuild.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
declare const _default: {
format: "esm";
minify: true;
outdir: string;
platform: "node";
target: string;
write: true;
plugins: any[];
};
export default _default;
1 change: 1 addition & 0 deletions Target/Configuration/ESBuild.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 46 additions & 0 deletions Target/Configuration/TypeScript.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"allowArbitraryExtensions": true,
"allowImportingTsExtensions": true,
"allowJs": true,
"allowSyntheticDefaultImports": true,
"allowUmdGlobalAccess": false,
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"alwaysStrict": true,
"assumeChangesOnlyAffectDirectDependencies": true,
"baseUrl": "./",
"checkJs": true,
"declaration": true,
"disableReferencedProjectLoad": false,
"emitDeclarationOnly": true,
"esModuleInterop": true,
"exactOptionalPropertyTypes": true,
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
"jsx": "preserve",
"lib": ["ESNext"],
"module": "ESNext",
"moduleResolution": "NodeNext",
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noPropertyAccessFromIndexSignature": true,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true,
"strictBindCallApply": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"target": "ESNext",
"types": ["node", "@types/node"],
"verbatimModuleSyntax": true
},
"ts-node": {
"esm": true
}
}
1 change: 1 addition & 0 deletions Target/Index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {};
1 change: 1 addition & 0 deletions Target/Index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Target/Library/File.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/**
* The function takes a file path as input, checks if it is a TypeScript file, converts the TypeScript
* code to JavaScript, and then imports and returns the default export of the JavaScript file.
* @param {string} Path - The `Path` parameter is a string that represents the file path of the file
* you want to process.
* @returns the default export of the module that is imported using the provided `Path`.
*/
declare const _default: (Path: string) => Promise<any>;
export default _default;
1 change: 1 addition & 0 deletions Target/Library/File.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions Target/Library/JSON.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* The function `JSON` is a TypeScript function that reads a JSON file and returns its parsed content.
* @param {string} File - The `File` parameter is a string that represents the name or path of the JSON
* file that you want to parse.
* @param {string} From - The `From` parameter is a string that represents the source URL or file path
* from which the JSON file will be loaded. It is set to `import.meta.url` by default, which refers to
* the URL of the current module. However, if a different source URL or file path is provided,
*/
declare const _default: (File: string, From?: string) => Promise<any>;
export default _default;
1 change: 1 addition & 0 deletions Target/Library/JSON.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4cea02d

Please sign in to comment.