Skip to content

Commit fa54cf8

Browse files
Added/updated tooling config files to match other JSDevTools projects
1 parent bbe2db1 commit fa54cf8

File tree

3 files changed

+39
-3
lines changed

3 files changed

+39
-3
lines changed

.gitattributes

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Git attributes
2+
# https://git-scm.com/docs/gitattributes
3+
# https://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes
4+
5+
# Normalize line endings for all files that git determines to be text.
6+
# https://git-scm.com/docs/gitattributes#gitattributes-Settostringvalueauto
7+
* text=auto
8+
9+
# Normalize line endings to LF on checkin, and do NOT convert to CRLF when checking-out on Windows.
10+
# https://git-scm.com/docs/gitattributes#gitattributes-Settostringvaluelf
11+
*.txt text eol=lf
12+
*.html text eol=lf
13+
*.md text eol=lf
14+
*.css text eol=lf
15+
*.scss text eol=lf
16+
*.map text eol=lf
17+
*.js text eol=lf
18+
*.jsx text eol=lf
19+
*.ts text eol=lf
20+
*.tsx text eol=lf
21+
*.json text eol=lf
22+
*.yml text eol=lf
23+
*.yaml text eol=lf
24+
*.xml text eol=lf
25+
*.svg text eol=lf

.nycrc.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# NYC config
2+
# https://github.com/istanbuljs/nyc#configuration-files
3+
4+
extension:
5+
- .js
6+
- .ts
7+
8+
reporter:
9+
- text
10+
- lcov

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,16 @@
3535
"lib"
3636
],
3737
"engines": {
38-
"node": ">=6"
38+
"node": ">=10"
3939
},
4040
"scripts": {
41+
"clean": "shx rm -rf .nyc_output coverage",
4142
"lint": "eslint bin lib test/fixtures test/specs",
4243
"test": "mocha && npm run lint",
43-
"coverage": "nyc --reporter=text --reporter=lcov node_modules/mocha/bin/mocha",
44+
"coverage": "nyc node_modules/mocha/bin/mocha",
4445
"upgrade": "npm-check -u && npm audit fix",
4546
"bump": "bump --tag --push --all",
46-
"release": "npm run upgrade && npm test && npm run bump"
47+
"release": "npm run upgrade && npm run clean && npm test && npm run bump"
4748
},
4849
"dependencies": {
4950
"@jsdevtools/browserify-banner": "^2.0.0",

0 commit comments

Comments
 (0)