Added npm run-scripts
This commit is contained in:
parent
fcd4ba9385
commit
fe3757f56f
|
@ -39,6 +39,7 @@
|
||||||
"eslint-config-next": "12.1.5",
|
"eslint-config-next": "12.1.5",
|
||||||
"graphql": "^14.7.0",
|
"graphql": "^14.7.0",
|
||||||
"next-sitemap": "^2.5.20",
|
"next-sitemap": "^2.5.20",
|
||||||
|
"prettier": "^2.6.2",
|
||||||
"prettier-plugin-organize-imports": "^2.3.4",
|
"prettier-plugin-organize-imports": "^2.3.4",
|
||||||
"tailwindcss": "^3.0.24",
|
"tailwindcss": "^3.0.24",
|
||||||
"typescript": "^4.6.3"
|
"typescript": "^4.6.3"
|
||||||
|
@ -7551,11 +7552,10 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/prettier": {
|
"node_modules/prettier": {
|
||||||
"version": "2.6.1",
|
"version": "2.6.2",
|
||||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.6.1.tgz",
|
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.6.2.tgz",
|
||||||
"integrity": "sha512-8UVbTBYGwN37Bs9LERmxCPjdvPxlEowx2urIL6urHzdb3SDq4B/Z6xLFCblrSnE4iKWcS6ziJ3aOYrc1kz/E2A==",
|
"integrity": "sha512-PkUpF+qoXTqhOeWL9fu7As8LXsIUZ1WYaJiY/a7McAQzxjk82OF0tibkFXVCDImZtWxbvojFjerkiLb0/q8mew==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"peer": true,
|
|
||||||
"bin": {
|
"bin": {
|
||||||
"prettier": "bin-prettier.js"
|
"prettier": "bin-prettier.js"
|
||||||
},
|
},
|
||||||
|
@ -14721,11 +14721,10 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"prettier": {
|
"prettier": {
|
||||||
"version": "2.6.1",
|
"version": "2.6.2",
|
||||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.6.1.tgz",
|
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.6.2.tgz",
|
||||||
"integrity": "sha512-8UVbTBYGwN37Bs9LERmxCPjdvPxlEowx2urIL6urHzdb3SDq4B/Z6xLFCblrSnE4iKWcS6ziJ3aOYrc1kz/E2A==",
|
"integrity": "sha512-PkUpF+qoXTqhOeWL9fu7As8LXsIUZ1WYaJiY/a7McAQzxjk82OF0tibkFXVCDImZtWxbvojFjerkiLb0/q8mew==",
|
||||||
"dev": true,
|
"dev": true
|
||||||
"peer": true
|
|
||||||
},
|
},
|
||||||
"prettier-plugin-organize-imports": {
|
"prettier-plugin-organize-imports": {
|
||||||
"version": "2.3.4",
|
"version": "2.3.4",
|
||||||
|
|
10
package.json
10
package.json
|
@ -2,13 +2,14 @@
|
||||||
"name": "accords-library.com",
|
"name": "accords-library.com",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev -p 12499",
|
||||||
"build": "next build",
|
"build": "npm run generate && next build",
|
||||||
"postbuild": "next-sitemap",
|
"postbuild": "next-sitemap",
|
||||||
"start": "next start",
|
"start": "next start -p 12500",
|
||||||
"lint": "next lint",
|
"lint": "next lint",
|
||||||
"generate": "graphql-codegen --config graphql-codegen.js",
|
"generate": "graphql-codegen --config graphql-codegen.js",
|
||||||
"tsc": "tsc"
|
"tsc": "tsc",
|
||||||
|
"prettier": "prettier --end-of-line auto --write ."
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fontsource/material-icons": "^4.5.4",
|
"@fontsource/material-icons": "^4.5.4",
|
||||||
|
@ -44,6 +45,7 @@
|
||||||
"eslint-config-next": "12.1.5",
|
"eslint-config-next": "12.1.5",
|
||||||
"graphql": "^14.7.0",
|
"graphql": "^14.7.0",
|
||||||
"next-sitemap": "^2.5.20",
|
"next-sitemap": "^2.5.20",
|
||||||
|
"prettier": "^2.6.2",
|
||||||
"prettier-plugin-organize-imports": "^2.3.4",
|
"prettier-plugin-organize-imports": "^2.3.4",
|
||||||
"tailwindcss": "^3.0.24",
|
"tailwindcss": "^3.0.24",
|
||||||
"typescript": "^4.6.3"
|
"typescript": "^4.6.3"
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
npm run generate
|
|
||||||
npm run build
|
|
||||||
npm run postbuild
|
|
|
@ -1 +1 @@
|
||||||
npx next dev -p 12499
|
npm run dev
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
npx prettier --end-of-line auto --write .
|
|
|
@ -1 +1 @@
|
||||||
npx next start -p 12500
|
npm run start
|
|
@ -447,4 +447,4 @@ export function getPreferredLanguage(
|
||||||
export function isInteger(value: string): boolean {
|
export function isInteger(value: string): boolean {
|
||||||
// eslint-disable-next-line require-unicode-regexp
|
// eslint-disable-next-line require-unicode-regexp
|
||||||
return /^[+-]?[0-9]+$/.test(value);
|
return /^[+-]?[0-9]+$/.test(value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue