Add jsonlint updater

This commit is contained in:
Rob Garrison 2018-07-18 01:04:34 -05:00
parent ebdedbe040
commit 2935b06905
3 changed files with 9 additions and 1 deletions

View File

@ -9,6 +9,7 @@
"codemirror": "^5.39.0", "codemirror": "^5.39.0",
"eslint": "^5.1.0", "eslint": "^5.1.0",
"fs-extra": "^7.0.0", "fs-extra": "^7.0.0",
"jsonlint": "^1.6.3",
"updates": "^3.2.3" "updates": "^3.2.3"
}, },
"scripts": { "scripts": {

View File

@ -37,6 +37,9 @@ const files = {
'mode/javascript', 'mode/javascript',
'mode/stylus', 'mode/stylus',
'theme' 'theme'
],
'jsonlint': [
'lib/jsonlint.js → jsonlint.js'
] ]
}; };
@ -48,8 +51,9 @@ async function updateReadme(lib) {
} }
async function copy(lib, folder) { async function copy(lib, folder) {
const [src, dest] = folder.split(/\s*→\s*/);
try { try {
await fs.copy(`${root}/node_modules/${lib}/${folder}`, `${root}/vendor/${lib}/${folder}`); await fs.copy(`${root}/node_modules/${lib}/${src}`, `${root}/vendor/${lib}/${dest || src}`);
} catch (err) { } catch (err) {
exit(err); exit(err);
} }

3
vendor/jsonlint/README.md vendored Normal file
View File

@ -0,0 +1,3 @@
## v0.0.0
Jsonlint version installed via npm - source repo https://github.com/zaach/jsonlint