mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-14 17:54:13 +01:00
Precommit Test
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"*.{ts,js,json,html,md,mts}": ["eslint --fix", "prettier --write"],
|
"!(docs/**/*)*.{ts,js,json,html,md,mts}": ["eslint --fix", "prettier --write"],
|
||||||
"*.jison": ["pnpm run lint:jison"]
|
"*.jison": ["pnpm run lint:jison"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -845,4 +845,4 @@ g.classGroup line {
|
|||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
`Coming soon`
|
`Coming soon!`
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
{
|
{
|
||||||
"src/docs/**": ["pnpm --filter mermaid run docs:build --git"],
|
"src/docs/**": [
|
||||||
"src/docs.mts": ["pnpm --filter mermaid run docs:build --git"],
|
"pnpm --filter mermaid run docs:build --git"
|
||||||
"*.{ts,js,json,html,md,mts}": ["eslint --fix", "prettier --write"],
|
],
|
||||||
"*.jison": ["pnpm run lint:jison"]
|
"src/docs.mts": [
|
||||||
}
|
"pnpm --filter mermaid run docs:build --git"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -284,7 +284,7 @@ const getFilesFromGlobs = async (globs: string[]): Promise<string[]> => {
|
|||||||
}
|
}
|
||||||
if (git) {
|
if (git) {
|
||||||
console.log(`Adding changes in ${FINAL_DOCS_DIR} folder to git`);
|
console.log(`Adding changes in ${FINAL_DOCS_DIR} folder to git`);
|
||||||
exec('git add docs');
|
exec(`git add ${FINAL_DOCS_DIR}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|||||||
@@ -628,4 +628,4 @@ g.classGroup line {
|
|||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
`Coming soon...`
|
`Coming soon!`
|
||||||
|
|||||||
Reference in New Issue
Block a user