-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
24 lines (24 loc) · 1.13 KB
/
Copy pathpackage.json
File metadata and controls
24 lines (24 loc) · 1.13 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
{
"name": "content-shell",
"version": "1.0.0",
"description": "Content shell (default demo: viewer / markdown-view over HTTPS :443).",
"type": "module",
"main": "./src/index.ts",
"module": "./src/index.ts",
"exports": {
".": "./src/index.ts"
},
"scripts": {
"dev": "vite --config vite.config.js",
"dev:8434": "VIEW_DEV_PORT=8434 vite --config vite.config.js",
"demo": "npm run dev",
"ssl:localhost": "mkdir -p certs && openssl req -x509 -newkey rsa:2048 -nodes -keyout certs/key.pem -out certs/cert.pem -days 825 -subj '/CN=localhost' -addext 'subjectAltName=DNS:localhost,DNS:*.localhost,IP:127.0.0.1,IP:::1'",
"predev": "node -e \"const fs=require('fs');const p='certs/cert.pem';if(!fs.existsSync(p))console.warn('\\\\n[content-shell] No certs/'+p.split('/').pop()+'. Run: npm run ssl:localhost\\\\n');\"",
"build": "vite build --config vite.config.js",
"preview": "vite preview --config vite.config.js",
"test": "echo \"(no unit tests yet)\""
},
"keywords": ["shell", "content", "crossword"],
"author": "",
"license": "ISC"
}