Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
"name": "Lenra debug",
"skipFiles": [
"<node_internals>/**"
],
"port": 9229,
"localRoot": "${workspaceFolder}",
"remoteRoot": "/app",
"preLaunchTask": "lenra-start"
}
]
}
19 changes: 19 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "lenra-start",
"type": "shell",
"command": "lenra start",
"dependsOn":[ "lenra-build" ],
"group": "build"
}, {
"label": "lenra-build",
"type": "shell",
"command": "lenra build",
"group":"build"
}
]
}
6 changes: 6 additions & 0 deletions lenra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,9 @@ generator:
- "!/resources/"
- "!/services/"
- "!/views/"
dev:
dofigen:
cmd:
- npm run debug
ports:
- 9229
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Lenra's javascript template",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 0"
"test": "echo \"Error: no test specified\" && exit 0",
"debug": "touch /tmp/.lock && node --inspect-brk=0.0.0.0:9229 server.js"
},
"keywords": [],
"author": "Lenra",
Expand Down