Skip to content

Commit

Permalink
infra: added auto key generation script (#46)
Browse files Browse the repository at this point in the history
* feat: added key generation script

* chore: fix path & remove console log

* chore: generated keys

* chore: added reference comment
  • Loading branch information
anuraghazra authored Sep 16, 2020
1 parent 48bb0d2 commit 34b1f99
Show file tree
Hide file tree
Showing 24 changed files with 493 additions and 91 deletions.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"build-storybook": "build-storybook",
"commit": "gacp",
"format": "prettier --write \"./**/*.{js,ts,css,less,json,md,html,yml,yaml,pcss,jsx,tsx}\"",
"keys": "node scripts/build/keys",
"lint": "eslint . --ext .tsx,.ts,.jsx,.js --fix",
"lint:package": "sort-package-json",
"storybook": "start-storybook -p 6006",
Expand Down Expand Up @@ -66,6 +67,7 @@
"@typescript-eslint/parser": "4.1.0",
"babel-eslint": "10.1.0",
"babel-loader": "8.1.0",
"chalk": "^4.1.0",
"eslint": "7.8.1",
"eslint-config-prettier": "6.11.0",
"eslint-config-react-app": "5.2.1",
Expand All @@ -82,6 +84,7 @@
"jest-in-case": "^1.0.2",
"jest-matcher-utils": "26.4.2",
"lint-staged": "10.3.0",
"lodash": "^4.17.20",
"prettier": "2.1.1",
"react": "16.13.1",
"react-dom": "16.13.1",
Expand All @@ -91,6 +94,7 @@
"react-transition-group": "4.4.1",
"sort-package-json": "1.44.0",
"ts-jest": "26.3.0",
"ts-morph": "^8.1.0",
"typescript": "4.0.2"
}
}
8 changes: 8 additions & 0 deletions scripts/build/keys.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env node
const { hasTSConfig, makeKeys } = require("../utils");

const cwd = process.cwd();

if (hasTSConfig(cwd)) {
makeKeys(cwd);
}
Loading

0 comments on commit 34b1f99

Please sign in to comment.