Added npm run-scripts

This commit is contained in:
DrMint 2022-05-07 11:35:53 +02:00
parent fcd4ba9385
commit fe3757f56f
7 changed files with 17 additions and 20 deletions

17
package-lock.json generated
View File

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

View File

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

View File

@ -1,3 +0,0 @@
npm run generate
npm run build
npm run postbuild

View File

@ -1 +1 @@
npx next dev -p 12499
npm run dev

View File

@ -1 +0,0 @@
npx prettier --end-of-line auto --write .

View File

@ -1 +1 @@
npx next start -p 12500
npm run start

View File

@ -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);
}
}