Commit 1d301083 authored by Cédric Moreau's avatar Cédric Moreau

[enh] Refactor willMembers to TypeScript

parent c04a6f34
......@@ -3,6 +3,9 @@
"version": "0.4.13",
"main": "index.js",
"license": "AGPLv3",
"scripts": {
"prepublish": "tsc"
},
"dependencies": {
"body-parser": "1.17.1",
"co": "4.6.0",
......@@ -16,7 +19,9 @@
"request-promise": "4.2.0"
},
"devDependencies": {
"duniter": "^1.6.21"
"@types/node": "^11.9.3",
"duniter": "1.6.x",
"typescript": "^3.3.3"
},
"peerDependencies": {
"duniter": "^1.6.21"
......
......@@ -55,7 +55,7 @@ app.get('/about', // chemin (endpoint)
* Lister les futurs membres
***************************************/
app.get('/willMembers', // chemin (endpoint)
require(__dirname + '/willMembers.js'), // controleur (route)
require(__dirname + '/willMembers2.js'), // controleur (route)
(req, res)=> res.render('willMembers.html', { // rendu (template)
printMenu,
help: req.query.help,
......
{
"compilerOptions": {
"sourceMap": true,
"target": "es2017",
"declaration": true,
"moduleResolution": "node",
"module": "commonjs",
"strictNullChecks": true,
"noImplicitThis": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"experimentalDecorators": true
},
"include": [
"routes"
],
"compileOnSave": true
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment