Skip to content

Commit 929fbe5

Browse files
authored
Merge pull request #2704 from Shopify/ml/docs-nodemon
Add nodemon for running docs in dev
2 parents b3950b7 + b479d15 commit 929fbe5

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"deploy": "changeset publish",
1717
"predeploy:unstable": "yarn build",
1818
"docs:admin": "yarn workspace @shopify/ui-extensions docs:admin",
19+
"docs:admin:dev": "yarn workspace @shopify/ui-extensions docs:admin:dev",
1920
"docs:checkout": "yarn workspace @shopify/ui-extensions docs:checkout",
2021
"docs:point-of-sale": "yarn workspace @shopify/ui-extensions docs:point-of-sale",
2122
"docs:customer-account": "yarn workspace @shopify/ui-extensions docs:customer-account",

packages/ui-extensions/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "0.0.0-unstable",
44
"scripts": {
55
"docs:admin": "bash ./docs/surfaces/admin/build-docs.sh",
6+
"docs:admin:dev": "nodemon --watch src/surfaces/admin -e ts,tsx,json --exec 'yarn docs:admin'",
67
"gen-docs:admin": "bash ./docs/surfaces/admin/create-doc-files.sh \"admin\"",
78
"docs:checkout": "bash ./docs/surfaces/checkout/build-docs.sh",
89
"docs:point-of-sale": "bash ./docs/surfaces/point-of-sale/build-docs.sh",
@@ -68,6 +69,7 @@
6869
},
6970
"devDependencies": {
7071
"@shopify/generate-docs": "0.16.4",
72+
"nodemon": "^3.1.9",
7173
"typescript": "^4.9.0"
7274
},
7375
"publishConfig": {

yarn.lock

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3157,6 +3157,13 @@ debug@^3.2.7:
31573157
dependencies:
31583158
ms "^2.1.1"
31593159

3160+
debug@^4:
3161+
version "4.4.0"
3162+
resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.0.tgz#2b3f2aea2ffeb776477460267377dc8710faba8a"
3163+
integrity sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==
3164+
dependencies:
3165+
ms "^2.1.3"
3166+
31603167
decamelize-keys@^1.1.0:
31613168
version "1.1.1"
31623169
resolved "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.1.tgz"
@@ -5488,6 +5495,11 @@ [email protected], ms@^2.1.1:
54885495
resolved "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz"
54895496
integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==
54905497

5498+
ms@^2.1.3:
5499+
version "2.1.3"
5500+
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2"
5501+
integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==
5502+
54915503
natural-compare-lite@^1.4.0:
54925504
version "1.4.0"
54935505
resolved "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz"
@@ -5547,6 +5559,22 @@ nodemon@^2.0.4:
55475559
touch "^3.1.0"
55485560
undefsafe "^2.0.5"
55495561

5562+
nodemon@^3.1.9:
5563+
version "3.1.9"
5564+
resolved "https://registry.yarnpkg.com/nodemon/-/nodemon-3.1.9.tgz#df502cdc3b120e1c3c0c6e4152349019efa7387b"
5565+
integrity sha512-hdr1oIb2p6ZSxu3PB2JWWYS7ZQ0qvaZsc3hK8DR8f02kRzc8rjYmxAIvdz+aYC+8F2IjNaB7HMcSDg8nQpJxyg==
5566+
dependencies:
5567+
chokidar "^3.5.2"
5568+
debug "^4"
5569+
ignore-by-default "^1.0.1"
5570+
minimatch "^3.1.2"
5571+
pstree.remy "^1.1.8"
5572+
semver "^7.5.3"
5573+
simple-update-notifier "^2.0.0"
5574+
supports-color "^5.5.0"
5575+
touch "^3.1.0"
5576+
undefsafe "^2.0.5"
5577+
55505578
normalize-package-data@^2.5.0:
55515579
version "2.5.0"
55525580
resolved "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz"
@@ -6381,6 +6409,13 @@ simple-update-notifier@^1.0.7:
63816409
dependencies:
63826410
semver "~7.0.0"
63836411

6412+
simple-update-notifier@^2.0.0:
6413+
version "2.0.0"
6414+
resolved "https://registry.yarnpkg.com/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz#d70b92bdab7d6d90dfd73931195a30b6e3d7cebb"
6415+
integrity sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==
6416+
dependencies:
6417+
semver "^7.5.3"
6418+
63846419
sisteransi@^1.0.5:
63856420
version "1.0.5"
63866421
resolved "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz"

0 commit comments

Comments
 (0)