Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add local debugging to node.js templates #132

Merged
merged 2 commits into from Sep 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkged.go

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion templates/node/events/package.json
Expand Up @@ -9,10 +9,12 @@
},
"scripts": {
"test": "node test/unit.js && node test/integration.js",
"local": "npx @redhat/faas-js-runtime ./index.js"
"local": "npx @redhat/faas-js-runtime ./index.js",
"debug": "nodemon --inspect ./node_modules/@redhat/faas-js-runtime/bin/cli.js ./index.js"
},
"devDependencies": {
"@redhat/faas-js-runtime": "0.2.3",
"nodemon": "^2.0.4",
"cloudevents": "^3.1.0",
"supertest": "^4.0.2",
"tape": "^4.13.0"
Expand Down
4 changes: 3 additions & 1 deletion templates/node/http/package.json
Expand Up @@ -5,13 +5,15 @@
"main": "index.js",
"scripts": {
"test": "node test/unit.js && node test/integration.js",
"local": "npx @redhat/faas-js-runtime ./index.js"
"local": "npx @redhat/faas-js-runtime ./index.js",
"debug": "nodemon --inspect ./node_modules/@redhat/faas-js-runtime/bin/cli.js ./index.js"
},
"keywords": [],
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"@redhat/faas-js-runtime": "0.2.3",
"nodemon": "^2.0.4",
"supertest": "^4.0.2",
"tape": "^5.0.1"
}
Expand Down