chore: setup markdown formatting (#3224)
* chore(deps): upgrade prettier to v1.8.2 * chore: setup lint-docs script * docs: add `<!-- prettier-ignore -->`s * docs: format docs * Revert "docs: format docs" This reverts commit 6dba903987dddc498cb589ca311905f25b6aee53. * chore(prettierrc): set `--no-prose-wrap` * docs: format docs * Revert "docs: format docs" This reverts commit 139bd744b6921916be8fac4fa3bab83bae5d12df. * docs: tweak * docs: format docs * chore: rename .prettierrc * chore: rename back to .prettierrc * chore: split out third-party * refactor: fix linting * chore: do not split out third-party on website
This commit is contained in:
1 parent
a0c95cf862
commit
76efb33e75
35 files changed
+525
-436
No files matched your search
@@ -40,6 +40,9 @@ shell.echo("Bundling lib bin...");
|
||||
shell.exec("rollup -c scripts/build/rollup.bin.config.js");
|
||||
shell.chmod("+x", "./dist/bin/prettier.js");
|
||||
|
||||
shell.echo("Bundling lib third-party...");
|
||||
shell.exec("rollup -c scripts/build/rollup.third-party.config.js");
|
||||
|
||||
for (const parser of parsers) {
|
||||
if (parser === "postcss") {
|
||||
continue;
|
||||
@@ -66,9 +69,13 @@ shell.echo();
|
||||
// --- Docs ---
|
||||
|
||||
shell.echo("Bundling docs index...");
|
||||
shell.cp("dist/index.js", `${docs}/index.js`);
|
||||
shell.exec(
|
||||
`node_modules/babel-cli/bin/babel.js dist/index.js --out-file ${
|
||||
`rollup -c scripts/build/rollup.index.config.js --environment BUILD_TARGET:website -o ${
|
||||
docs
|
||||
}/index.js`
|
||||
);
|
||||
shell.exec(
|
||||
`node_modules/babel-cli/bin/babel.js ${docs}/index.js --out-file ${
|
||||
docs
|
||||
}/index.js --presets=es2015`
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user