-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
34 lines (34 loc) · 1.47 KB
/
package.json
File metadata and controls
34 lines (34 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
"name": "spasm-docs",
"version": "1.0.0",
"license": "MIT",
"description": "Docs for Signer and Protocol Agnostic Social Media (Spasm)",
"scripts": {
"clean": "rm -rf ./dist",
"create:dist": "mkdir -p ./dist",
"copy:static": "npm run create:dist && cp ./static/* ./dist/",
"copy:styles": "npm run create:dist && cp ./source/styles.css ./dist/styles.css",
"copy:all": "npm run copy:static && npm run copy:styles",
"convert:docs": "node ./helper/convert.js",
"build": "npm run clean && npm run copy:all && npm run convert:docs",
"start:dev": "http-server ./dist/ -p 3002",
"dev": "clear && npm run copy:static && nodemon",
"update:dev": "npm run copy:styles && npm run convert:docs && npm run start:dev",
"start:prod": "pm2 start ecosystem-prod.config.js",
"prod": "npm run build && npm run start:prod",
"git-update": "git fetch && git reset --hard origin/master && git pull",
"delete-pm2-prod": "pm2 delete $(node -e 'const ecosystem = require(\"./ecosystem-prod.config.js\"); console.log(ecosystem.apps[0].name);' | tail -n 1)",
"restart-pm2-prod": "npm run delete-pm2-prod && npm run prod",
"git-update-and-restart": "npm run git-update && npm ci && npm run restart-pm2-prod",
"upgrade": "npm run git-update-and-restart",
"test": "echo 'no tests'"
},
"dependencies": {
"http-server": "14.1.1",
"marked": "15.0.7",
"marked-gfm-heading-id": "4.1.1"
},
"devDependencies": {
"nodemon": "3.1.9"
}
}