Move all docs to website (#3139)
* Sync README -> docs/options.md * Sync README -> docs/*.md * Misc fixups * Remove markdown-toc * Remove insert-pragma from ToC * Never again! * Move all docs to ./docs * Remove yarn toc * Fix inter-doc links * Fix links in footer * Clean up README.md * Add basic description to README.md * Use flat badges * Move editor guides to website * Improve prettier-ignore docs * Fixup bad find/replace * Add JSON to README * Fix custom parser API link * Fixup GitHub centering, add downloads badge * Add 1.8 docs * docs(website): mention markdown on homepage (#1) * Add intro * Add watching-files.md * Fix markdown syntax highlighting * Switch back to .md links
This commit is contained in:
1 parent
8249b1c841
commit
71a5533c4e
40 files changed
+925
-1475
No files matched your search
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
const pkg = require("../package.json");
|
||||
const chalk = require("chalk");
|
||||
|
||||
validateDependencyObject(pkg.dependencies);
|
||||
validateDependencyObject(pkg.devDependencies);
|
||||
|
||||
function validateDependencyObject(object) {
|
||||
Object.keys(object).forEach(key => {
|
||||
if (object[key][0] === "^" || object[key][0] === "~") {
|
||||
console.error(
|
||||
chalk.red("error"),
|
||||
`Dependency "${chalk.bold.red(key)}" should be pinned.`
|
||||
);
|
||||
process.exitCode = 1;
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user