From a511510982c576e5132b38c1d7495372d0b3c947 Mon Sep 17 00:00:00 2001 From: "Nikola R. Hristov" Date: Sun, 31 Mar 2024 17:18:30 +0300 Subject: [PATCH] BiomeAstro/v0.0.1 --- CHANGELOG.md | 36 ------------------- .../Configuration.configuration.html | 2 +- .../functions/Configuration.readFile.html | 8 ++--- .../functions/Configuration.resolve.html | 4 +-- .../functions/Integration.Merge.html | 4 +-- .../functions/Integration.integration.html | 2 +- Documentation/index.html | 34 +++++++++--------- .../interfaces/Configuration.Type.html | 2 +- .../interfaces/Integration.Type.html | 2 +- Documentation/interfaces/Option.Type.html | 14 ++++---- Documentation/modules/Biome.html | 4 +-- Documentation/modules/Configuration.html | 4 +-- Documentation/modules/Integration.html | 4 +-- Documentation/modules/Option.html | 4 +-- Documentation/types/Biome.Type.html | 2 +- Documentation/variables/Biome.biome.html | 2 +- .../variables/Integration.Default.html | 2 +- Documentation/variables/Option.option.html | 2 +- README.md | 24 ++++++------- Source/Function/Integration.ts | 2 +- Target/Function/Integration.js | 2 +- package.json | 8 ++--- 22 files changed, 66 insertions(+), 102 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e7911a..43d7b3d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,39 +1,3 @@ -## 0.0.10 - -- Cleanup - -## 0.0.9 - -- Cleanup - -## 0.0.8 - -- Cleanup - -## 0.0.7 - -- Cleanup - -## 0.0.6 - -- Cleanup - -## 0.0.5 - -- Cleanup - -## 0.0.4 - -- Cleanup - -## 0.0.3 - -- Cleanup - -## 0.0.2 - -- Cleanup - ## 0.0.1 - Initial version diff --git a/Documentation/functions/Configuration.configuration.html b/Documentation/functions/Configuration.configuration.html index 393eee8..4653b81 100644 --- a/Documentation/functions/Configuration.configuration.html +++ b/Documentation/functions/Configuration.configuration.html @@ -1 +1 @@ -configuration | astro-biome - v0.0.10

Generated using TypeDoc

\ No newline at end of file +configuration | @playform/biome-astro - v0.0.1

Generated using TypeDoc

\ No newline at end of file diff --git a/Documentation/functions/Configuration.readFile.html b/Documentation/functions/Configuration.readFile.html index 8ac3317..739eaf5 100644 --- a/Documentation/functions/Configuration.readFile.html +++ b/Documentation/functions/Configuration.readFile.html @@ -1,4 +1,4 @@ -readFile | astro-biome - v0.0.10
  • Asynchronously reads the entire contents of a file.

    +readFile | @playform/biome-astro - v0.0.1
    • Asynchronously reads the entire contents of a file.

      If no encoding is specified (using options.encoding), the data is returned as a Buffer object. Otherwise, the data will be a string.

      If options is a string, then it specifies the encoding.

      @@ -20,14 +20,14 @@

      Parameters

      • path: PathLike | FileHandle

        filename or FileHandle

      • Optional options: null | {
            encoding?: null;
            flag?: OpenMode;
        } & Abortable

      Returns Promise<Buffer>

      Fulfills with the contents of the file.

      Since

      v10.0.0

      -
    • Asynchronously reads the entire contents of a file.

      +
    • Asynchronously reads the entire contents of a file.

      Parameters

      • path: PathLike | FileHandle

        A path to a file. If a URL is provided, it must use the file: protocol. If a FileHandle is provided, the underlying file will not be closed automatically.

      • options: {
            encoding: BufferEncoding;
            flag?: OpenMode | undefined;
        } & Abortable | BufferEncoding

        An object that may contain an optional flag. If a flag is not provided, it defaults to 'r'.

        -

      Returns Promise<string>

    • Asynchronously reads the entire contents of a file.

      +

    Returns Promise<string>

  • Asynchronously reads the entire contents of a file.

    Parameters

    • path: PathLike | FileHandle

      A path to a file. If a URL is provided, it must use the file: protocol. If a FileHandle is provided, the underlying file will not be closed automatically.

    • Optional options: null | BufferEncoding | ObjectEncodingOptions & Abortable & {
          flag?: OpenMode | undefined;
      }

      An object that may contain an optional flag. If a flag is not provided, it defaults to 'r'.

      -

    Returns Promise<string | Buffer>

