Small changes

This commit is contained in:
Federico Kereki
2018-04-30 22:42:23 -03:00
parent 8d8b87ba25
commit 6a758c1f25
5 changed files with 494 additions and 883 deletions
+429 -858
View File
File diff suppressed because it is too large Load Diff
+11 -3
View File
@@ -13,7 +13,10 @@
"author": "Federico Kereki", "author": "Federico Kereki",
"license": "ISC", "license": "ISC",
"babel": { "babel": {
"presets": ["env", "flow"] "presets": [
"env",
"flow"
]
}, },
"eslintConfig": { "eslintConfig": {
"parserOptions": { "parserOptions": {
@@ -25,8 +28,13 @@
"browser": true, "browser": true,
"node": true "node": true
}, },
"extends": ["eslint:recommended", "plugin:flowtype/recommended"], "extends": [
"plugins": ["flowtype"], "eslint:recommended",
"plugin:flowtype/recommended"
],
"plugins": [
"flowtype"
],
"rules": { "rules": {
"no-console": "off" "no-console": "off"
} }
+26 -8
View File
@@ -16,7 +16,10 @@
"author": "Federico Kereki", "author": "Federico Kereki",
"license": "ISC", "license": "ISC",
"babel": { "babel": {
"presets": ["env", "flow"] "presets": [
"env",
"flow"
]
}, },
"eslintConfig": { "eslintConfig": {
"parserOptions": { "parserOptions": {
@@ -29,23 +32,38 @@
"node": true, "node": true,
"es6": true "es6": true
}, },
"extends": ["eslint:recommended", "plugin:flowtype/recommended"], "extends": [
"plugins": ["babel", "flowtype"], "eslint:recommended",
"plugin:flowtype/recommended"
],
"plugins": [
"babel",
"flowtype"
],
"rules": { "rules": {
"no-console": "off", "no-console": "off",
"no-var": "error", "no-var": "error",
"prefer-const": "error" "prefer-const": "error"
} }
}, },
"eslintIgnore": ["**/out/*.js"], "eslintIgnore": [
"**/out/*.js"
],
"flow-coverage-report": { "flow-coverage-report": {
"concurrentFiles": 1, "concurrentFiles": 1,
"excludeGlob": ["node_modules/**"], "excludeGlob": [
"includeGlob": ["src/**/*.js"], "node_modules/**"
],
"includeGlob": [
"src/**/*.js"
],
"threshold": 90, "threshold": 90,
"type": ["text", "html", "json"] "type": [
"text",
"html",
"json"
]
}, },
"prettier": { "prettier": {
"tabWidth": 4, "tabWidth": 4,
"printWidth": 75 "printWidth": 75
+27 -9
View File
@@ -5,8 +5,7 @@
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"build": "flow-remove-types src/ -d out/", "build": "flow-remove-types src/ -d out/",
"buildWithMaps": "buildWithMaps": "flow-remove-types src/ -d out/ --pretty --sourcemaps",
"flow-remove-types src/ -d out/ --pretty --sourcemaps",
"start": "npm run build && node out/doroundmath.js", "start": "npm run build && node out/doroundmath.js",
"start-db": "npm run build && node out/dbaccess.js", "start-db": "npm run build && node out/dbaccess.js",
"nodemon": "nodemon --watch src --delay 1 --exec npm start", "nodemon": "nodemon --watch src --delay 1 --exec npm start",
@@ -20,7 +19,10 @@
"author": "Federico Kereki", "author": "Federico Kereki",
"license": "ISC", "license": "ISC",
"babel": { "babel": {
"presets": ["env", "flow"] "presets": [
"env",
"flow"
]
}, },
"eslintConfig": { "eslintConfig": {
"parserOptions": { "parserOptions": {
@@ -32,21 +34,37 @@
"node": true, "node": true,
"es6": true "es6": true
}, },
"extends": ["eslint:recommended", "plugin:flowtype/recommended"], "extends": [
"plugins": ["babel", "flowtype"], "eslint:recommended",
"plugin:flowtype/recommended"
],
"plugins": [
"babel",
"flowtype"
],
"rules": { "rules": {
"no-console": "off", "no-console": "off",
"no-var": "error", "no-var": "error",
"prefer-const": "error" "prefer-const": "error"
} }
}, },
"eslintIgnore": ["**/out/*.js"], "eslintIgnore": [
"**/out/*.js"
],
"flow-coverage-report": { "flow-coverage-report": {
"concurrentFiles": 1, "concurrentFiles": 1,
"excludeGlob": ["node_modules/**"], "excludeGlob": [
"includeGlob": ["src/**/*.js"], "node_modules/**"
],
"includeGlob": [
"src/**/*.js"
],
"threshold": 90, "threshold": 90,
"type": ["text", "html", "json"] "type": [
"text",
"html",
"json"
]
}, },
"prettier": { "prettier": {
"tabWidth": 4, "tabWidth": 4,
+1 -5
View File
@@ -3,13 +3,9 @@
const path = require("path"); const path = require("path");
const { fork } = require("child_process"); const { fork } = require("child_process");
console.log(path.resolve("out/process_dir.js"));
const child = fork(path.resolve("out/process_fork_dir.js")); const child = fork(path.resolve("out/process_fork_dir.js"));
const filePath = "/home/fkereki"; child.send({ path: "/home/fkereki" });
child.send({ path: filePath });
child.on("message", data => { child.on("message", data => {
console.log(String(data)); console.log(String(data));