Skip to content

Commit

Permalink
Name change & version & deps update
Browse files Browse the repository at this point in the history
  • Loading branch information
corrideat committed Sep 11, 2024
1 parent 5831186 commit 9db1083
Show file tree
Hide file tree
Showing 16 changed files with 346 additions and 373 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright © 2021 Exact Realty Limited.
/* Copyright © 2021 Apeleg Limited.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down
2 changes: 1 addition & 1 deletion .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright © 2021 Exact Realty Limited.
/* Copyright © 2021 Apeleg Limited.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright © 2022 Exact Realty Limited
Copyright © 2022 Apeleg Limited

Permission to use, copy, modify, and distribute this software for any purpose
with or without fee is hereby granted, provided that the above copyright notice
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,35 @@
[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=Exact-Realty_esbuild-plugin-inline-js&metric=bugs)](https://sonarcloud.io/summary/new_code?id=Exact-Realty_esbuild-plugin-inline-js)
[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=Exact-Realty_esbuild-plugin-inline-js&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=Exact-Realty_esbuild-plugin-inline-js)
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=Exact-Realty_esbuild-plugin-inline-js&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=Exact-Realty_esbuild-plugin-inline-js)
![NPM Downloads](https://img.shields.io/npm/dw/@exact-realty/esbuild-plugin-inline-js?style=flat-square)
![NPM Downloads](https://img.shields.io/npm/dw/@apeleghq/esbuild-plugin-inline-js?style=flat-square)

## How to use

### Installing

```sh
npm i -D @exact-realty/esbuild-plugin-inline-js
npm i -D @apeleghq/esbuild-plugin-inline-js
```

### Configuring esbuild

In the file you have your configuration, first import this plugin

```js
const inlineJs = require('@exact-realty/esbuild-plugin-inline-js');
const inlineJs = require('@apeleghq/esbuild-plugin-inline-js');
```

Or using ES module syntax:

```js
import inlineJs from '@exact-realty/esbuild-plugin-inline-js';
import inlineJs from '@apeleghq/esbuild-plugin-inline-js';
```

Then, in your esbuild configuration, add `inlineJs()` to the `plugins` list. `inlineJs` optionally takes an object that is passed to `esbuild.build`, with the exception of the following keys: `entryPoints`, `outdir`, `outfile` and `write`. Minimal example:

```js
const esbuild = require('esbuild');
const responsiveImages = require('@exact-realty/esbuild-plugin-inline-js');
const responsiveImages = require('@apeleghq/esbuild-plugin-inline-js');

await esbuild
.build({
Expand Down
2 changes: 1 addition & 1 deletion SECURITY
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ vulnerabilities that you may discover.

If you believe you have found a security vulnerability in our software, please
let us know immediately. You may find our contact information at
<https://exact.realty/.well-known/security.txt>. Please include the following
<https://apeleg.com/.well-known/security.txt>. Please include the following
information in your report:

* A brief description of the vulnerability
Expand Down
2 changes: 1 addition & 1 deletion esbuild.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node

/* Copyright © 2021 Exact Realty Limited.
/* Copyright © 2021 Apeleg Limited.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Expand Down
Loading

0 comments on commit 9db1083

Please sign in to comment.