Skip to content

Commit bdcee91

Browse files
committed
bump 0.0.9
1 parent 9a359b6 commit bdcee91

5 files changed

Lines changed: 10 additions & 9 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ This happens on the browser side, so we need a web extension.
6565
```shell
6666
npx localhostify --chrome-ext
6767
```
68-
This command will create a folder ".localhostify-ext" on your project. Load it on Chrome. That's all!.
68+
This command will create a folder "localhostify-ext" on your project. Load it on Chrome. That's all!.
6969
Note: if you update your .localhostify.js config, please execute again `npx localhostify --chrome-ext` to update also the ext.
7070
It the browser is opened, refresh all the exstensions.
71-
72-
71+
</br></br>
72+
---
7373
### 👏 Contributing
7474

7575
If you are interested in contributing to `localhostify`, open an issue or a pr!

bin/createConfig.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const config = require(process.cwd() + '/.localhostify.js');
44
const externalRedirects = Object.values(config).reduce((all, v) => [...all, ...v.externalRedirects], []);
55
const chromeConfig = '__LOCALHOSTIFY__ = ' + JSON.stringify({ externalRedirects }, 0, 3);
66

7-
const extDir = process.cwd() + '/.localhostify-ext';
7+
const extDir = process.cwd() + '/localhostify-ext';
88

99
if (!fs.existsSync(extDir)) {
1010
fs.mkdirSync(extDir);
@@ -14,8 +14,9 @@ if (!fs.existsSync(extDir + '/scripts')) {
1414
}
1515

1616
fs.writeFileSync(process.cwd() + '/localhostify-ext/config.js', chromeConfig);
17-
fs.copyFileSync(__dirname + '/../chrome-ext/manifest.json', process.cwd() + '/.localhostify-ext/manifest.json');
18-
fs.copyFileSync(__dirname + '/../chrome-ext/scripts/http.js', process.cwd() + '/.localhostify-ext/scripts/http.js');
19-
fs.copyFileSync(__dirname + '/../chrome-ext/scripts/fetch.js', process.cwd() + '/.localhostify-ext/scripts/fetch.js');
17+
fs.copyFileSync(__dirname + '/../chrome-ext/icon_128.png', process.cwd() + '/localhostify-ext/icon_128.png');
18+
fs.copyFileSync(__dirname + '/../chrome-ext/manifest.json', process.cwd() + '/localhostify-ext/manifest.json');
19+
fs.copyFileSync(__dirname + '/../chrome-ext/scripts/http.js', process.cwd() + '/localhostify-ext/scripts/http.js');
20+
fs.copyFileSync(__dirname + '/../chrome-ext/scripts/fetch.js', process.cwd() + '/localhostify-ext/scripts/fetch.js');
2021

2122
console.log("Localhostify: Chrome Ext created in localhostify-ext folder.");

chrome-ext/icon_128.png

17.8 KB
Loading

chrome-ext/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Localhostify",
3-
"version": "0.0.5",
3+
"version": "0.0.9",
44
"manifest_version": 2,
55
"description": "Localhostify: External redirects interceptor",
66
"author": "Salvatore Ravidà",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "localhostify",
3-
"version": "0.0.5",
3+
"version": "0.0.9",
44
"description": "Easy HTTP reverse proxy - localhost:3001 -> prod.domain.com",
55
"source": "src/index.js",
66
"main": "./dist/index.js",

0 commit comments

Comments
 (0)