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

File diff suppressed because it is too large Load Diff

View File

@ -13,7 +13,10 @@
"author": "Federico Kereki",
"license": "ISC",
"babel": {
"presets": ["env", "flow"]
"presets": [
"env",
"flow"
]
},
"eslintConfig": {
"parserOptions": {
@ -25,8 +28,13 @@
"browser": true,
"node": true
},
"extends": ["eslint:recommended", "plugin:flowtype/recommended"],
"plugins": ["flowtype"],
"extends": [
"eslint:recommended",
"plugin:flowtype/recommended"
],
"plugins": [
"flowtype"
],
"rules": {
"no-console": "off"
}

View File

@ -16,7 +16,10 @@
"author": "Federico Kereki",
"license": "ISC",
"babel": {
"presets": ["env", "flow"]
"presets": [
"env",
"flow"
]
},
"eslintConfig": {
"parserOptions": {
@ -29,23 +32,38 @@
"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"
}
},
"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,
"printWidth": 75

View File

@ -5,8 +5,7 @@
"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",
@ -20,7 +19,10 @@
"author": "Federico Kereki",
"license": "ISC",
"babel": {
"presets": ["env", "flow"]
"presets": [
"env",
"flow"
]
},
"eslintConfig": {
"parserOptions": {
@ -32,21 +34,37 @@
"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"
}
},
"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,

View File

@ -3,13 +3,9 @@
const path = require("path");
const { fork } = require("child_process");
console.log(path.resolve("out/process_dir.js"));
const child = fork(path.resolve("out/process_fork_dir.js"));
const filePath = "/home/fkereki";
child.send({ path: filePath });
child.send({ path: "/home/fkereki" });
child.on("message", data => {
console.log(String(data));