Comparing version 1.0.8 to 1.1.0
"use strict"; | ||
module.exports = {version: '1.0.8', packageName: 'ycplmon'}; | ||
module.exports = {version: '1.1.0', packageName: 'ycplmon'}; | ||
Object.defineProperty(exports, "__esModule", {value: true}); |
@@ -7,3 +7,3 @@ "use strict"; | ||
exports.startupConsole = startupConsole; | ||
exports.startup = void 0; | ||
exports.fix_cpls = exports.ycplmonDefaultSettings = void 0; | ||
@@ -23,2 +23,12 @@ var _path = require("path"); | ||
// TODO Бесконечно заменяет файл снова и снова. При использовании watch соместно с Webstorm теряются данные. | ||
const ycplmonDefaultSettings = { | ||
srcPath: "src", | ||
dbPath: `src/cpl.db`, | ||
rebuildDb: false, | ||
watch: false, | ||
interval: 300, | ||
noDb: true, | ||
logEachFixedFile: true | ||
}; | ||
exports.ycplmonDefaultSettings = ycplmonDefaultSettings; | ||
const MAX_CPL_VALUE = 99999999; | ||
@@ -42,3 +52,3 @@ const CPL_VALUE_LEN = (MAX_CPL_VALUE + "").length; | ||
const startup = settings => { | ||
const fix_cpls = settings => { | ||
console.time(`Finished in`); | ||
@@ -210,3 +220,3 @@ const freeCplManager = new _IntIdManager.IntIdManager({ | ||
exports.startup = startup; | ||
exports.fix_cpls = fix_cpls; | ||
@@ -235,3 +245,3 @@ function startupConsole() { | ||
startup(finalOptions); | ||
fix_cpls(finalOptions); | ||
} | ||
@@ -238,0 +248,0 @@ |
@@ -1,2 +0,2 @@ | ||
export const version = '1.0.8'; | ||
export const version = '1.1.0'; | ||
export const packageName = 'ycplmon'; |
@@ -8,2 +8,11 @@ // TODO Бесконечно заменяет файл снова и снова. При использовании watch соместно с Webstorm теряются данные. | ||
import { version } from "./projmeta.js"; | ||
export const ycplmonDefaultSettings = { | ||
srcPath: "src", | ||
dbPath: `src/cpl.db`, | ||
rebuildDb: false, | ||
watch: false, | ||
interval: 300, | ||
noDb: true, | ||
logEachFixedFile: true | ||
}; | ||
const MAX_CPL_VALUE = 99999999; | ||
@@ -27,3 +36,3 @@ const CPL_VALUE_LEN = (MAX_CPL_VALUE + "").length; | ||
export const startup = settings => { | ||
export const fix_cpls = settings => { | ||
console.time(`Finished in`); | ||
@@ -216,3 +225,3 @@ const freeCplManager = new IntIdManager({ | ||
startup(finalOptions); | ||
fix_cpls(finalOptions); | ||
} | ||
@@ -219,0 +228,0 @@ |
{ | ||
"name": "ycplmon", | ||
"version": "1.0.8", | ||
"version": "1.1.0", | ||
"keywords": [ | ||
@@ -35,6 +35,6 @@ "parser", | ||
"scripts": { | ||
"build": "npm run precompile_full && npm run clean:all && npm run build:esm && npm run build:cjs && npm run build:types && npm run lint && npm run test && npm run build:docs", | ||
"build": "npm run precompile_full && npm run clean && npm run build:esm && npm run build:cjs && npm run build:types && npm run lint && npm run test && npm run build:docs", | ||
"build:ts": "npm run clean:ts && tsc", | ||
"build:docs": "api-extractor run --local && api-documenter markdown --input-folder temp --output-folder docs", | ||
"test": "jest --passWithNoTests", | ||
"test": "jest --config=jest.config-ts.cjs --passWithNoTests", | ||
"tsc": "npm run build:ts", | ||
@@ -54,8 +54,12 @@ "lint": "npx eslint . --ext .js,.jsx,.ts,.tsx", | ||
"watch:types": "npm run clean:types && tsc -p tsconfig-declarations.json -w", | ||
"clear:docs": "rm -rf docs/*", | ||
"clean:all": "rm -rf dist/* && yb clean_all && npm run clear:docs", | ||
"clear:docs": "yb clean_docs", | ||
"clean:ts": "yb clean_ts", | ||
"deps": "echo Finding loops in .js requires... & del deps.png & madge dist -c -i deps.png && deps.png", | ||
"deps_all": "echo Generating full .js requires tree... & del deps.png & madge dist -i deps.png && deps.png", | ||
"deps_orphans": "echo Finding orphans .js requires... & del deps.png & madge dist --orphans -i deps.png && deps.png" | ||
"deps_orphans": "echo Finding orphans .js requires... & del deps.png & madge dist --orphans -i deps.png && deps.png", | ||
"clean": "yb clean_all && npm run clear:docs", | ||
"watch:test:cjs": "npm run build:cjs && jest --config=jest.config-cjs.cjs --passWithNoTests -w", | ||
"test:cjs": "npm run build:cjs && jest --config=jest.config-cjs.cjs --passWithNoTests", | ||
"test:ts": "jest --config=jest.config-ts.cjs --passWithNoTests", | ||
"start": "node lib/cjs/start.js" | ||
}, | ||
@@ -100,3 +104,4 @@ "devDependencies": { | ||
"tslib": "^2.2.0", | ||
"cross-env": "^7.0.3" | ||
"cross-env": "^7.0.3", | ||
"modify-filepath": "^0.0.2" | ||
}, | ||
@@ -103,0 +108,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
109527
29
2597
39
6