chore(repo): format via Nx
This commit is contained in:
parent
7285405175
commit
89826063a0
@ -13,6 +13,7 @@ packages/express/src/schematics/**/files/**/*.json
|
||||
packages/nest/src/schematics/**/files/**/*.json
|
||||
packages/react/src/schematics/**/files/**/*.json
|
||||
packages/jest/src/schematics/**/files/**/*.json
|
||||
packages/**/schematics/**/files/**/*.html
|
||||
/.vscode
|
||||
/.idea
|
||||
/.github
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
/>
|
||||
</head>
|
||||
<body>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="display: none">
|
||||
<symbol id="crosshair" viewBox="0 0 24 24">
|
||||
<g
|
||||
fill="none"
|
||||
|
||||
@ -9,13 +9,13 @@
|
||||
"build": "./scripts/package.sh --local",
|
||||
"commit": "git-cz",
|
||||
"check-commit": "node ./scripts/commit-lint.js",
|
||||
"check-format": "scripts/check-format.sh",
|
||||
"check-format": "nx format:check --all",
|
||||
"check-imports": "node ./scripts/check-imports.js",
|
||||
"check-versions": "ts-node -P ./scripts/tsconfig.scripts.json ./scripts/check-versions.ts",
|
||||
"check-documentation-map": "ts-node -P ./scripts/tsconfig.scripts.json ./scripts/documentation/map-link-checker.ts",
|
||||
"e2e": "./scripts/e2e.sh",
|
||||
"e2e-ci": "./scripts/e2e-ci.sh",
|
||||
"format": "./scripts/format.sh",
|
||||
"format": "nx format",
|
||||
"nx-release": "./scripts/nx-release.js",
|
||||
"test": "nx run-many --target=test --all --parallel",
|
||||
"lint": "nx run-many --target=lint --all --parallel",
|
||||
|
||||
@ -1,17 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
echo "Checking prettier"
|
||||
prettier "**/*.{ts,js,json,css,scss,md}" "!**/{__name__,__directory__}/**" --list-different
|
||||
PRETTIER_STATUS=$?
|
||||
|
||||
echo "Checking CRLF"
|
||||
find scripts -type f -exec file "{}" ";" | grep CRLF
|
||||
SCRIPTS_STATUS=$?
|
||||
|
||||
find packages -type f -exec file "{}" ";" | grep CRLF
|
||||
PACKAGES_STATUS=$?
|
||||
|
||||
if [[ $PRETTIER_STATUS -eq 1 || $SCRIPTS_STATUS -eq 0 || $PACKAGES_STATUS -eq 0 ]]; then
|
||||
echo "Please run yarn format";
|
||||
exit 1;
|
||||
fi
|
||||
@ -1,4 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
echo "Prettier"
|
||||
prettier "**/*.{ts,js,json,css,scss,md}" "!**/{__name__,__directory__}/**" --write
|
||||
Loading…
x
Reference in New Issue
Block a user