chore(repo): format via Nx

This commit is contained in:
Tasos Bekos 2020-11-22 21:15:42 +02:00 committed by Victor Savkin
parent 7285405175
commit 89826063a0
5 changed files with 4 additions and 24 deletions

View File

@ -13,6 +13,7 @@ packages/express/src/schematics/**/files/**/*.json
packages/nest/src/schematics/**/files/**/*.json packages/nest/src/schematics/**/files/**/*.json
packages/react/src/schematics/**/files/**/*.json packages/react/src/schematics/**/files/**/*.json
packages/jest/src/schematics/**/files/**/*.json packages/jest/src/schematics/**/files/**/*.json
packages/**/schematics/**/files/**/*.html
/.vscode /.vscode
/.idea /.idea
/.github /.github

View File

@ -12,7 +12,7 @@
/> />
</head> </head>
<body> <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"> <symbol id="crosshair" viewBox="0 0 24 24">
<g <g
fill="none" fill="none"

View File

@ -9,13 +9,13 @@
"build": "./scripts/package.sh --local", "build": "./scripts/package.sh --local",
"commit": "git-cz", "commit": "git-cz",
"check-commit": "node ./scripts/commit-lint.js", "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-imports": "node ./scripts/check-imports.js",
"check-versions": "ts-node -P ./scripts/tsconfig.scripts.json ./scripts/check-versions.ts", "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", "check-documentation-map": "ts-node -P ./scripts/tsconfig.scripts.json ./scripts/documentation/map-link-checker.ts",
"e2e": "./scripts/e2e.sh", "e2e": "./scripts/e2e.sh",
"e2e-ci": "./scripts/e2e-ci.sh", "e2e-ci": "./scripts/e2e-ci.sh",
"format": "./scripts/format.sh", "format": "nx format",
"nx-release": "./scripts/nx-release.js", "nx-release": "./scripts/nx-release.js",
"test": "nx run-many --target=test --all --parallel", "test": "nx run-many --target=test --all --parallel",
"lint": "nx run-many --target=lint --all --parallel", "lint": "nx run-many --target=lint --all --parallel",

View File

@ -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

View File

@ -1,4 +0,0 @@
#!/usr/bin/env bash
echo "Prettier"
prettier "**/*.{ts,js,json,css,scss,md}" "!**/{__name__,__directory__}/**" --write