Skip to content

Commit

Permalink
fix: standardized build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewBastin committed Sep 17, 2021
1 parent 4407f26 commit e90b26e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/*"
Expand Down
7 changes: 5 additions & 2 deletions packages/hoppscotch-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit e90b26e

Please sign in to comment.