forked from moleculerjs/moleculer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some ts config files with default exports for testing
- Loading branch information
1 parent
d9af637
commit ca7cb2e
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import fetch from "node-fetch"; | ||
|
||
/** | ||
* Test: | ||
* | ||
* npx ts-node -T bin\moleculer-runner.js -c examples\runner\moleculer.config.async.ts -r examples/user.service.js | ||
*/ | ||
export default async function () { | ||
const res = await fetch("https://pastebin.com/raw/SLZRqfHX"); | ||
return await res.json(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* Test: | ||
* | ||
* npx ts-node -T bin\moleculer-runner.js -c examples\runner\moleculer.config.ts -r examples/user.service.js | ||
*/ | ||
export default { | ||
namespace: "bbb", | ||
logger: true, | ||
logLevel: "debug", | ||
//transporter: "TCP" | ||
hotReload: true, | ||
|
||
created(broker) { | ||
broker.logger.info("Typescript configuration loaded!"); | ||
} | ||
}; |