Skip to content
This repository was archived by the owner on Aug 5, 2024. It is now read-only.

Commit 55855cd

Browse files
committed
start azurite with dev
1 parent 0bf7f53 commit 55855cd

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@ nvm use 18
2525
yarn setup
2626
```
2727

28-
- start azurite in a terminal
29-
30-
```bash
31-
yarn azurite
32-
```
33-
3428
- start a local instance using azurite
3529

3630
```bash

dev.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env zx
2+
import 'zx/globals'
13
import dotenv from "dotenv"
24
import { expand } from "dotenv-expand"
35
import { networkInterfaces } from "os"
@@ -50,7 +52,7 @@ else if (!azure) {
5052
expand(out)
5153

5254
if (!azure) {
53-
console.log("- make sure to launch azurite with `yarn azurite`")
55+
$`yarn azurite`
5456
console.log(
5557
`- Visual Studio Code connection string:
5658

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"start": "node dist/src/index.js",
2020
"azurite": "azurite --location ./.azurite",
2121
"azurite:dbg": "azurite --location ./.azurite --debug ./.azurite/debug.log",
22-
"dev": "yarn build && node dev.mjs --local",
23-
"dev:azure": "yarn build && node dev.mjs --azure",
22+
"dev": "yarn build && zx dev.mjs --local",
23+
"dev:azure": "yarn build && zx dev.mjs --azure",
2424
"logs": "node infra/logs.mjs",
2525
"deploy": "node infra/zipdeploy.mjs"
2626
},

0 commit comments

Comments
 (0)