Last active
July 4, 2018 15:41
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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