-
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 #16 from buzcarter/feature/rollback_menu_lists_enh…
…ancements_only add Tbsp, gm, tsp, and Tbsp to recognized units;
- Loading branch information
Showing
9 changed files
with
175 additions
and
34 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 |
---|---|---|
@@ -1,16 +1,14 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "npm", | ||
"script": "build", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"problemMatcher": [], | ||
"label": "npm: build", | ||
"detail": "node ./build.js" | ||
} | ||
] | ||
"version": "2.0.0", | ||
"tasks": [{ | ||
"type": "npm", | ||
"script": "build", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"problemMatcher": [], | ||
"label": "npm: build", | ||
"detail": "node ./build.js" | ||
}] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
const HEX_ESC = '\x1b'; | ||
|
||
/* eslint-disable key-spacing */ | ||
export const ColorTypes = Object.freeze({ | ||
Reset: `${HEX_ESC}[0m`, | ||
}); | ||
|
||
export const Colors = Object.freeze({ | ||
// Text colors (foreground colors) | ||
Black: `${HEX_ESC}[30m`, | ||
Blue: `${HEX_ESC}[34m`, | ||
CoolYellow: `${HEX_ESC}[38;2;175;175;151m`, | ||
Cyan: `${HEX_ESC}[36m`, | ||
Gray: `${HEX_ESC}[90m`, | ||
Green: `${HEX_ESC}[32m`, | ||
Magenta: `${HEX_ESC}[35m`, | ||
Orange: `${HEX_ESC}[38;5;208m`, | ||
Pink: `${HEX_ESC}[38;5;175m`, | ||
Purple: `${HEX_ESC}[38;5;99m`, | ||
Red: `${HEX_ESC}[31m`, | ||
White: `${HEX_ESC}[37m`, | ||
Yellow: `${HEX_ESC}[33m`, | ||
}); | ||
/* eslint-enable key-spacing */ | ||
|
||
export default { | ||
ColorTypes, | ||
Colors, | ||
}; |
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,18 @@ | ||
import { | ||
basename, | ||
dirname, | ||
extname, | ||
resolve, | ||
} from 'path'; | ||
import { fileURLToPath } from 'url'; | ||
|
||
/** directory name of project root */ | ||
export const __dirname = resolve(dirname(fileURLToPath(import.meta.url)), '../..'); | ||
|
||
export const filterByExtension = (fileList, basePath, allowedExtensions) => fileList | ||
.filter((fileName) => allowedExtensions.includes(extname(fileName))) | ||
.map((fileName) => ({ | ||
file: resolve(basePath, fileName), | ||
fileName, | ||
name: basename(fileName, extname(fileName)), | ||
})); |
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,7 @@ | ||
AddDefaultCharset UTF-8 | ||
<FilesMatch "\.(txt|md)$"> | ||
AddCharset UTF-8 .txt .md | ||
</FilesMatch> | ||
<FilesMatch "\.md$"> | ||
ForceType text/plain | ||
</FilesMatch> |