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
Hi i don't want to be too rude about this but actually there are some problems in your docs.
First things first. I really like your job about this tool but this is intended to help you and other save time (no anger :) ). So... :
Please explain the difference (if any) between fromConfig and fromNodeConfig functions
baseDir does not exist, instead it's called basePath
now the example (in wich i used fromConfig):
first of all fromConfig expects an object like this:
...
var opts = {
config: /*retrieve config file*/,
basePath: process.cwd() /*or whatever it is*/
}
var di = amend.fromConfig(opts);
...
You created a file called playGame.js but in config.json was refereneced as play-game.js
Even for 'custom' modules, in node is not necessary to specify the extension of your file so the config.json can be rewritten as:
{
"modules": {
"rollDice": "./roll-dice",
"playGame": "./playGame",
"_": {
"require": "lodash",
"type": "value"
}
}
}
```
Anyway very good work about this module.
The text was updated successfully, but these errors were encountered:
Hi i don't want to be too rude about this but actually there are some problems in your docs.
First things first. I really like your job about this tool but this is intended to help you and other save time (no anger :) ). So... :
Please explain the difference (if any) between fromConfig and fromNodeConfig functions
baseDir does not exist, instead it's called basePath
now the example (in wich i used fromConfig):
first of all fromConfig expects an object like this:
You created a file called playGame.js but in config.json was refereneced as play-game.js
Even for 'custom' modules, in node is not necessary to specify the extension of your file so the config.json can be rewritten as:
The text was updated successfully, but these errors were encountered: