mirror of
https://github.com/SunRed/haste-server.git
synced 2024-11-27 03:10:18 +01:00
Manuel
3606db4d90
* Exclude a bunch of files and directories not needed for Docker image * Exclude dev dependencies for Docker image build by introducing a production build script * Using a different alpine base image and multi-stage build reduces the Docker image by roughly 35 MB alone * Move babel to dev dependencies * Fix highlight.min.js accidentally being ignored
55 lines
1.4 KiB
JSON
55 lines
1.4 KiB
JSON
{
|
|
"name": "haste",
|
|
"version": "0.2.5",
|
|
"description": "Private Pastebin Server - continued by zneix",
|
|
"keywords": [
|
|
"paste",
|
|
"pastebin",
|
|
"haste",
|
|
"hastebin"
|
|
],
|
|
"author": {
|
|
"name": "John Crepezzi",
|
|
"email": "john.crepezzi@gmail.com",
|
|
"url": "http://seejohncode.com/"
|
|
},
|
|
"main": "server.js",
|
|
"dependencies": {
|
|
"aws-sdk": "^2.842.0",
|
|
"busboy": "^0.3.1",
|
|
"express": "^4.17.1",
|
|
"express-rate-limit": "^5.1.3",
|
|
"ioredis": "^4.22.0",
|
|
"memcached": "^3.6.4",
|
|
"mongodb": "^3.6.4",
|
|
"pg": "^8.5.1",
|
|
"rethinkdbdash": "^2.3.31",
|
|
"st": "^2.0.0",
|
|
"winston": "^3.3.3"
|
|
},
|
|
"optionalDependencies": {
|
|
"aws-sdk": "^2.842.0",
|
|
"ioredis": "^4.22.0",
|
|
"memcached": "^3.6.4",
|
|
"mongodb": "^3.6.4",
|
|
"pg": "^8.5.1",
|
|
"rethinkdbdash": "^2.3.31"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/cli": "^7.11.6",
|
|
"@babel/core": "^7.11.6",
|
|
"babel-plugin-minify-mangle-names": "^0.5.0",
|
|
"eslint": "^7.10.0",
|
|
"mocha": "^8.1.3"
|
|
},
|
|
"scripts": {
|
|
"build": "npm install && npm run minify",
|
|
"build-min": "npm install --no-optional && npm run minify",
|
|
"prod": "npm run build && npm prune --production",
|
|
"prod-min": "npm run build-min && npm prune --production --no-optional",
|
|
"minify": "npx babel --plugins minify-mangle-names --no-comments --minified static/application.js --out-file static/application.min.js",
|
|
"start": "node server.js",
|
|
"test": "mocha --recursive",
|
|
"testformat": "npx eslint ./"
|
|
}
|
|
}
|