Skip to content

Commit 0a69d1a

Browse files
committed
🔧 add nodemonde to enable automatic restart
Issue: CLDSRV-736
1 parent 120c996 commit 0a69d1a

File tree

3 files changed

+60
-3
lines changed

3 files changed

+60
-3
lines changed

CONTRIBUTING.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,15 @@
33
Please follow the
44
[Contributing Guidelines](
55
https://github.com/scality/Guidelines/blob/master/CONTRIBUTING.md).
6+
7+
## Development
8+
9+
To set up your development environment, follow these steps:
10+
11+
```bash
12+
yarn install
13+
yarn dev
14+
```
15+
16+
This will start the developement server, watching for changes and restarting
17+
as needed.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"mocha-junit-reporter": "^2.2.1",
6868
"mocha-multi-reporters": "^1.5.1",
6969
"node-mocks-http": "^1.16.1",
70+
"nodemon": "^3.1.10",
7071
"nyc": "^15.1.0",
7172
"sinon": "^13.0.1",
7273
"tv4": "^1.3.0"
@@ -82,6 +83,7 @@
8283
},
8384
"scripts": {
8485
"cloudserver": "S3METADATA=mongodb npm-run-all --parallel start_dataserver start_s3server",
86+
"dev": "nodemon --exec \"yarn run start\"",
8587
"ft_awssdk": "cd tests/functional/aws-node-sdk && mocha --reporter mocha-multi-reporters --reporter-options configFile=$INIT_CWD/tests/reporter-config.json test/ --exit",
8688
"ft_awssdk_aws": "cd tests/functional/aws-node-sdk && AWS_ON_AIR=true mocha --reporter mocha-multi-reporters --reporter-options configFile=$INIT_CWD/tests/reporter-config.json test/ --exit",
8789
"ft_awssdk_buckets": "cd tests/functional/aws-node-sdk && mocha --reporter mocha-multi-reporters --reporter-options configFile=$INIT_CWD/tests/reporter-config.json test/bucket --exit",

yarn.lock

Lines changed: 46 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1771,7 +1771,7 @@ charenc@0.0.2, charenc@~0.0.1:
17711771
resolved "https://registry.yarnpkg.com/charenc/-/charenc-0.0.2.tgz#c0a1d2f3a7092e03774bfa83f14c0fc5790a8667"
17721772
integrity sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==
17731773

1774-
chokidar@^3.5.3:
1774+
chokidar@^3.5.2, chokidar@^3.5.3:
17751775
version "3.6.0"
17761776
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.6.0.tgz#197c6cc669ef2a8dc5e7b4d97ee4e092c3eb0d5b"
17771777
integrity sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==
@@ -2076,7 +2076,7 @@ debug@^3.1.0, debug@^3.2.7:
20762076
dependencies:
20772077
ms "^2.1.1"
20782078

2079-
debug@^4.4.0, debug@^4.4.1:
2079+
debug@^4, debug@^4.4.0, debug@^4.4.1:
20802080
version "4.4.1"
20812081
resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.1.tgz#e5a8bc6cbc4c6cd3e64308b0693a3d4fa550189b"
20822082
integrity sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==
@@ -3470,6 +3470,11 @@ ieee754@^1.1.13, ieee754@^1.1.4:
34703470
resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352"
34713471
integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==
34723472

3473+
ignore-by-default@^1.0.1:
3474+
version "1.0.1"
3475+
resolved "https://registry.yarnpkg.com/ignore-by-default/-/ignore-by-default-1.0.1.tgz#48ca6d72f6c6a3af00a9ad4ae6876be3889e2b09"
3476+
integrity sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==
3477+
34733478
ignore@^5.2.0:
34743479
version "5.3.2"
34753480
resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.2.tgz#3cd40e729f3643fd87cb04e50bf0eb722bc596f5"
@@ -5085,6 +5090,22 @@ node-schedule@^2.1.1:
50855090
long-timeout "0.1.1"
50865091
sorted-array-functions "^1.3.0"
50875092

5093+
nodemon@^3.1.10:
5094+
version "3.1.10"
5095+
resolved "https://registry.yarnpkg.com/nodemon/-/nodemon-3.1.10.tgz#5015c5eb4fffcb24d98cf9454df14f4fecec9bc1"
5096+
integrity sha512-WDjw3pJ0/0jMFmyNDp3gvY2YizjLmmOUQo6DEBY+JgdvW/yQ9mEeSw6H5ythl5Ny2ytb7f9C2nIbjSxMNzbJXw==
5097+
dependencies:
5098+
chokidar "^3.5.2"
5099+
debug "^4"
5100+
ignore-by-default "^1.0.1"
5101+
minimatch "^3.1.2"
5102+
pstree.remy "^1.1.8"
5103+
semver "^7.5.3"
5104+
simple-update-notifier "^2.0.0"
5105+
supports-color "^5.5.0"
5106+
touch "^3.1.0"
5107+
undefsafe "^2.0.5"
5108+
50885109
nopt@3.x:
50895110
version "3.0.6"
50905111
resolved "https://registry.yarnpkg.com/nopt/-/nopt-3.0.6.tgz#c6465dbf08abcd4db359317f79ac68a646b28ff9"
@@ -5561,6 +5582,11 @@ psl@^1.1.28:
55615582
dependencies:
55625583
punycode "^2.3.1"
55635584

5585+
pstree.remy@^1.1.8:
5586+
version "1.1.8"
5587+
resolved "https://registry.yarnpkg.com/pstree.remy/-/pstree.remy-1.1.8.tgz#c242224f4a67c21f686839bbdb4ac282b8373d3a"
5588+
integrity sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==
5589+
55645590
pull-cat@^1.1.9:
55655591
version "1.1.11"
55665592
resolved "https://registry.yarnpkg.com/pull-cat/-/pull-cat-1.1.11.tgz#b642dd1255da376a706b6db4fa962f5fdb74c31b"
@@ -6098,6 +6124,13 @@ simple-swizzle@^0.2.2:
60986124
dependencies:
60996125
is-arrayish "^0.3.1"
61006126

6127+
simple-update-notifier@^2.0.0:
6128+
version "2.0.0"
6129+
resolved "https://registry.yarnpkg.com/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz#d70b92bdab7d6d90dfd73931195a30b6e3d7cebb"
6130+
integrity sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==
6131+
dependencies:
6132+
semver "^7.5.3"
6133+
61016134
sinon@^13.0.1:
61026135
version "13.0.2"
61036136
resolved "https://registry.yarnpkg.com/sinon/-/sinon-13.0.2.tgz#c6a8ddd655dc1415bbdc5ebf0e5b287806850c3a"
@@ -6429,7 +6462,7 @@ supports-color@^3.1.0:
64296462
dependencies:
64306463
has-flag "^1.0.0"
64316464

6432-
supports-color@^5.3.0:
6465+
supports-color@^5.3.0, supports-color@^5.5.0:
64336466
version "5.5.0"
64346467
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f"
64356468
integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==
@@ -6522,6 +6555,11 @@ tokenize-this@^1.4.0:
65226555
resolved "https://registry.yarnpkg.com/tokenize-this/-/tokenize-this-1.4.2.tgz#ca35a2214f5ffcb0a5101294983ff47c54cee125"
65236556
integrity sha512-WDOMkXmAyHC7VHpVWbyUe98wHspF2TqnqCBa9caTz0fRRaKlWWgZ50LBHpmCfhkCnh1ynyhorxpejBTzawo2IA==
65246557

6558+
touch@^3.1.0:
6559+
version "3.1.1"
6560+
resolved "https://registry.yarnpkg.com/touch/-/touch-3.1.1.tgz#097a23d7b161476435e5c1344a95c0f75b4a5694"
6561+
integrity sha512-r0eojU4bI8MnHr8c5bNo7lJDdI2qXlWWJk6a9EAFG7vbhTjElYhBVS3/miuE0uOuoLdb8Mc/rVfsmm6eo5o9GA==
6562+
65256563
tough-cookie@~2.5.0:
65266564
version "2.5.0"
65276565
resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.5.0.tgz#cd9fb2a0aa1d5a12b473bd9fb96fa3dcff65ade2"
@@ -6738,6 +6776,11 @@ unbox-primitive@^1.1.0:
67386776
has-symbols "^1.1.0"
67396777
which-boxed-primitive "^1.1.1"
67406778

6779+
undefsafe@^2.0.5:
6780+
version "2.0.5"
6781+
resolved "https://registry.yarnpkg.com/undefsafe/-/undefsafe-2.0.5.tgz#38733b9327bdcd226db889fb723a6efd162e6e2c"
6782+
integrity sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==
6783+
67416784
undici-types@~6.20.0:
67426785
version "6.20.0"
67436786
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.20.0.tgz#8171bf22c1f588d1554d55bf204bc624af388433"

0 commit comments

Comments
 (0)