Skip to content

Commit 14d552e

Browse files
author
ADMSK\AVROGAL1
committed
docs: updates on workflows
Added information on documentation
1 parent f88a694 commit 14d552e

6 files changed

Lines changed: 53 additions & 12 deletions

File tree

.env-cmdrc.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"dev": {
3+
"DEBUG": "true"
4+
},
5+
"prod": {
6+
"DEBUG": "false",
7+
"AWS_LAMBDA_FUNCTION_VERSION": "1.0"
8+
},
9+
"test": {
10+
"TZ": "utc"
11+
}
12+
}

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm run test:all

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
[![Tokei](https://tokei.rs/b1/github/AlexRogalskiy/charts?category=lines)](https://github.com/XAMPPRocky/tokei)
1818
![Mergify Status](https://img.shields.io/endpoint.svg?url=https://gh.mergify.io/badges/AlexRogalskiy/charts)
1919
[![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com)
20+
[![DOI](https://zenodo.org/badge/337395887.svg)](https://zenodo.org/badge/latestdoi/337395887)
2021

2122
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://raw.githubusercontent.com/alexrogalskiy/charts/master/LICENSE?token=AH44ZFH7IF2KSEDK7LSIW3C7YOFYC)
2223
[![Issue](https://img.shields.io/github/issues/alexrogalskiy/charts)](https://img.shields.io/github/issues/alexrogalskiy/charts)

package-lock.json

Lines changed: 23 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@
88
"deploy:dev": "vercel",
99
"deploy:prod": "vercel --prod",
1010
"develop": "vercel dev",
11-
"format": "prettier --write **/*.ts",
11+
"format": "prettier --single-quote --write **/*.ts",
1212
"format:check": "prettier --check **/*.ts",
1313
"lint": "eslint --cache --fix --quiet --format codeframe --ext js,ts .",
1414
"reinstall": "del-cli ./node_modules ./package-lock.json ./yarn.lock",
1515
"postreinstall": "yarn setup",
16+
"postinstall": "husky install",
17+
"prepare": "rimraf coverage",
1618
"setup": "yarn",
1719
"semantic-release": "semantic-release",
18-
"test": "TZ=utc jest",
20+
"test": "env-cmd -e test jest",
1921
"test:coverage": "jest --collectCoverage",
2022
"test:watch": "jest --watch",
2123
"test:all": "npm run test",
@@ -29,7 +31,8 @@
2931
"lodash.isequal": "^4.5.0",
3032
"plotly.js-dist": "^1.58.4",
3133
"plotly.js-geo-dist": "^1.58.4",
32-
"qs": "^6.5.0"
34+
"qs": "^6.5.0",
35+
"env-cmd": "^10.1.0"
3336
},
3437
"devDependencies": {
3538
"@semantic-release/github": "^7.2.0",
@@ -56,6 +59,7 @@
5659
"semantic-release": ">=17.2.3",
5760
"ts-jest": "^26.5.1",
5861
"ts-node": ">=9.0.0",
62+
"husky": "^5.0.8",
5963
"typescript": "^4.1.3"
6064
},
6165
"repository": {
@@ -105,6 +109,11 @@
105109
]
106110
]
107111
},
112+
"husky": {
113+
"hooks": {
114+
"pre-commit": "npm test:all"
115+
}
116+
},
108117
"bugs": {
109118
"url": "https://github.com/AlexRogalskiy/charts/issues"
110119
},

0 commit comments

Comments
 (0)