-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Validate that images are exactly 2:1 aspect ratio * Validate that SVGs do not contain <text> * Update or remove images to pass validation: /images/clouddata-ping.svg: Error: Aspect ratio must be exactly 2, but found 2.0127 (159x79) /images/godslayerakp/http.png: Error: Aspect ratio must be exactly 2, but found 1.6129 (600x372) /images/utilities.svg: Error: Aspect ratio must be exactly 2, but found 2.0127 (159x79) * Update godslayerakp/http description
- Loading branch information
1 parent
d374041
commit 5b9aac1
Showing
9 changed files
with
106 additions
and
13 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
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,9 @@ | ||
const enableColor = !process.env.NO_COLOR; | ||
const color = (i) => enableColor ? i : ''; | ||
|
||
module.exports = { | ||
RESET: color('\x1b[0m'), | ||
BOLD: color('\x1b[1m'), | ||
RED: color('\x1b[31m'), | ||
GREEN: color('\x1b[32m') | ||
}; |
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,18 @@ | ||
require('./build-production'); | ||
const Builder = require('./builder'); | ||
const Colors = require('./colors'); | ||
|
||
const builder = new Builder('production'); | ||
const errors = builder.validate(); | ||
|
||
if (errors.length === 0) { | ||
console.log(`${Colors.GREEN}${Colors.BOLD}Validation checks passed.${Colors.RESET}`); | ||
process.exit(0); | ||
} else { | ||
console.error(`${Colors.RED}${Colors.BOLD}${errors.length} ${errors.length === 1 ? 'file' : 'files'} failed validation.${Colors.RESET}`); | ||
console.error(''); | ||
for (const {fileName, error} of errors) { | ||
console.error(`${Colors.BOLD}${fileName}${Colors.RESET}: ${error}`); | ||
} | ||
console.error(``); | ||
process.exit(1); | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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