Add yarn verify script (#378)

* Add yarn check script

* Rename

* Add verify script to subdirectories for convenience
This commit is contained in:
Forrest Wolf 2022-06-03 17:10:14 -05:00 committed by GitHub
parent 7572e07489
commit b89753e1fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 4 deletions

View File

@ -2,7 +2,9 @@
"name": "common",
"version": "1.0.0",
"private": true,
"scripts": {},
"scripts": {
"verify": "(cd .. && yarn verify)"
},
"sideEffects": false,
"dependencies": {
"lodash": "4.17.21"

View File

@ -15,7 +15,8 @@
"db:update-local-from-remote": "yarn db:backup-remote && gsutil rsync -r gs://$npm_package_config_firestore/firestore_export ./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: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)"
},
"main": "lib/functions/src/index.js",
"dependencies": {

View File

@ -7,7 +7,9 @@
"functions",
"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)"
},
"dependencies": {},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "5.25.0",

View File

@ -13,7 +13,8 @@
"start": "next start",
"lint": "next lint",
"format": "npx prettier --write .",
"postbuild": "next-sitemap"
"postbuild": "next-sitemap",
"verify": "(cd .. && yarn verify)"
},
"dependencies": {
"@headlessui/react": "1.6.1",