Skip to content

Commit

Permalink
squash!
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Oct 14, 2023
1 parent 1a09610 commit 737aa04
Show file tree
Hide file tree
Showing 17 changed files with 102 additions and 213 deletions.
87 changes: 40 additions & 47 deletions Configuration/ESBuild.js
Original file line number Diff line number Diff line change
@@ -1,49 +1,42 @@
export default {
color: true,
format: "esm",
metafile: true,
minify: true,
outdir: "Target",
platform: "node",
target: "esnext",
write: true,
logLevel: "debug",
plugins: [
{
name: "Target",
setup({ onStart, initialOptions: { outdir } }) {
onStart(async () => {
try {
outdir
? await (
await import("fs/promises")
).rm(outdir, {
recursive: true,
})
: {};
} catch (_Error) {
console.log(_Error);
}
});
},
},
(await import("esbuild-plugin-copy")).copy({
resolveFrom: "out",
assets: [
{
from: "./Source/Notation/biome.json",
to: "./Notation/",
},
],
}),
],
define: {
"process.env.VERSION_PACKAGE": `'${
(
await (
await import("typescript-esbuild/Target/Function/JSON.js")
).default("package.json")
)?.version
}'`,
},
color: true,
format: "esm",
metafile: true,
minify: true,
outdir: "Target",
platform: "node",
target: "esnext",
write: true,
logLevel: "debug",
plugins: [
{
name: "Target",
setup({ onStart, initialOptions: { outdir } }) {
onStart(async () => {
try {
outdir
? await (await import("fs/promises")).rm(outdir, {
recursive: true,
})
: {};
}
catch (_Error) {
console.log(_Error);
}
});
},
},
(await import("esbuild-plugin-copy")).copy({
resolveFrom: "out",
assets: [
{
from: "./Source/Notation/Biome.json",
to: "./Notation/",
},
],
}),
],
define: {
"process.env.VERSION_PACKAGE": `'${(await (await import("typescript-esbuild/Target/Function/JSON.js")).default("package.json"))?.version}'`,
},
};
1 change: 1 addition & 0 deletions Source/Function/Integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export default (_Option: Option = {}): AstroIntegration => {
const _Biome = await (
// @TODO: Import proper API
// await import()
await import('@biomejs/biome').default
).Biome.create({
distribution:
// @TODO: Import proper distribution
Expand Down
5 changes: 0 additions & 5 deletions Target/Function/Config.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion Target/Function/Config.js

This file was deleted.

29 changes: 0 additions & 29 deletions Target/Function/Integration.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion Target/Function/Integration.js

This file was deleted.

10 changes: 0 additions & 10 deletions Target/Interface/Option.d.ts

This file was deleted.

Empty file removed Target/Interface/Option.js
Empty file.
8 changes: 0 additions & 8 deletions Target/Interface/Rome.d.ts

This file was deleted.

Empty file removed Target/Interface/Rome.js
Empty file.
57 changes: 57 additions & 0 deletions Target/Notation/Biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"$schema": "https://biomejs.dev/schemas/1.2.2/schema.json",
"organizeImports": {
"enabled": true
},
"formatter": {
"enabled": true,
"formatWithErrors": true,
"indentWidth": 4,
"indentStyle": "tab",
"lineWidth": 80
},
"javascript": {
"formatter": {
"enabled": true,
"arrowParentheses": "always",
"indentStyle": "tab",
"indentWidth": 4,
"jsxQuoteStyle": "double",
"lineWidth": 80,
"quoteProperties": "asNeeded",
"quoteStyle": "double",
"semicolons": "always",
"trailingComma": "all"
}
},
"linter": {
"enabled": true,
"rules": {
"a11y": {
"all": true
},
"all": true,
"complexity": {
"all": true
},
"correctness": {
"all": true
},
"nursery": {
"all": true
},
"performance": {
"all": true
},
"security": {
"all": true
},
"style": {
"all": true
},
"suspicious": {
"all": true
}
}
}
}
79 changes: 0 additions & 79 deletions Target/Notation/rome.json

This file was deleted.

25 changes: 0 additions & 25 deletions Target/Variable/Option.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion Target/Variable/Option.js

This file was deleted.

6 changes: 0 additions & 6 deletions Target/Variable/Rome.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion Target/Variable/Rome.js

This file was deleted.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
"prepublishOnly": "TypeScriptESBuild 'Source/**/*.ts' -es Configuration/ESBuild.ts"
},
"dependencies": {
"@biomejs/backend-jsonrpc": "1.2.2",
"@biomejs/biome": "1.2.2",
"@biomejs/js-api": "0.3.0-nightly.cfef948",
"@biomejs/wasm-nodejs": "1.2.2",
"deepmerge-ts": "5.1.0",
"files-pipe": "2.0.20"
},
Expand Down

0 comments on commit 737aa04

Please sign in to comment.