-
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 … (
#113) * feat(Cross-platform Diagnostics): provide Cross-platform Diagnostics supporting Closes #112 * chore(general): remove S3 and GCP reader. they should be provided as separate modules. * chore(general): bump version * cross-platform diagnistics as es5 module * chore(build): improve build & fix IE behavior
- Loading branch information
Showing
27 changed files
with
311 additions
and
178 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -8,4 +8,5 @@ test/ | |
.gitmodules | ||
node_modules/ | ||
webpack.config.js | ||
test/fixtures | ||
test/fixtures | ||
test/static-fixtures |
This file was deleted.
Oops, something went wrong.
This file was deleted.
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.
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": "3.0.10", | ||
"description": "Vizabi DDFcsv reader", | ||
"author": "Vyacheslav Chub<[email protected]>", | ||
"license": "GPL-3.0", | ||
|
@@ -11,21 +11,24 @@ | |
"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-node": "tsc --project tsconfig.json && TARGET_DIR=lib npm run set-own-version", | ||
"tsc-web": "tsc --project tsconfig-web.json && TARGET_DIR=lib-web 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", | ||
"pree2e": "npm run submodules:init && npm run remove-unneeded && npm run coverage:clean && npm run tslint && npm run tsc", | ||
"pree2e": "npm run submodules:init && npm run remove-unneeded && npm run coverage:clean && npm run tslint && npm run tsc-node", | ||
"e2e": "nyc mocha", | ||
"pree2e:doc": "npm run pree2e", | ||
"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", | ||
"build:node": "npm run tsc", | ||
"build:web": "npm run tsc && npm run webpack", | ||
"build:node": "npm run tsc-node", | ||
"build:web": "npm run tsc-web && npm run webpack", | ||
"preversion": "npm run build", | ||
"version": "npm run changelog && git add CHANGELOG.md", | ||
"postversion": "git push origin master && git push --tags && npm run github-release", | ||
|
@@ -52,13 +55,10 @@ | |
"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", | ||
"cross-project-diagnostics": "0.1.5", | ||
"ddf-query-validator": "1.3.4", | ||
"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 +85,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", | ||
|
@@ -116,12 +117,12 @@ | |
"source-map-support": "0.5.6", | ||
"ts-loader": "4.3.0", | ||
"ts-node": "7.0.0", | ||
"tslib": "1.9.3", | ||
"tslint": "5.11.0", | ||
"tslint-no-unused-expression-chai": "0.1.3", | ||
"typescript": "3.2.2", | ||
"uglifyjs-webpack-plugin": "1.2.5", | ||
"webpack": "4.8.1", | ||
"webpack-bundle-analyzer": "^3.0.4", | ||
"webpack-cli": "2.1.3", | ||
"webpack-dev-server": "3.1.4", | ||
"webpack-merge": "4.1.2", | ||
|
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('..', process.env.TARGET_DIR, '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.