diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index df464a7..1cdb938 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,7 +5,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout 🛎 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Node version 🖨️ run: node -v @@ -41,7 +41,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout 🛎 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Node version 🖨️ run: node -v @@ -75,7 +75,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout 🛎 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: @@ -103,7 +103,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout 🛎 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: @@ -136,7 +136,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout 🛎 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Semantic Release 🚀 uses: cycjimmy/semantic-release-action@v3 diff --git a/README.md b/README.md index 5e9664a..dcdfb5f 100644 --- a/README.md +++ b/README.md @@ -249,6 +249,14 @@ start-server start http://0.0.0.0:3000 test start-server start http://localhost:3000 test ``` +If you specify just `localhost` or `127.0.0.1` or `0.0.0.0`, it automatically pings `http://...` URL. + +``` +start-test localhost:3000 +# is the same as +start-test http://localhost:3000 +``` + ## Note for yarn users By default, npm is used to run scripts, however you can specify that yarn is used as follows: diff --git a/src/index.js b/src/index.js index c84db6e..9c2c44c 100644 --- a/src/index.js +++ b/src/index.js @@ -44,7 +44,10 @@ function waitAndRun ({ start, url, runFn, namedArguments }) { debug('starting server with command "%s", verbose mode?', start, isDebug()) - const server = execa(start, { shell: true, stdio: ['ignore', 'inherit', 'inherit'] }) + const server = execa(start, { + shell: true, + stdio: ['ignore', 'inherit', 'inherit'] + }) let serverStopped function stopServer () {