fix: standardized build scripts
This commit is contained in:
@@ -22,6 +22,6 @@ EXPOSE 3000
|
||||
|
||||
RUN mv packages/hoppscotch-app/.env.example packages/hoppscotch-app/.env
|
||||
|
||||
RUN pnpm -r build-prod
|
||||
RUN pnpm run generate
|
||||
|
||||
CMD ["pnpm", "run", "start"]
|
||||
|
||||
10
package.json
10
package.json
@@ -7,11 +7,11 @@
|
||||
"scripts": {
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"prepare": "husky install",
|
||||
"dev": "pnpm -r dev",
|
||||
"build-prod": "pnpm -r build-prod",
|
||||
"start": "pnpm -r start",
|
||||
"lintfix": "pnpm -r lintfix",
|
||||
"pre-commit": "pnpm -r lint"
|
||||
"dev": "pnpm -r do-dev",
|
||||
"generate": "pnpm -r do-build-prod",
|
||||
"start": "pnpm -r do-prod-start",
|
||||
"lintfix": "pnpm -r do-lintfix",
|
||||
"pre-commit": "pnpm -r do-lintfix"
|
||||
},
|
||||
"workspaces": [
|
||||
"./packages/*"
|
||||
|
||||
@@ -13,13 +13,16 @@
|
||||
"build": "vue-tsc --noEmit && nuxt build",
|
||||
"start": "nuxt start",
|
||||
"generate": "nuxt generate --modern",
|
||||
"build-prod": "nuxt generate --modern",
|
||||
"analyze": "npx nuxt build -a",
|
||||
"lint:script": "eslint --ext .ts,.js,.vue --ignore-path .gitignore .",
|
||||
"lint:style": "stylelint **/*.{css,scss,vue} --ignore-path .gitignore",
|
||||
"lint": "npm run lint:script && npm run lint:style",
|
||||
"lintfix": "eslint --ext .ts,.js,.vue --ignore-path .gitignore . --fix",
|
||||
"test": "jest"
|
||||
"test": "jest",
|
||||
"do-dev": "pnpm run dev",
|
||||
"do-build-prod": "pnpm run generate",
|
||||
"do-prod-start": "pnpm run start",
|
||||
"do-lintfix": "pnpm run lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"@apollo/client": "^3.4.11",
|
||||
|
||||
Reference in New Issue
Block a user