diff --git a/package-lock.json b/package-lock.json index 30516fa..2d5b4f1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -39,6 +39,7 @@ "eslint-config-next": "12.1.5", "graphql": "^14.7.0", "next-sitemap": "^2.5.20", + "prettier": "^2.6.2", "prettier-plugin-organize-imports": "^2.3.4", "tailwindcss": "^3.0.24", "typescript": "^4.6.3" @@ -7551,11 +7552,10 @@ } }, "node_modules/prettier": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.6.1.tgz", - "integrity": "sha512-8UVbTBYGwN37Bs9LERmxCPjdvPxlEowx2urIL6urHzdb3SDq4B/Z6xLFCblrSnE4iKWcS6ziJ3aOYrc1kz/E2A==", + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.6.2.tgz", + "integrity": "sha512-PkUpF+qoXTqhOeWL9fu7As8LXsIUZ1WYaJiY/a7McAQzxjk82OF0tibkFXVCDImZtWxbvojFjerkiLb0/q8mew==", "dev": true, - "peer": true, "bin": { "prettier": "bin-prettier.js" }, @@ -14721,11 +14721,10 @@ "dev": true }, "prettier": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.6.1.tgz", - "integrity": "sha512-8UVbTBYGwN37Bs9LERmxCPjdvPxlEowx2urIL6urHzdb3SDq4B/Z6xLFCblrSnE4iKWcS6ziJ3aOYrc1kz/E2A==", - "dev": true, - "peer": true + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.6.2.tgz", + "integrity": "sha512-PkUpF+qoXTqhOeWL9fu7As8LXsIUZ1WYaJiY/a7McAQzxjk82OF0tibkFXVCDImZtWxbvojFjerkiLb0/q8mew==", + "dev": true }, "prettier-plugin-organize-imports": { "version": "2.3.4", diff --git a/package.json b/package.json index 60054e4..c488b50 100644 --- a/package.json +++ b/package.json @@ -2,13 +2,14 @@ "name": "accords-library.com", "private": true, "scripts": { - "dev": "next dev", - "build": "next build", + "dev": "next dev -p 12499", + "build": "npm run generate && next build", "postbuild": "next-sitemap", - "start": "next start", + "start": "next start -p 12500", "lint": "next lint", "generate": "graphql-codegen --config graphql-codegen.js", - "tsc": "tsc" + "tsc": "tsc", + "prettier": "prettier --end-of-line auto --write ." }, "dependencies": { "@fontsource/material-icons": "^4.5.4", @@ -44,6 +45,7 @@ "eslint-config-next": "12.1.5", "graphql": "^14.7.0", "next-sitemap": "^2.5.20", + "prettier": "^2.6.2", "prettier-plugin-organize-imports": "^2.3.4", "tailwindcss": "^3.0.24", "typescript": "^4.6.3" diff --git a/run_accords_build.sh b/run_accords_build.sh deleted file mode 100755 index e266dfa..0000000 --- a/run_accords_build.sh +++ /dev/null @@ -1,3 +0,0 @@ -npm run generate -npm run build -npm run postbuild \ No newline at end of file diff --git a/run_accords_dev.sh b/run_accords_dev.sh index e7c9e0a..ef232dd 100755 --- a/run_accords_dev.sh +++ b/run_accords_dev.sh @@ -1 +1 @@ -npx next dev -p 12499 +npm run dev diff --git a/run_accords_prettier.sh b/run_accords_prettier.sh deleted file mode 100755 index b19f459..0000000 --- a/run_accords_prettier.sh +++ /dev/null @@ -1 +0,0 @@ -npx prettier --end-of-line auto --write . diff --git a/run_accords_prod.sh b/run_accords_prod.sh index 2ff712c..a01add9 100755 --- a/run_accords_prod.sh +++ b/run_accords_prod.sh @@ -1 +1 @@ -npx next start -p 12500 +npm run start \ No newline at end of file diff --git a/src/queries/helpers.ts b/src/queries/helpers.ts index 87da78b..b20ad97 100644 --- a/src/queries/helpers.ts +++ b/src/queries/helpers.ts @@ -447,4 +447,4 @@ export function getPreferredLanguage( export function isInteger(value: string): boolean { // eslint-disable-next-line require-unicode-regexp return /^[+-]?[0-9]+$/.test(value); -} \ No newline at end of file +}