Generated using TypeDoc

\ No newline at end of file +

Returns Promise<string | Buffer>

Generated using TypeDoc

\ No newline at end of file diff --git a/Documentation/functions/Configuration.resolve.html b/Documentation/functions/Configuration.resolve.html index 6e0cbce..8ca8cd7 100644 --- a/Documentation/functions/Configuration.resolve.html +++ b/Documentation/functions/Configuration.resolve.html @@ -1,4 +1,4 @@ -resolve | astro-biome - v0.0.10
  • The right-most parameter is considered {to}. Other parameters are considered an array of {from}.

    +resolve | @playform/biome-astro - v0.0.1
    • The right-most parameter is considered {to}. Other parameters are considered an array of {from}.

      Starting from leftmost {from} parameter, resolves {to} to an absolute path.

      If {to} isn't already absolute, {from} arguments are prepended in right to left order, until an absolute path is found. If after using all {from} paths still no absolute path is found, @@ -6,4 +6,4 @@ and trailing slashes are removed unless the path gets resolved to the root directory.

      Parameters

      • Rest ...paths: string[]

        A sequence of paths or path segments.

      Returns string

      Throws

      if any of the arguments is not a string.

      -

    Generated using TypeDoc

    \ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/Documentation/functions/Integration.Merge.html b/Documentation/functions/Integration.Merge.html index 49a7ca6..f3bdf0d 100644 --- a/Documentation/functions/Integration.Merge.html +++ b/Documentation/functions/Integration.Merge.html @@ -1,2 +1,2 @@ -Merge | astro-biome - v0.0.10
  • Merges multiple objects of type Ts using the provided merge functions and built-in metadata.

    -

    Type Parameters

    • Ts extends readonly unknown[]

    Parameters

    • Rest ...Objects: Ts

    Returns DeepMergeHKT<Ts, Readonly<{
        DeepMergeArraysURI: "DeepMergeLeafURI";
        DeepMergeMapsURI: "DeepMergeMapsDefaultURI";
        DeepMergeOthersURI: "DeepMergeLeafURI";
        DeepMergeRecordsURI: "DeepMergeRecordsDefaultURI";
        DeepMergeSetsURI: "DeepMergeSetsDefaultURI";
    }>, Readonly<{
        key: PropertyKey;
        parents: readonly Readonly<Record<PropertyKey, unknown>>[];
    }>>

Generated using TypeDoc

\ No newline at end of file +Merge | @playform/biome-astro - v0.0.1
  • Merges multiple objects of type Ts using the provided merge functions and built-in metadata.

    +

    Type Parameters

    • Ts extends readonly unknown[]

    Parameters

    • Rest ...Objects: Ts

    Returns DeepMergeHKT<Ts, Readonly<{
        DeepMergeArraysURI: "DeepMergeLeafURI";
        DeepMergeMapsURI: "DeepMergeMapsDefaultURI";
        DeepMergeOthersURI: "DeepMergeLeafURI";
        DeepMergeRecordsURI: "DeepMergeRecordsDefaultURI";
        DeepMergeSetsURI: "DeepMergeSetsDefaultURI";
    }>, Readonly<{
        key: PropertyKey;
        parents: readonly Readonly<Record<PropertyKey, unknown>>[];
    }>>

Generated using TypeDoc

\ No newline at end of file diff --git a/Documentation/functions/Integration.integration.html b/Documentation/functions/Integration.integration.html index 435505b..4beca3f 100644 --- a/Documentation/functions/Integration.integration.html +++ b/Documentation/functions/Integration.integration.html @@ -1 +1 @@ -integration | astro-biome - v0.0.10

Generated using TypeDoc

\ No newline at end of file +integration | @playform/biome-astro - v0.0.1

Generated using TypeDoc

