-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Cross-platform Diagnostics): provide Cross-platform Diagnostics …
…supporting Closes #112
- Loading branch information
Showing
13 changed files
with
270 additions
and
70 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "vizabi-ddfcsv-reader", | ||
"version": "2.5.0", | ||
"version": "2.5.15", | ||
"description": "Vizabi DDFcsv reader", | ||
"author": "Vyacheslav Chub<[email protected]>", | ||
"license": "GPL-3.0", | ||
|
@@ -11,7 +11,7 @@ | |
"tslint:src": "./node_modules/.bin/tslint -c ./tslint.json 'src/**/*.ts'", | ||
"tslint:tests": "./node_modules/.bin/tslint -c ./test/tslint.json 'test/**/*.ts'", | ||
"tslint": "npm run tslint:src && npm run tslint:tests", | ||
"tsc": "tsc --project tsconfig.json", | ||
"tsc": "tsc --project tsconfig.json && npm run set-own-version", | ||
"submodules:init": "git submodule update --remote --init -f", | ||
"coverage:clean": "rm -rf coverage && rm -rf .nyc_output && rm -rf coverage.lcov", | ||
"remove-unneeded": "rm -rf test/fixtures/systema_globalis/master-HEAD/etl", | ||
|
@@ -21,6 +21,8 @@ | |
"e2e:doc": "mocha --require ts-node/register -R markdown > API.SPECIFICATION.md --recursive test/*.spec.ts", | ||
"test": "npm run e2e", | ||
"test-travis": "npm run e2e && nyc report --reporter=text-lcov > coverage.lcov && codecov", | ||
"test-diag": "mocha --require ts-node/register --recursive test/diagnostics.spec.ts", | ||
"set-own-version": "cd scripts && node ./set-own-version.js", | ||
"changelog": "conventional-changelog -i CHANGELOG.md -s -p angular", | ||
"github-release": "conventional-github-releaser -p angular", | ||
"build": "npm run build:web && rimraf lib && npm run build:node", | ||
|
@@ -52,13 +54,12 @@ | |
"instrument": true | ||
}, | ||
"dependencies": { | ||
"@babel/code-frame": "7.0.0", | ||
"@google-cloud/storage": "^2.3.1", | ||
"@types/core-js": "2.5.0", | ||
"@types/node": "10.5.7", | ||
"aws-sdk": "2.308.0", | ||
"ddf-query-validator": "1.2.1", | ||
"@google-cloud/storage": "2.3.1", | ||
"cross-project-diagnostics": "0.1.2", | ||
"ddf-query-validator": "1.3.0", | ||
"fetch-polyfill": "0.8.2", | ||
"https": "1.0.0", | ||
"lodash.clonedeep": "4.5.0", | ||
"lodash.compact": "3.0.1", | ||
"lodash.concat": "4.5.0", | ||
|
@@ -85,6 +86,7 @@ | |
"papaparse": "4.3.6" | ||
}, | ||
"devDependencies": { | ||
"@babel/code-frame": "7.0.0", | ||
"@types/chai": "4.1.4", | ||
"@types/core-js": "2.5.0", | ||
"@types/lodash": "4.14.116", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
const path = require('path'); | ||
const fs = require('fs'); | ||
|
||
try { | ||
if (!process.env.npm_package_version || !process.env.npm_package_name) { | ||
console.log(`process.env.npm_package_version or process.env.npm_package_name are not defined!`); | ||
process.exit(1); | ||
} | ||
|
||
const fileName = path.resolve('..', 'lib', 'src', 'ddfcsv-reader.js'); | ||
const content = fs.readFileSync(fileName, 'utf-8'); | ||
const oldVersionContent = /const myVersion = '';/; | ||
const newVersionContent = `const myVersion = '${process.env.npm_package_version}';`; | ||
const oldNameContent = /const myName = '';/; | ||
const newNameContent = `const myName = '${process.env.npm_package_name}';`; | ||
const newContent = content.replace(oldVersionContent, newVersionContent).replace(oldNameContent, newNameContent); | ||
fs.writeFileSync(fileName, newContent); | ||
} catch (e) { | ||
console.log(e); | ||
process.exit(1); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.