Reorganize verify scripts (#589)

* Update verify to match check for functions

* Give each subdirectory a verify:dir script
This commit is contained in:
Forrest Wolf 2022-06-28 14:46:25 -05:00 committed by GitHub
parent c18a0378e9
commit 7f9b0557c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 4 deletions

View File

@ -3,7 +3,8 @@
"version": "1.0.0", "version": "1.0.0",
"private": true, "private": true,
"scripts": { "scripts": {
"verify": "(cd .. && yarn verify)" "verify": "(cd .. && yarn verify)",
"verify:dir": "npx eslint . --max-warnings 0"
}, },
"sideEffects": false, "sideEffects": false,
"dependencies": { "dependencies": {

View File

@ -17,7 +17,8 @@
"db:backup-local": "firebase emulators:export --force ./firestore_export", "db:backup-local": "firebase emulators:export --force ./firestore_export",
"db:rename-remote-backup-folder": "gsutil mv gs://$npm_package_config_firestore/firestore_export gs://$npm_package_config_firestore/firestore_export_$(date +%d-%m-%Y-%H-%M)", "db:rename-remote-backup-folder": "gsutil mv gs://$npm_package_config_firestore/firestore_export gs://$npm_package_config_firestore/firestore_export_$(date +%d-%m-%Y-%H-%M)",
"db:backup-remote": "yarn db:rename-remote-backup-folder && gcloud firestore export gs://$npm_package_config_firestore/firestore_export/", "db:backup-remote": "yarn db:rename-remote-backup-folder && gcloud firestore export gs://$npm_package_config_firestore/firestore_export/",
"verify": "(cd .. && yarn verify)" "verify": "(cd .. && yarn verify)",
"verify:dir": "npx eslint . --max-warnings 0; tsc -b -v --pretty"
}, },
"main": "functions/src/index.js", "main": "functions/src/index.js",
"dependencies": { "dependencies": {

View File

@ -8,7 +8,7 @@
"web" "web"
], ],
"scripts": { "scripts": {
"verify": "(cd web && npx prettier --check .; yarn lint --max-warnings 0; tsc --pretty --project tsconfig.json --noEmit); (cd common && npx eslint . --max-warnings 0); (cd functions && npx eslint . --max-warnings 0; tsc --pretty --project tsconfig.json --noEmit)" "verify": "(cd web && yarn verify:dir); (cd functions && yarn verify:dir)"
}, },
"dependencies": {}, "dependencies": {},
"devDependencies": { "devDependencies": {

View File

@ -14,7 +14,8 @@
"lint": "next lint", "lint": "next lint",
"format": "npx prettier --write .", "format": "npx prettier --write .",
"postbuild": "next-sitemap", "postbuild": "next-sitemap",
"verify": "(cd .. && yarn verify)" "verify": "(cd .. && yarn verify)",
"verify:dir": "npx prettier --check .; yarn lint --max-warnings 0; tsc --pretty --project tsconfig.json --noEmit"
}, },
"dependencies": { "dependencies": {
"@amplitude/analytics-browser": "0.4.1", "@amplitude/analytics-browser": "0.4.1",