Skip to content

Commit

Permalink
add dynamic port-selection and postinstall action
Browse files Browse the repository at this point in the history
  • Loading branch information
kharann committed Sep 20, 2020
1 parent 0738ed1 commit 2e8bb7a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"scripts": {
"dev": "next dev -p 8080",
"build": "next build",
"start": "next start",
"start": "next start --port ${PORT:-3000}",
"format": "prettier --write 'src/**/*.{ts,tsx,less}'",
"format-check": "prettier --check 'src/**/*.{ts,tsx,less}'",
"lint": "yarn lint-ts && yarn lint-less && yarn format",
Expand All @@ -20,7 +20,8 @@
"lint-ts-check": "eslint 'src/**/*.{js,jsx,ts,tsx}'",
"lint-less-check": "stylelint src/**/*.less",
"test": "jest --env=jsdom",
"tsc": "tsc --noEmit"
"tsc": "tsc --noEmit",
"postinstall": "next build"
},
"devDependencies": {
"@babel/plugin-proposal-decorators": "^7.3.0",
Expand Down

0 comments on commit 2e8bb7a

Please sign in to comment.