-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from sineverba/release-1.4.0
Release 1.4.0
- Loading branch information
Showing
15 changed files
with
4,263 additions
and
2,034 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ jobs: | |
|
||
test: | ||
docker: | ||
- image: cimg/node:12.21.0 | ||
- image: cimg/node:18.12.0 | ||
|
||
steps: | ||
- checkout | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
|
||
# Matches multiple files with brace expansion notation | ||
# Set default charset | ||
[*.{js,py}] | ||
charset = utf-8 | ||
|
||
# Tab indentation (no size specified) | ||
[Makefile] | ||
indent_style = tab | ||
|
||
# Indentation override for all JS | ||
[*.js] | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
SONAR_TOKEN=your_secret_token | ||
SONAR_LOGIN=your_secret_token | ||
SONAR_HOST_URL=http://localhost:9000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v14.18.3 | ||
v18.13.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
include .env | ||
|
||
SONARSCANNER_VERSION=4.8.0 | ||
|
||
sonar: | ||
docker-compose start sonarscanner && docker-compose logs -f sonarscanner | ||
docker run --rm -it \ | ||
--name sonarscanner \ | ||
-v $(PWD):/usr/src \ | ||
-e SONAR_HOST_URL=$(SONAR_HOST_URL) \ | ||
-e SONAR_LOGIN=$(SONAR_LOGIN) \ | ||
sonarsource/sonar-scanner-cli:$(SONARSCANNER_VERSION) | ||
|
||
upgrade: | ||
npx ncu -u | ||
npm install | ||
npx browserslist@latest --update-db | ||
npm audit fix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
'use strict'; | ||
"use strict"; | ||
|
||
/** | ||
* | ||
* @param {*} startYear | ||
* | ||
* @param {*} startYear | ||
*/ | ||
const getYearInterval = (startYear) => { | ||
if (!startYear) { | ||
throw new Error('Missing startYear'); | ||
} | ||
const currentYear = new Date().getFullYear(); | ||
if (currentYear > startYear) { | ||
return `${startYear} - ${currentYear}`; | ||
} | ||
return startYear; | ||
} | ||
if (!startYear) { | ||
throw new Error("Missing startYear"); | ||
} | ||
const currentYear = new Date().getFullYear(); | ||
if (currentYear > startYear) { | ||
return `${startYear} - ${currentYear}`; | ||
} | ||
return startYear; | ||
}; | ||
|
||
module.exports = getYearInterval; | ||
module.exports = getYearInterval; |
Oops, something went wrong.