Skip to content

Commit 2d1decf

Browse files
authoredSep 21, 2023
add note about localhost http (#372)
1 parent 04b33b3 commit 2d1decf

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed
 

‎.github/workflows/ci.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
runs-on: ubuntu-latest
66
steps:
77
- name: Checkout 🛎
8-
uses: actions/checkout@v3
8+
uses: actions/checkout@v4
99

1010
- name: Node version 🖨️
1111
run: node -v
@@ -41,7 +41,7 @@ jobs:
4141
runs-on: ubuntu-latest
4242
steps:
4343
- name: Checkout 🛎
44-
uses: actions/checkout@v3
44+
uses: actions/checkout@v4
4545

4646
- name: Node version 🖨️
4747
run: node -v
@@ -75,7 +75,7 @@ jobs:
7575
runs-on: ubuntu-latest
7676
steps:
7777
- name: Checkout 🛎
78-
uses: actions/checkout@v3
78+
uses: actions/checkout@v4
7979

8080
- uses: actions/setup-node@v3
8181
with:
@@ -103,7 +103,7 @@ jobs:
103103
runs-on: ubuntu-latest
104104
steps:
105105
- name: Checkout 🛎
106-
uses: actions/checkout@v3
106+
uses: actions/checkout@v4
107107

108108
- uses: actions/setup-node@v3
109109
with:
@@ -136,7 +136,7 @@ jobs:
136136
runs-on: ubuntu-latest
137137
steps:
138138
- name: Checkout 🛎
139-
uses: actions/checkout@v3
139+
uses: actions/checkout@v4
140140

141141
- name: Semantic Release 🚀
142142
uses: cycjimmy/semantic-release-action@v3

‎README.md

+8
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,14 @@ start-server start http://0.0.0.0:3000 test
249249
start-server start http://localhost:3000 test
250250
```
251251

252+
If you specify just `localhost` or `127.0.0.1` or `0.0.0.0`, it automatically pings `http://...` URL.
253+
254+
```
255+
start-test localhost:3000
256+
# is the same as
257+
start-test http://localhost:3000
258+
```
259+
252260
## Note for yarn users
253261

254262
By default, npm is used to run scripts, however you can specify that yarn is used as follows:

‎src/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ function waitAndRun ({ start, url, runFn, namedArguments }) {
4444

4545
debug('starting server with command "%s", verbose mode?', start, isDebug())
4646

47-
const server = execa(start, { shell: true, stdio: ['ignore', 'inherit', 'inherit'] })
47+
const server = execa(start, {
48+
shell: true,
49+
stdio: ['ignore', 'inherit', 'inherit']
50+
})
4851
let serverStopped
4952

5053
function stopServer () {

0 commit comments

Comments
 (0)
Please sign in to comment.