Skip to content

Commit

Permalink
refactor: migrate to libdefkit
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Jul 7, 2020
1 parent 02579e0 commit 74ba548
Show file tree
Hide file tree
Showing 2 changed files with 175 additions and 51 deletions.
11 changes: 3 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,11 @@
"lint:fix": "yarn lint --fix",
"test": "yarn lint && yarn jest",
"clean": "rimraf target typings",
"build": "yarn clean && yarn build:es5 && yarn build:es6 && yarn build:ts && yarn libdef && yarn docs && yarn uglify",
"build": "yarn clean && yarn build:es5 && yarn build:es6 && yarn build:ts && yarn build:libdef && yarn docs && yarn uglify",
"build:es5": "mkdir -p target/es5 && tsc -p tsconfig.es5.json",
"build:es6": "mkdir -p target/es6 && tsc -p tsconfig.es6.json",
"build:ts": "cp -r src/main/ts/ target/ts/",
"dtsgen": "dts-generator --project ./ --out typings/index.d.ts --prefix @qiwi/event-transmitter/target/es5 --name @qiwi/event-transmitter --main @qiwi/event-transmitter/target/es5/index --moduleResolution node",
"flowgen": "flowgen typings/index.d.ts --output-file flow-typed/index.flow.js",
"libdef": "yarn dtsgen && yarn libdeffix && yarn flowgen",
"libdeffix": "node -r esm ./scripts/js/libdef-fix.js --dts=./typings/index.d.ts --prefix=@qiwi/event-transmitter/target/es5",
"build:libdef": "dts-generator --project ./ --out typings/index.d.ts --prefix @qiwi/event-transmitter/target/es5 --name @qiwi/event-transmitter --main @qiwi/event-transmitter/target/es5/index && libdeffix --dts=./typings/index.d.ts --prefix=@qiwi/event-transmitter/target/es5 && flowgen typings/index.d.ts --output-file flow-typed/index.flow.js",
"test:report": "yarn test && yarn push:report",
"push:report": "yarn coveralls:push",
"coveralls:push": "cat ./coverage/lcov.info | coveralls",
Expand Down Expand Up @@ -62,6 +59,7 @@
"tslib": "^2.0.0"
},
"devDependencies": {
"@qiwi/libdefkit": "^1.0.2",
"@qiwi/semantic-release-gh-pages-plugin": "^4.0.0",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/git": "^9.0.0",
Expand All @@ -76,14 +74,11 @@
"@typescript-eslint/parser": "^3.6.0",
"coveralls": "^3.1.0",
"cross-fetch": "^3.0.5",
"dts-generator": "^3.0.0",
"eslint": "^7.4.0",
"eslint-config-qiwi": "1.4.0",
"eslint-plugin-typescript": "^0.14.0",
"esm": "^3.2.25",
"flowgen": "1.11.0",
"jest": "^26.1.0",
"replace-in-file": "^6.1.0",
"rimraf": "^3.0.2",
"semantic-release": "^17.1.1",
"terser": "^4.8.0",
Expand Down
Loading

0 comments on commit 74ba548

Please sign in to comment.