\ No newline at end of file diff --git a/Documentation/index.html b/Documentation/index.html index 56e8b30..19b4fdd 100644 --- a/Documentation/index.html +++ b/Documentation/index.html @@ -1,11 +1,11 @@ -astro-biome - v0.0.10

astro-biome - v0.0.10

Astro
Related:


Stars
Compress
🗜️ Compress Astro.


Build
Dependencies
Version
Downloads


Stars
Critters
🦔 Inline CSS.


Build
Dependencies
Version
Downloads

+@playform/biome-astro - v0.0.1

@playform/biome-astro - v0.0.1

Astro
Related:


Stars
Compress
🗜️ Compress Astro.


Build
Dependencies
Version
Downloads


Stars
Critters
🦔 Inline CSS.


Build
Dependencies
Version
Downloads

-

🗻 AstroBiome

This Astro integration brings Biome tools your Astro +

🗻 BiomeAstro

This Astro integration brings Biome tools your Astro project.

Biome

Note

-

AstroBiome will not lint / format your requests, only your statically +

BiomeAstro will not lint / format your requests, only your statically generated build and pre-rendered routes.

Installation

There are two ways to add integrations to your project. Let's try the most @@ -16,24 +16,24 @@

  • (Optionally) Install all necessary dependencies and peer dependencies
  • (Also optionally) Update your astro.config.* file to apply this integration
  • -

    To install AstroBiome, run the following from your project directory and +

    To install BiomeAstro, run the following from your project directory and follow the prompts:

    Using NPM:

    -
    npx astro add astro-biome
    +
    npx astro add @playform/biome-astro
     

    Using Yarn:

    -
    yarn astro add astro-biome
    +
    yarn astro add @playform/biome-astro
     

    Using PNPM:

    -
    pnpx astro add astro-biome
    +
    pnpx astro add @playform/biome-astro
     
    -

    Install dependencies manually

    First, install the AstroBiome integration like so:

    -
    npm install -D -E astro-biome
    +

    Install dependencies manually

    First, install the BiomeAstro integration like so:

    +
    npm install -D -E @playform/biome-astro
     

    Then, apply this integration to your astro.config.* file using the integrations property:

    astro.config.ts

    -
    import Biome from "astro-biome";

    export default { integrations: [Biome()] }; +
    import Biome from "@playform/biome-astro";

    export default { integrations: [Biome()] };

    Getting started

    The utility will now lint and format with Biome all of your JavaScript and TypeScript files, including CommonJS modules in the Astro outDir folder.

    @@ -43,7 +43,7 @@

    or disable them entirely:

    astro.config.ts

    -
    import Biome from "astro-biome";

    export default {
    integrations: [
    Biome({
    Biome: false,
    }),
    ],
    }; +
    import Biome from "@playform/biome-astro";

    export default {
    integrations: [
    Biome({
    Biome: false,
    }),
    ],
    };

    Note

    @@ -58,25 +58,25 @@

    Add Multiple Paths

    You can add multiple paths to validate / format by specifying an array as the Path variable.

    astro.config.ts

    -
    import Biome from "astro-biome";

    export default {
    integrations: [
    Biome({
    Path: ["./Target", "./Build"],
    }),
    ],
    }; +
    import Biome from "@playform/biome-astro";

    export default {
    integrations: [
    Biome({
    Path: ["./Target", "./Build"],
    }),
    ],
    };

    Input-Output Mapping

    You can also provide a map of paths for different input output directories:

    astro.config.ts

    -
    import Biome from "astro-biome";

    export default {
    integrations: [
    Biome({
    Path: new Map([["./Source", "./Target"]]),
    }),
    ],
    }; +
    import Biome from "@playform/biome-astro";

    export default {
    integrations: [
    Biome({
    Path: new Map([["./Source", "./Target"]]),
    }),
    ],
    };

    Or an array of the two:

    astro.config.ts

    -
    import Biome from "astro-biome";

    export default {
    integrations: [
    Biome({
    Path: [
    // Format Target
    "./Target",
    // Format Target one more time into a different directory
    new Map([["./Target", "./TargetInline"]]),
    ],
    }),
    ],
    }; +
    import Biome from "@playform/biome-astro";

    export default {
    integrations: [
    Biome({
    Path: [
    // Format Target
    "./Target",
    // Format Target one more time into a different directory
    new Map([["./Target", "./TargetInline"]]),
    ],
    }),
    ],
    };

    File Filtering

    You can provide a filter to exclude files from formatting. A filter can be an array of regexes or a single match. You can use functions, as well to match on file names:

    astro.config.ts

    -
    import Biome from "astro-biome";

    export default {
    integrations: [
    Biome({
    Exclude: [
    "Firebase.ts",
    (File: string) => File === "./Source/Library/File.ts",
    ],
    }),
    ],
    }; +
    import Biome from "@playform/biome-astro";

    export default {
    integrations: [
    Biome({
    Exclude: [
    "Firebase.ts",
    (File: string) => File === "./Source/Library/File.ts",
    ],
    }),
    ],
    };

    Controlling Logging

    Set Logger to 0 if you do not want to see debug messages. Default is 2:

    astro.config.ts

    -
    import Biome from "astro-biome";

    export default {
    integrations: [
    Biome({
    Logger: 0,
    }),
    ],
    }; +
    import Biome from "@playform/biome-astro";

    export default {
    integrations: [
    Biome({
    Logger: 0,
    }),
    ],
    };

    Changelog

    See CHANGELOG.md for a history of changes to this integration.

    -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/Documentation/interfaces/Configuration.Type.html b/Documentation/interfaces/Configuration.Type.html index 76848a6..4bb53ce 100644 --- a/Documentation/interfaces/Configuration.Type.html +++ b/Documentation/interfaces/Configuration.Type.html @@ -1 +1 @@ -Type | astro-biome - v0.0.10
    interface Type ((File) => Promise<string>)

    Generated using TypeDoc

    \ No newline at end of file +Type | @playform/biome-astro - v0.0.1
    interface Type ((File) => Promise<string>)

    Generated using TypeDoc

    \ No newline at end of file diff --git a/Documentation/interfaces/Integration.Type.html b/Documentation/interfaces/Integration.Type.html index 54f60fb..90dfe04 100644 --- a/Documentation/interfaces/Integration.Type.html +++ b/Documentation/interfaces/Integration.Type.html @@ -1 +1 @@ -Type | astro-biome - v0.0.10
    interface Type ((Option) => AstroIntegration)

    Generated using TypeDoc

    \ No newline at end of file +Type | @playform/biome-astro - v0.0.1
    interface Type ((Option) => AstroIntegration)

    Generated using TypeDoc

    \ No newline at end of file diff --git a/Documentation/interfaces/Option.Type.html b/Documentation/interfaces/Option.Type.html index c6062bb..3110ec2 100644 --- a/Documentation/interfaces/Option.Type.html +++ b/Documentation/interfaces/Option.Type.html @@ -1,4 +1,4 @@ -Type | astro-biome - v0.0.10

    Interface Type

    interface Type {
        Action?: boolean | default;
        Biome?: boolean | Type;
        Cache?: boolean | default;
        Exclude?: boolean | Type | Type[] | Set<Type>;
        File?: string | boolean | string[];
        Logger?: boolean | Type;
        Path?: boolean | Type | Type[] | Set<Type>;
    }

    Hierarchy

    • default
      • Type

    Properties

    Action? +Type | @playform/biome-astro - v0.0.1
    interface Type {
        Action?: boolean | default;
        Biome?: boolean | Type;
        Cache?: boolean | default;
        Exclude?: boolean | Type | Type[] | Set<Type>;
        File?: string | boolean | string[];
        Logger?: boolean | Type;
        Path?: boolean | Type | Type[] | Set<Type>;
    }

    Hierarchy

    • default
      • Type

    Properties

    Properties

    Action?: boolean | default

    Action pipe configuration.

    -
    Biome?: boolean | Type
    Cache?: boolean | default

    Configuration for the target cache.

    +
    Biome?: boolean | Type
    Cache?: boolean | default

    Configuration for the target cache.

    Default

    { Search: "./", Folder: "./Cache" }
     
    -
    Exclude?: boolean | Type | Type[] | Set<Type>

    Criteria for excluding files.

    -
    File?: string | boolean | string[]

    File patterns to be matched.

    -
    Logger?: boolean | Type

    Debugging level.

    +
    Exclude?: boolean | Type | Type[] | Set<Type>

    Criteria for excluding files.

    +
    File?: string | boolean | string[]

    File patterns to be matched.

    +
    Logger?: boolean | Type

    Debugging level.

    Default

    2
     
    -
    Path?: boolean | Type | Type[] | Set<Type>

    Configuration for the target path(s).

    +
    Path?: boolean | Type | Type[] | Set<Type>

    Configuration for the target path(s).

    Default

    "./Target"
     
    -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/Documentation/modules/Biome.html b/Documentation/modules/Biome.html index 2f9db7d..aacdd7a 100644 --- a/Documentation/modules/Biome.html +++ b/Documentation/modules/Biome.html @@ -1,3 +1,3 @@ -Biome | astro-biome - v0.0.10

    Module Biome

    Index

    Type Aliases

    Type +Biome | @playform/biome-astro - v0.0.1

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/Documentation/modules/Configuration.html b/Documentation/modules/Configuration.html index 22a9486..fe6dc6e 100644 --- a/Documentation/modules/Configuration.html +++ b/Documentation/modules/Configuration.html @@ -1,5 +1,5 @@ -Configuration | astro-biome - v0.0.10

    Module Configuration

    Index

    Interfaces

    Type +Configuration | @playform/biome-astro - v0.0.1

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/Documentation/modules/Integration.html b/Documentation/modules/Integration.html index a9e5c72..f75f569 100644 --- a/Documentation/modules/Integration.html +++ b/Documentation/modules/Integration.html @@ -1,5 +1,5 @@ -Integration | astro-biome - v0.0.10

    Module Integration

    Index

    Interfaces

    Type +Integration | @playform/biome-astro - v0.0.1

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/Documentation/modules/Option.html b/Documentation/modules/Option.html index 283ad46..7216870 100644 --- a/Documentation/modules/Option.html +++ b/Documentation/modules/Option.html @@ -1,3 +1,3 @@ -Option | astro-biome - v0.0.10

    Module Option

    Index

    Interfaces

    Type +Option | @playform/biome-astro - v0.0.1

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/Documentation/types/Biome.Type.html b/Documentation/types/Biome.Type.html index c33a903..baa40da 100644 --- a/Documentation/types/Biome.Type.html +++ b/Documentation/types/Biome.Type.html @@ -1 +1 @@ -Type | astro-biome - v0.0.10

    Type alias Type

    Type: Omit<Configuration, "$schema">

    Generated using TypeDoc

    \ No newline at end of file +Type | @playform/biome-astro - v0.0.1

    Generated using TypeDoc

    \ No newline at end of file diff --git a/Documentation/variables/Biome.biome.html b/Documentation/variables/Biome.biome.html index a729988..2fb994f 100644 --- a/Documentation/variables/Biome.biome.html +++ b/Documentation/variables/Biome.biome.html @@ -1 +1 @@ -biome | astro-biome - v0.0.10

    Generated using TypeDoc

    \ No newline at end of file +biome | @playform/biome-astro - v0.0.1

    Generated using TypeDoc

    \ No newline at end of file diff --git a/Documentation/variables/Integration.Default.html b/Documentation/variables/Integration.Default.html index f1efb67..1c467fe 100644 --- a/Documentation/variables/Integration.Default.html +++ b/Documentation/variables/Integration.Default.html @@ -1 +1 @@ -Default | astro-biome - v0.0.10
    Default: Omit<DeepMergeRecordsDefaultHKTInternalProps<[{
        Action: {
            Accomplished: ((__namedParameters) => Promise<string>);
            Changed: ((Plan) => Promise<any>);
            Failed: ((__namedParameters) => Promise<string>);
            Fulfilled: ((__namedParameters) => Promise<string | false>);
            Passed: ((On) => Promise<true>);
            Read: ((__namedParameters) => Promise<string>);
            Wrote: ((__namedParameters) => Promise<any>);
        };
        Cache: {
            Folder: string;
            Search: string;
        };
        Exclude: false;
        File: string;
        Logger: 2;
        Path: string;
    }, {
        Action: {
            Accomplished: ((On) => Promise<string>);
            Failed: ((On) => Promise<string>);
            Fulfilled: ((__namedParameters) => Promise<string | false>);
        };
        Biome: any;
    }], Readonly<{
        DeepMergeArraysURI: "DeepMergeLeafURI";
        DeepMergeMapsURI: "DeepMergeMapsDefaultURI";
        DeepMergeOthersURI: "DeepMergeLeafURI";
        DeepMergeRecordsURI: "DeepMergeRecordsDefaultURI";
        DeepMergeSetsURI: "DeepMergeSetsDefaultURI";
    }>, Readonly<{
        key: PropertyKey;
        parents: readonly Readonly<Record<PropertyKey, unknown>>[];
    }>>, "__proto__">

    Generated using TypeDoc

    \ No newline at end of file +Default | @playform/biome-astro - v0.0.1
    Default: Omit<DeepMergeRecordsDefaultHKTInternalProps<[{
        Action: {
            Accomplished: ((__namedParameters) => Promise<string>);
            Changed: ((Plan) => Promise<any>);
            Failed: ((__namedParameters) => Promise<string>);
            Fulfilled: ((__namedParameters) => Promise<string | false>);
            Passed: ((On) => Promise<true>);
            Read: ((__namedParameters) => Promise<string>);
            Wrote: ((__namedParameters) => Promise<any>);
        };
        Cache: {
            Folder: string;
            Search: string;
        };
        Exclude: false;
        File: string;
        Logger: 2;
        Path: string;
    }, {
        Action: {
            Accomplished: ((On) => Promise<string>);
            Failed: ((On) => Promise<string>);
            Fulfilled: ((__namedParameters) => Promise<string | false>);
        };
        Biome: any;
    }], Readonly<{
        DeepMergeArraysURI: "DeepMergeLeafURI";
        DeepMergeMapsURI: "DeepMergeMapsDefaultURI";
        DeepMergeOthersURI: "DeepMergeLeafURI";
        DeepMergeRecordsURI: "DeepMergeRecordsDefaultURI";
        DeepMergeSetsURI: "DeepMergeSetsDefaultURI";
    }>, Readonly<{
        key: PropertyKey;
        parents: readonly Readonly<Record<PropertyKey, unknown>>[];
    }>>, "__proto__">

    Generated using TypeDoc

    \ No newline at end of file diff --git a/Documentation/variables/Option.option.html b/Documentation/variables/Option.option.html index c541e61..4176fba 100644 --- a/Documentation/variables/Option.option.html +++ b/Documentation/variables/Option.option.html @@ -1 +1 @@ -option | astro-biome - v0.0.10
    option: Omit<DeepMergeRecordsDefaultHKTInternalProps<[{
        Action: {
            Accomplished: ((__namedParameters) => Promise<string>);
            Changed: ((Plan) => Promise<any>);
            Failed: ((__namedParameters) => Promise<string>);
            Fulfilled: ((__namedParameters) => Promise<string | false>);
            Passed: ((On) => Promise<true>);
            Read: ((__namedParameters) => Promise<string>);
            Wrote: ((__namedParameters) => Promise<any>);
        };
        Cache: {
            Folder: string;
            Search: string;
        };
        Exclude: false;
        File: string;
        Logger: 2;
        Path: string;
    }, {
        Action: {
            Accomplished: ((On) => Promise<string>);
            Failed: ((On) => Promise<string>);
            Fulfilled: ((__namedParameters) => Promise<string | false>);
        };
        Biome: any;
    }], Readonly<{
        DeepMergeArraysURI: "DeepMergeLeafURI";
        DeepMergeMapsURI: "DeepMergeMapsDefaultURI";
        DeepMergeOthersURI: "DeepMergeLeafURI";
        DeepMergeRecordsURI: "DeepMergeRecordsDefaultURI";
        DeepMergeSetsURI: "DeepMergeSetsDefaultURI";
    }>, Readonly<{
        key: PropertyKey;
        parents: readonly Readonly<Record<PropertyKey, unknown>>[];
    }>>, "__proto__">

    Generated using TypeDoc

    \ No newline at end of file +option | @playform/biome-astro - v0.0.1
    option: Omit<DeepMergeRecordsDefaultHKTInternalProps<[{
        Action: {
            Accomplished: ((__namedParameters) => Promise<string>);
            Changed: ((Plan) => Promise<any>);
            Failed: ((__namedParameters) => Promise<string>);
            Fulfilled: ((__namedParameters) => Promise<string | false>);
            Passed: ((On) => Promise<true>);
            Read: ((__namedParameters) => Promise<string>);
            Wrote: ((__namedParameters) => Promise<any>);
        };
        Cache: {
            Folder: string;
            Search: string;
        };
        Exclude: false;
        File: string;
        Logger: 2;
        Path: string;
    }, {
        Action: {
            Accomplished: ((On) => Promise<string>);
            Failed: ((On) => Promise<string>);
            Fulfilled: ((__namedParameters) => Promise<string | false>);
        };
        Biome: any;
    }], Readonly<{
        DeepMergeArraysURI: "DeepMergeLeafURI";
        DeepMergeMapsURI: "DeepMergeMapsDefaultURI";
        DeepMergeOthersURI: "DeepMergeLeafURI";
        DeepMergeRecordsURI: "DeepMergeRecordsDefaultURI";
        DeepMergeSetsURI: "DeepMergeSetsDefaultURI";
    }>, Readonly<{
        key: PropertyKey;
        parents: readonly Readonly<Record<PropertyKey, unknown>>[];
    }>>, "__proto__">

    Generated using TypeDoc

    \ No newline at end of file diff --git a/README.md b/README.md index 9015b75..db7b2ee 100644 --- a/README.md +++ b/README.md @@ -31,19 +31,19 @@ follow the prompts: Using NPM: ```sh -npx astro add biome-astro +npx astro add @playform/biome-astro ``` Using Yarn: ```sh -yarn astro add biome-astro +yarn astro add @playform/biome-astro ``` Using PNPM: ```sh -pnpx astro add biome-astro +pnpx astro add @playform/biome-astro ``` ### Install dependencies manually @@ -51,7 +51,7 @@ pnpx astro add biome-astro First, install the `BiomeAstro` integration like so: ```sh -npm install -D -E biome-astro +npm install -D -E @playform/biome-astro ``` Then, apply this integration to your `astro.config.*` file using the @@ -60,7 +60,7 @@ Then, apply this integration to your `astro.config.*` file using the **`astro.config.ts`** ```ts -import Biome from "biome-astro"; +import Biome from "@playform/biome-astro"; export default { integrations: [Biome()] }; ``` @@ -79,7 +79,7 @@ or disable them entirely: **`astro.config.ts`** ```ts -import Biome from "biome-astro"; +import Biome from "@playform/biome-astro"; export default { integrations: [ @@ -108,7 +108,7 @@ You can add multiple paths to validate / format by specifying an array as the **`astro.config.ts`** ```ts -import Biome from "biome-astro"; +import Biome from "@playform/biome-astro"; export default { integrations: [ @@ -126,7 +126,7 @@ You can also provide a map of paths for different input output directories: **`astro.config.ts`** ```ts -import Biome from "biome-astro"; +import Biome from "@playform/biome-astro"; export default { integrations: [ @@ -142,7 +142,7 @@ Or an array of the two: **`astro.config.ts`** ```ts -import Biome from "biome-astro"; +import Biome from "@playform/biome-astro"; export default { integrations: [ @@ -167,7 +167,7 @@ file names: **`astro.config.ts`** ```ts -import Biome from "biome-astro"; +import Biome from "@playform/biome-astro"; export default { integrations: [ @@ -188,7 +188,7 @@ Set `Logger` to `0` if you do not want to see debug messages. Default is `2`: **`astro.config.ts`** ```ts -import Biome from "biome-astro"; +import Biome from "@playform/biome-astro"; export default { integrations: [ @@ -199,7 +199,7 @@ export default { }; ``` -[BiomeAstro]: https://npmjs.org/biome-astro +[BiomeAstro]: https://npmjs.org/@playform/biome-astro [Biome]: https://npmjs.org/@biomejs/biome [astro-integration]: https://docs.astro.build/en/guides/integrations-guide/ diff --git a/Source/Function/Integration.ts b/Source/Function/Integration.ts index 212e3b3..0dd7db4 100644 --- a/Source/Function/Integration.ts +++ b/Source/Function/Integration.ts @@ -26,7 +26,7 @@ export default ((...[_Option = {}]: Parameters) => { } return { - name: "biome-astro", + name: "@playform/biome-astro", hooks: { "astro:build:done": async ({ dir: Dir }) => { if (!Paths.size) { diff --git a/Target/Function/Integration.js b/Target/Function/Integration.js index e3682ef..cc87e0e 100644 --- a/Target/Function/Integration.js +++ b/Target/Function/Integration.js @@ -1 +1 @@ -var l=(...[o={}])=>{Object.entries(o).forEach(([t,a])=>Object.defineProperty(o,t,{value:a===!0?s[t]:o[t]}));const{Path:r,Cache:c,Logger:p,Exclude:m,Action:u,Biome:n}=f(s,o),i=new Set;return typeof r<"u"&&(Array.isArray(r)||r instanceof Set)&&r.forEach(t=>i.add(t)),{name:"astro-biome",hooks:{"astro:build:done":async({dir:t})=>{i.size||i.add(t);const a=await(await import("@biomejs/js-api")).Biome.create({distribution:(await import("@biomejs/js-api")).Distribution.NODE}),y=f(u,{Wrote:async e=>{try{return a.formatContent(e.Buffer.toString(),{filePath:(await import("path")).resolve(e.Input)}).content}catch{return e.Buffer}}});try{typeof n=="object"&&a&&(n.$schema=void 0,a.applyConfiguration(n))}catch(e){console.log(e)}for(const e of i)await(await(await(await new(await import("files-pipe")).default(c,p).In(e)).By("**/*.{js,mjs,cjs,ts,json}")).Not(m)).Pipe(y)}}}};const{default:s}=await import("../Variable/Option.js"),{default:f}=await import("typescript-esbuild/Target/Function/Merge.js");export{s as Default,f as Merge,l as default}; +var l=(...[o={}])=>{Object.entries(o).forEach(([t,a])=>Object.defineProperty(o,t,{value:a===!0?s[t]:o[t]}));const{Path:r,Cache:c,Logger:p,Exclude:m,Action:y,Biome:n}=f(s,o),i=new Set;return typeof r<"u"&&(Array.isArray(r)||r instanceof Set)&&r.forEach(t=>i.add(t)),{name:"@playform/biome-astro",hooks:{"astro:build:done":async({dir:t})=>{i.size||i.add(t);const a=await(await import("@biomejs/js-api")).Biome.create({distribution:(await import("@biomejs/js-api")).Distribution.NODE}),u=f(y,{Wrote:async e=>{try{return a.formatContent(e.Buffer.toString(),{filePath:(await import("path")).resolve(e.Input)}).content}catch{return e.Buffer}}});try{typeof n=="object"&&a&&(n.$schema=void 0,a.applyConfiguration(n))}catch(e){console.log(e)}for(const e of i)await(await(await(await new(await import("files-pipe")).default(c,p).In(e)).By("**/*.{js,mjs,cjs,ts,json}")).Not(m)).Pipe(u)}}}};const{default:s}=await import("../Variable/Option.js"),{default:f}=await import("typescript-esbuild/Target/Function/Merge.js");export{s as Default,f as Merge,l as default}; diff --git a/package.json b/package.json index 201a540..61956c2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "biome-astro", - "version": "0.0.10", + "name": "@playform/biome-astro", + "version": "0.0.1", "private": false, "description": "🗻 Biome Format.", "keywords": [ @@ -44,8 +44,8 @@ "devDependencies": { "astro": "4.5.12", "esbuild-plugin-copy": "2.1.1", - "typescript-document": "0.0.7", - "typescript-esbuild": "0.4.9" + "typescript-document": "0.0.8", + "typescript-esbuild": "0.4.10" }, "publishConfig": { "access": "public"