mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
Merge pull request #2406 from rejas/danger
Remove now unused danger library
This commit is contained in:
commit
189721ebba
@ -17,6 +17,8 @@ _This release is scheduled to be released on 2021-04-01._
|
|||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
- Removed danger.js library.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- Added default log levels to stop calendar log spamming.
|
- Added default log levels to stop calendar log spamming.
|
||||||
|
@ -1,17 +0,0 @@
|
|||||||
import { danger, fail, warn } from "danger";
|
|
||||||
|
|
||||||
// Check if the CHANGELOG.md file has been edited
|
|
||||||
// Fail the build and post a comment reminding submitters to do so if it wasn't changed
|
|
||||||
if (!danger.git.modified_files.includes("CHANGELOG.md")) {
|
|
||||||
warn("Please include an updated `CHANGELOG.md` file.<br>This way we can keep track of all the contributions.");
|
|
||||||
}
|
|
||||||
|
|
||||||
// Check if the PR request is send to the master branch.
|
|
||||||
// This should only be done by MichMich.
|
|
||||||
if (danger.github.pr.base.ref === "master" && danger.github.pr.user.login !== "MichMich") {
|
|
||||||
// Check if the PR body or title includes the text: #accepted.
|
|
||||||
// If not, the PR will fail.
|
|
||||||
if ((danger.github.pr.body + danger.github.pr.title).includes("#accepted")) {
|
|
||||||
fail("Please send all your pull requests to the `develop` branch.<br>Pull requests on the `master` branch will not be accepted.");
|
|
||||||
}
|
|
||||||
}
|
|
2187
package-lock.json
generated
2187
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
17
package.json
17
package.json
@ -14,7 +14,7 @@
|
|||||||
"test:e2e": "NODE_ENV=test mocha tests/e2e --recursive",
|
"test:e2e": "NODE_ENV=test mocha tests/e2e --recursive",
|
||||||
"test:unit": "NODE_ENV=test mocha tests/unit --recursive",
|
"test:unit": "NODE_ENV=test mocha tests/unit --recursive",
|
||||||
"test:prettier": "prettier --check **/*.{js,css,json,md,yml}",
|
"test:prettier": "prettier --check **/*.{js,css,json,md,yml}",
|
||||||
"test:js": "eslint *.js js/**/*.js modules/default/**/*.js clientonly/*.js serveronly/*.js translations/*.js vendor/*.js tests/**/*.js config/* --config .eslintrc.json --quiet",
|
"test:js": "eslint js/**/*.js modules/default/**/*.js clientonly/*.js serveronly/*.js translations/*.js vendor/*.js tests/**/*.js config/* --config .eslintrc.json --quiet",
|
||||||
"test:css": "stylelint css/main.css modules/default/**/*.css --config .stylelintrc.json",
|
"test:css": "stylelint css/main.css modules/default/**/*.css --config .stylelintrc.json",
|
||||||
"test:calendar": "node ./modules/default/calendar/debug.js",
|
"test:calendar": "node ./modules/default/calendar/debug.js",
|
||||||
"config:check": "node js/check_config.js",
|
"config:check": "node js/check_config.js",
|
||||||
@ -44,12 +44,11 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"chai": "^4.2.0",
|
"chai": "^4.2.0",
|
||||||
"chai-as-promised": "^7.1.1",
|
"chai-as-promised": "^7.1.1",
|
||||||
"danger": "^10.5.4",
|
"eslint-config-prettier": "^7.1.0",
|
||||||
"eslint-config-prettier": "^7.0.0",
|
"eslint-plugin-jsdoc": "^30.7.13",
|
||||||
"eslint-plugin-jsdoc": "^30.7.8",
|
"eslint-plugin-prettier": "^3.3.1",
|
||||||
"eslint-plugin-prettier": "^3.2.0",
|
|
||||||
"express-basic-auth": "^1.2.0",
|
"express-basic-auth": "^1.2.0",
|
||||||
"husky": "^4.3.5",
|
"husky": "^4.3.6",
|
||||||
"jsdom": "^16.4.0",
|
"jsdom": "^16.4.0",
|
||||||
"lodash": "^4.17.20",
|
"lodash": "^4.17.20",
|
||||||
"mocha": "^8.2.1",
|
"mocha": "^8.2.1",
|
||||||
@ -70,11 +69,11 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"colors": "^1.4.0",
|
"colors": "^1.4.0",
|
||||||
"console-stamp": "^3.0.0-rc4.2",
|
"console-stamp": "^3.0.0-rc4.2",
|
||||||
"eslint": "^7.15.0",
|
"eslint": "^7.17.0",
|
||||||
"express": "^4.17.1",
|
"express": "^4.17.1",
|
||||||
"express-ipfilter": "^1.1.2",
|
"express-ipfilter": "^1.1.2",
|
||||||
"feedme": "^2.0.2",
|
"feedme": "^2.0.2",
|
||||||
"helmet": "^4.2.0",
|
"helmet": "^4.3.1",
|
||||||
"ical": "^0.8.0",
|
"ical": "^0.8.0",
|
||||||
"iconv-lite": "^0.6.2",
|
"iconv-lite": "^0.6.2",
|
||||||
"module-alias": "^2.2.2",
|
"module-alias": "^2.2.2",
|
||||||
@ -84,7 +83,7 @@
|
|||||||
"rrule": "^2.6.6",
|
"rrule": "^2.6.6",
|
||||||
"rrule-alt": "^2.2.8",
|
"rrule-alt": "^2.2.8",
|
||||||
"simple-git": "^2.31.0",
|
"simple-git": "^2.31.0",
|
||||||
"socket.io": "^3.0.4",
|
"socket.io": "^3.0.5",
|
||||||
"valid-url": "^1.0.9"
|
"valid-url": "^1.0.9"
|
||||||
},
|
},
|
||||||
"_moduleAliases": {
|
"_moduleAliases": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user