You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-2Lines changed: 11 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,8 @@ services:
67
67
- /absolute/path/to/your/sources/:/app/
68
68
```
69
69
70
+
Mounting the sources will automatically populate the local `node_modules` folder and will provide a package-lock.json (providing you don't opt out of the generation). This should provide enough initial support for editor hints.
71
+
70
72
### Build a microservice based on mu-javascript-template
@@ -257,7 +259,6 @@ The following environment variables can be configured:
257
259
-`ALLOW_MU_AUTH_SUDO`: Allow sudo queries when the service requests it.
258
260
-`DEFAULT_MU_AUTH_SCOPE`: Default mu-auth-scope to use for calls.
259
261
260
-
261
262
#### Mounting `/config`
262
263
You may let users extend the microservice with code.
263
264
@@ -275,5 +276,13 @@ The verbosity of logging can be configured through following environment variabl
275
276
276
277
Following values are considered true: [`"true"`, `"TRUE"`, `"1"`].
277
278
279
+
### Code hints
280
+
The template will automatically supply a `node_modules` folder for code hints when the microservice runs in development and the sources are mounted in `/app`. You may need to restart the language server so these are picked up.
281
+
282
+
Use the mu-script `setup-ide` to install these without running in development mode.
283
+
284
+
### Package lock
285
+
Changes to dependencies in `package.json` will be picked up and an updated `package-lock.json` will be copied into the mounted sources provided `package-lock.json` is enabled. Local packages are installed through the `package-lock.json` and the template's dependencies are merged in. The `package-lock.json` thus only contains your own dependencies and should not conflict with future upgrades in the template.
286
+
278
287
### Custom build commands
279
288
To execute custom bash statements during the image build (e.g. to install aditional system libraries), provide an `on-build.sh` script in the root of your service. It will be automatically picked up and executed by the Docker build.
0 commit comments