-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: First frontend implements with environment
- Use TypeScript for codebase. - Use esbuild for bundle sources to ESModule. - Use biome for formatting and linting (with pre-commit). - Bundle generated file into Python package. Refs: #2
- Loading branch information
Showing
11 changed files
with
659 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,8 @@ repos: | |
- id: doc8 | ||
args: | ||
- --max-line-length=119 | ||
- repo: https://github.com/biomejs/pre-commit | ||
rev: "" | ||
hooks: | ||
- id: biome-check | ||
additional_dependencies: ["@biomejs/[email protected]"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json", | ||
"formatter": { | ||
"indentStyle": "space" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env node | ||
/** | ||
* Configuration to bundle scripts for esbuild. | ||
*/ | ||
import * as esbuild from "esbuild"; | ||
|
||
await esbuild.build({ | ||
entryPoints: ["src/frontend/main.ts"], | ||
bundle: true, | ||
minify: process.env.NODE_ENV === "production", | ||
sourcemap: process.env.NODE_ENV !== "production", | ||
outfile: "src/atsphinx/mini18n/_static/atsphinx-mini18n.js", | ||
target: ["chrome58", "firefox57", "safari11", "edge16"], | ||
}); |
Oops, something went wrong.