Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Commit

Permalink
feat: postbuild script for automatic type generation
Browse files Browse the repository at this point in the history
  • Loading branch information
mg901 committed Jan 17, 2019
1 parent 50e3d20 commit 29126be
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@
"module": "es/typographist-core.es.js",
"scripts": {
"build": "npm run clean && rollup -c",
"postbuild:cjs": "npx flow gen-flow-files src/index.js > ./lib/typographist-core.cjs.js.flow",
"postbuild:es": "npx flow gen-flow-files src/index.js > es/typographist-core.es.js.flow",
"postbuild": "npm run postbuild:cjs && npm run postbuild:es",
"clean": "rimraf lib es",
"commit": "git-cz",
"coverage": "cat ./coverage/lcov.info | coveralls",
"prettier": "prettier './**/**/**.{json,js,eslintrc}' --write",
"semantic-release": "semantic-release",
"test": "npm run test:lint && flow && npm run test:code",
"test": "npm run test:lint && npx flow && npm run test:code",
"test:watch": "jest --coverage --watch --updateSnapshot",
"test:code": "jest --coverage",
"test:lint": "eslint ."
Expand Down Expand Up @@ -59,8 +62,8 @@
"@babel/plugin-proposal-export-namespace-from": "7.2.0",
"@babel/preset-env": "^7.2.0",
"@babel/preset-flow": "^7.0.0",
"@commitlint/cli": "^7.2.1",
"@commitlint/config-conventional": "^7.1.2",
"@commitlint/cli": "7.3.2",
"@commitlint/config-conventional": "7.3.1",
"@semantic-release/changelog": "3.0.2",
"@semantic-release/commit-analyzer": "^6.1.0",
"@semantic-release/git": "7.0.7",
Expand All @@ -75,24 +78,23 @@
"cz-conventional-changelog": "^2.1.0",
"eslint": "5.12.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-config-prettier": "^3.3.0",
"eslint-config-prettier": "3.5.0",
"eslint-plugin-flowtype": "^3.2.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jest": "^22.1.2",
"eslint-plugin-prettier": "3.0.1",
"flow-bin": "0.90.0",
"flow-bin": "0.88.0",
"husky": "1.3.1",
"igogo": "^1.0.2",
"igogo": "1.4.1",
"jest": "^23.6.0",
"lint-staged": "^8.1.0",
"memoize-one": "5.0.0",
"nyc": "^13.1.0",
"prettier": "^1.15.3",
"rimraf": "2.6.3",
"rollup": "1.0.2",
"rollup-plugin-babel": "4.2.0",
"rollup": "1.1.0",
"rollup-plugin-babel": "4.3.0",
"rollup-plugin-commonjs": "^9.2.0",
"rollup-plugin-flow-entry": "0.2.0",
"rollup-plugin-json": "^3.1.0",
"rollup-plugin-node-resolve": "^4.0.0",
"rollup-plugin-terser": "4.0.1",
Expand Down

0 comments on commit 29126be

Please sign in to comment.