diff options
author | Matt Strapp <matt@mattstrapp.net> | 2022-02-17 16:01:54 -0600 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2022-02-17 16:01:54 -0600 |
commit | f36e89dd7ff5fc4089719c7893e3207b4f26abc2 (patch) | |
tree | d1980aac275e9f32af9fb10ac322907c9bcc0e87 /package.json | |
parent | Bump express from 4.17.2 to 4.17.3 (#7) (diff) | |
download | ee4511w-web-f36e89dd7ff5fc4089719c7893e3207b4f26abc2.tar ee4511w-web-f36e89dd7ff5fc4089719c7893e3207b4f26abc2.tar.gz ee4511w-web-f36e89dd7ff5fc4089719c7893e3207b4f26abc2.tar.bz2 ee4511w-web-f36e89dd7ff5fc4089719c7893e3207b4f26abc2.tar.lz ee4511w-web-f36e89dd7ff5fc4089719c7893e3207b4f26abc2.tar.xz ee4511w-web-f36e89dd7ff5fc4089719c7893e3207b4f26abc2.tar.zst ee4511w-web-f36e89dd7ff5fc4089719c7893e3207b4f26abc2.zip |
Add packing support to make it a binary
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/package.json b/package.json index 73e4c3c..5d38d3d 100644 --- a/package.json +++ b/package.json @@ -24,16 +24,19 @@ "install": "^0.13.0", "nodemon": "^2.0.15", "npm-run-all": "^4.1.5", + "pkg": "^5.5.2", "typescript": "^4.5.5" }, "scripts": { "build": "npm-run-all clean tsc copy-views", "build:ci": "npm-run-all clean tsc", + "build:pack": "npm-run-all build pack", "copy-views": "cp -r ./src/views ./dist/views && cp -r ./src/public ./dist/public", "clean": "rm -rf dist", "dev": "nodemon --watch ./src -e ts,ejs,css,js --exec yarn dev:start", "dev:start": "npm-run-all build start", "lint": "eslint --ext .ts,.js ./src --fix", + "pack": "pkg . -t node16-linux", "start": "node dist/index.js", "tsc": "tsc --project ./tsconfig.json" }, @@ -41,8 +44,13 @@ "version": "0.1.0", "description": "The webapp for Professor Lamperski's Pendulum", "main": "dist/index.js", + "bin": "dist/index.js", "author": "Matt Strapp <matt@mattstrapp.net>", "repository": "https: //github.com/RosstheRoss/4951w-pendulum", "license": "MIT", - "private": true + "private": true, + "pkg": { + "scripts": "dist/**/*.js", + "assets": "dist/**/*" + } } |