-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
132 lines (132 loc) · 3.39 KB
/
package.json
File metadata and controls
132 lines (132 loc) · 3.39 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
{
"name": "stack_blog",
"version": "1.1.0-MVP",
"description": "A modern, secure flat-file CMS built with Node.js",
"main": "app.js",
"scripts": {
"start": "node app.js",
"dev": "NODE_ENV=development nodemon app.js",
"debug": "NODE_ENV=development node --inspect app.js",
"test": "NODE_ENV=test jest",
"test:watch": "NODE_ENV=test jest --watch",
"test:coverage": "NODE_ENV=test jest --coverage",
"setup": "node scripts/setup.js",
"build": "echo 'No build step required for Node.js application'",
"lint": "eslint . --ext .js --ignore-path .gitignore",
"lint:fix": "eslint . --ext .js --ignore-path .gitignore --fix",
"format": "prettier --write \"**/*.{js,json,md}\"",
"health-check": "node healthcheck.js",
"deploy": "bash scripts/deploy.sh",
"backup": "bash scripts/backup.sh",
"security-audit": "npm audit && node scripts/security-check.js",
"pm2:start": "pm2 start ecosystem.config.js --env production",
"pm2:stop": "pm2 stop stack_blog",
"pm2:restart": "pm2 restart stack_blog",
"pm2:reload": "pm2 reload stack_blog",
"pm2:logs": "pm2 logs stack_blog",
"docker:build": "docker build -t stack_blog .",
"docker:run": "docker run -p 3000:3000 --env-file .env stack_blog",
"docker:compose": "docker-compose up -d",
"docker:compose:down": "docker-compose down"
},
"keywords": [
"cms",
"blog",
"flat-file",
"markdown",
"nodejs",
"express",
"admin-panel",
"api",
"search",
"security"
],
"author": "Stack Blog Team",
"license": "ISC",
"repository": {
"type": "git",
"url": "https://github.com/audit-brands/stack_blog.git"
},
"bugs": {
"url": "https://github.com/audit-brands/stack_blog/issues"
},
"homepage": "https://github.com/audit-brands/stack_blog#readme",
"engines": {
"node": ">=18.0.0",
"npm": ">=8.0.0"
},
"type": "commonjs",
"dependencies": {
"adm-zip": "^0.5.16",
"bcrypt": "^6.0.0",
"bulma": "^1.0.4",
"chokidar": "^3.6.0",
"cors": "^2.8.5",
"csurf": "^1.11.0",
"dotenv": "^16.5.0",
"express": "^5.1.0",
"express-handlebars": "^8.0.3",
"express-rate-limit": "^7.5.1",
"express-session": "^1.18.1",
"express-validator": "^7.2.1",
"gray-matter": "^4.0.3",
"gscan": "^4.49.5",
"handlebars": "^4.7.8",
"helmet": "^8.1.0",
"js-yaml": "^4.1.0",
"markdown-it": "^14.1.0",
"multer": "^2.0.1",
"sharp": "^0.34.2"
},
"devDependencies": {
"eslint": "^8.57.0",
"jest": "^30.0.2",
"nodemon": "^3.1.9",
"prettier": "^3.3.3",
"supertest": "^7.1.1"
},
"jest": {
"testEnvironment": "node",
"collectCoverageFrom": [
"services/**/*.js",
"routes/**/*.js",
"middleware/**/*.js",
"!**/*.test.js"
],
"coverageReporters": [
"text",
"lcov",
"html"
],
"testMatch": [
"**/__tests__/**/*.test.js"
]
},
"eslintConfig": {
"env": {
"node": true,
"es2021": true,
"jest": true
},
"extends": [
"eslint:recommended"
],
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"rules": {
"no-unused-vars": "error",
"no-console": "off",
"prefer-const": "error",
"no-var": "error"
}
},
"prettier": {
"semi": true,
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 100,
"tabWidth": 2
}
}