diff --git a/04-main.bat b/04-main.bat new file mode 100644 index 0000000..e50a9ba --- /dev/null +++ b/04-main.bat @@ -0,0 +1 @@ +node .\dist\lib\cli\runNopeBackend.js -c io-client -l info \ No newline at end of file diff --git a/README.md b/README.md index d3fd4d3..e818b5d 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ Make shure you run the following tasks After installation you can use the following cli-tool: -> `nope` +> `nope-js` Please select the option you want. Therefore add one of the following options: diff --git a/modules/helloworld/src/helloworld.package.ts b/modules/helloworld/src/helloworld.package.ts index f17c996..259191b 100644 --- a/modules/helloworld/src/helloworld.package.ts +++ b/modules/helloworld/src/helloworld.package.ts @@ -39,7 +39,16 @@ export const DESCRIPTION: IPackageDescription = { } } ], - providedFunctions: [], + providedFunctions: [ + { + function: async ( ) => { + console.log("HERRL") + }, + options: { + id: "HelloWorldService" + } + } + ], requiredPackages: [], types: TYPES }; diff --git a/package.json b/package.json index 9b61442..90edbfe 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Nodejs Backend, combining nextjs with openapi", "main": "index.js", "bin": { - "nope": "./bin/nope" + "nope-js": "./bin/nope" }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1", @@ -115,4 +115,4 @@ "prettier": "^2.2.1", "typescript": "^4.2.4" } -} +} \ No newline at end of file