Start RESTful server

This commit is contained in:
fkereki
2018-05-20 21:26:37 -04:00
parent aad2bcab51
commit 20b67d95a7
6 changed files with 277 additions and 34 deletions
+11 -29
View File
@@ -5,7 +5,8 @@
"main": "index.js",
"scripts": {
"build": "flow-remove-types src/ -d out/",
"buildWithMaps": "flow-remove-types src/ -d out/ --pretty --sourcemaps",
"buildWithMaps":
"flow-remove-types src/ -d out/ --pretty --sourcemaps",
"start": "npm run build && node out/doroundmath.js",
"start-db": "npm run build && node out/dbaccess.js",
"nodemon": "nodemon --watch src --delay 1 --exec npm start",
@@ -19,11 +20,7 @@
"author": "Federico Kereki",
"license": "ISC",
"babel": {
"presets": [
"env",
"node",
"flow"
]
"presets": ["env", "node", "flow"]
},
"eslintConfig": {
"parserOptions": {
@@ -35,37 +32,22 @@
"node": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:flowtype/recommended"
],
"plugins": [
"babel",
"flowtype"
],
"extends": ["eslint:recommended", "plugin:flowtype/recommended"],
"plugins": ["babel", "flowtype"],
"rules": {
"no-console": "off",
"no-var": "error",
"prefer-const": "error"
"prefer-const": "error",
"flowtype/no-types-missing-file-annotation": 0
}
},
"eslintIgnore": [
"**/out/*.js"
],
"eslintIgnore": ["**/out/*.js"],
"flow-coverage-report": {
"concurrentFiles": 1,
"excludeGlob": [
"node_modules/**"
],
"includeGlob": [
"src/**/*.js"
],
"excludeGlob": ["node_modules/**"],
"includeGlob": ["src/**/*.js"],
"threshold": 90,
"type": [
"text",
"html",
"json"
]
"type": ["text", "html", "json"]
},
"prettier": {
"tabWidth": 4,