Skip to content

Instantly share code, notes, and snippets.

@williamchong
Created September 24, 2020 07:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save williamchong/37ed6d7ff1d519830dee98df2e05b0b7 to your computer and use it in GitHub Desktop.
Save williamchong/37ed6d7ff1d519830dee98df2e05b0b7 to your computer and use it in GitHub Desktop.
nuxt + express dev server package.json setup
"scripts": {
"dev": "cd server && tsc-watch --onSuccess \"node ./lib/index.js\"",
"build": "yarn build:server && yarn build:client",
"build:client": "nuxt-ts build",
"build:server": "cd server && tsc",
"start": "nuxt-ts start",
"generate": "nuxt-ts generate",
"lint:js": "eslint --ext .js,.vue --ignore-path .gitignore .",
"lint:server": "eslint --ext .ts --ignore-path .gitignore server",
"lint:style": "stylelint **/*.{vue,css} --ignore-path .gitignore",
"lint": "yarn lint:js && yarn lint:style && yarn lint:server",
"test": "jest"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment