Skip to content

Instantly share code, notes, and snippets.

@jake-lewis
Last active July 4, 2018 15:41
Show Gist options
  • Save jake-lewis/c79175f7a9a7cb1fe875b5dcd57e7b4d to your computer and use it in GitHub Desktop.
Save jake-lewis/c79175f7a9a7cb1fe875b5dcd57e7b4d to your computer and use it in GitHub Desktop.
Express App as executable - taken from https://github.com/zeit/pkg/issues/398#issuecomment-384110862
npm install express-generator -g
express --view=pug express-pug-generated
cd express-pug-generated/
code package.json
# Add the following two properties:
# "bin": "bin/www",
# "pkg": {
# "assets":
# [
# "views/**/*",
# "public"
# ]
# },
npm install
pkg .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment