Skip to content

Commit

Permalink
squash!
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Mar 18, 2024
1 parent 097594b commit 68838ed
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 195 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@

## 0.1.0

- Custom esbuild file
- Custom ESBuild file

## 0.0.11

Expand Down
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 🌀 [TypeScriptESBuild]

Builds all your TypeScript files into JavaScript.
Build all your TypeScript files into JavaScript.

## Installation

Expand All @@ -12,7 +12,13 @@ npm install -D -E typescript-esbuild

## Usage

`package.json`
Through a command line run:

```sh
npx typescript-esbuild 'Source/**/*.ts'
```

or in a `package.json` file:

```json
{
Expand All @@ -24,7 +30,7 @@ npm install -D -E typescript-esbuild

### ESBuild Configuration

Or with a custom esbuild config file:
Or with a custom ESBuild config file:

`package.json`

Expand Down Expand Up @@ -53,6 +59,6 @@ See an example of a configuration file in
}
```

[esbuild]: https://npmjs.org/esbuild
[typedoc]: https://npmjs.org/typedoc
[ESBuild]: https://npmjs.org/esbuild
[TypeDoc]: https://npmjs.org/typedoc
[TypeScriptESBuild]: https://npmjs.org/typescript-esbuild
94 changes: 0 additions & 94 deletions Source/Class/Theme.ts

This file was deleted.

8 changes: 4 additions & 4 deletions Source/Class/TypeScriptESBuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
export default new (await import("commander")).Command()
.name("TypeScriptESBuild")
.version(process.env["VERSION_PACKAGE"] ?? "0.0.1")
.description("Builds files")
.argument("<Files...>", "Files to build")
.option("-es, --ESBuild <File>", "esbuild configuration file")
.option("-ts, --TypeScript <File>", "TypeScript configuration file")
.description("🌀 Build TypeScript")
.argument("<File...>", "Build File.")
.option("-es, --ESBuild <File>", "ESBuild Configuration.")
.option("-ts, --TypeScript <File>", "TypeScript Configuration.")
.action((await import("../Function/Build.js")).default)
.parse();
33 changes: 0 additions & 33 deletions Source/Function/Build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,39 +51,6 @@ export default (async (...[File, Option]: Parameters<Type>) => {
);

Exec(`tsc -p ${Option?.TypeScript ?? "tsconfig.json"}`);

Exec(
[
"typedoc",
"--commentStyle all",
"--gitRevision main",
`--customCss ${resolve(`${Current}/../Stylesheet/Theme.css`)}`,
"--includeVersion",
"--out ./Documentation",
`--plugin ${resolve(`${Current}/../../Target/Variable/Load.js`)}`,
"--plugin typedoc-plugin-remove-references",
"--plugin typedoc-plugin-rename-defaults",
"--plugin typedoc-plugin-mdn-links",
"--plugin typedoc-plugin-zod",
"--plugin typedoc-plugin-merge-modules",
"--plugin typedoc-plugin-keywords",
"--searchInComments",
`--keywords ${
(
await (
await import("../Function/JSON.js")
).default("package.json", process.cwd())
)?.keywords?.join(" --keywords ") ?? " typescript-esbuild "
}`,
"--theme TypeScriptESBuild",
"--entryPointStrategy expand",
"--mergeModulesRenameDefaults",
"--mergeModulesMergeMode module",
`--entryPoints ${Object.values(Configuration.entryPoints).join(
" --entryPoints ",
)}`,
].join(" "),
);
}) satisfies Type as Type;

import type Type from "../Interface/Build.js";
Expand Down
49 changes: 0 additions & 49 deletions Source/Stylesheet/Theme.css

This file was deleted.

4 changes: 0 additions & 4 deletions Source/Variable/ESBuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ export default {
from: "./Source/Notation/TypeScript.json",
to: "./Notation/",
},
{
from: "./Source/Stylesheet/Theme.css",
to: "./Stylesheet/",
},
],
}),
],
Expand Down
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"keywords": [
"javascript",
"typescript",
"esbuild",
"typedoc"
"esbuild"
],
"homepage": "https://github.com/Playform/TypeScriptESBuild#readme",
"bugs": {
Expand All @@ -19,9 +18,9 @@
},
"license": "SEE LICENSE IN LICENSE",
"author": {
"name": "Nikola R. Hristov",
"email": "Nikola@Playform.Cloud",
"url": "https://nikolahristov.tech"
"name": "Playform",
"email": "Hello@Playform.Cloud",
"url": "https://playform.cloud"
},
"type": "module",
"main": "./Target/Class/TypeScriptESBuild.js",
Expand Down

0 comments on commit 68838ed

Please sign in to comment.