Skip to content

Commit

Permalink
Merge pull request #2 from ItinerisLtd/transfer-package
Browse files Browse the repository at this point in the history
transfer package ownership and bump version
  • Loading branch information
danlapteacru authored Sep 3, 2024
2 parents 01013a0 + 5832a57 commit ebf8a38
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 8 deletions.
25 changes: 19 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,36 @@

## Installation

Install **bud-favicons** to your project.
Install **@itinerisltd/bud-favicons** to your project.

Yarn:

```sh
yarn add bud-favicons --dev
yarn add @itinerisltd/bud-favicons --dev
```

npm:

```sh
npm install bud-favicons --save-dev
npm install @itinerisltd/bud-favicons --save-dev
```

## Configuration

**bud-favicons** works with zero configuration. But there is a robust and developer friendly configuration API should you need to make a modification to the provided defaults.
At the top of your `bud.config.ts` file, import the extension:

```ts title=bud.config.ts
import BudFavicons from "@itinerisltd/bud-favicons";
```

Then, add the extension to your Bud instance:

```ts title=bud.config.ts
bud
.use(BudFavicons);
```

**@itinerisltd/bud-favicons** works with zero configuration. But there is a robust and developer friendly configuration API should you need to make a modification to the provided defaults.
You can see the full list of options in the [favicons documentation](https://github.com/itgalaxy/favicons#usage).

## Default configuration
Expand All @@ -55,9 +68,9 @@ const options = {
};
```

## Configuration with `bud.favicons.config`
## Configuration with `bud.favicons.setup`

You can configure `favicons` with the `bud.favicons` method:
You can configure `favicons` with the `bud.favicons.setup` method:

```ts title=bud.config.ts
bud.favicons.setup({
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bud-favicons",
"version": "0.0.15",
"name": "@itinerisltd/bud-favicons",
"version": "0.1.0",
"description": "Bud.js extension to automatically generate favicons.",
"main": "index.js",
"license": "MIT",
Expand All @@ -10,6 +10,9 @@
"url": "https://github.com/ItinerisLtd/bud-favicons.git",
"directory": "sources/bud-favicons"
},
"publishConfig": {
"access": "public"
},
"bugs": "https://github.com/ItinerisLtd/bud-favicons/issues",
"keywords": [
"bud",
Expand Down

0 comments on commit ebf8a38

Please sign in to comment.