-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
111 lines (111 loc) · 3.15 KB
/
package.json
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
{
"name": "paper-cms",
"version": "0.0.7",
"license": "ISC",
"author": "Julian Cataldo",
"homepage": "www.JulianCataldo.com",
"repository": "https://github.com/JulianCataldo/paper-cms",
"keywords": [
"JSON Schema",
"OpenAPI",
"Schema.org",
"MUI",
"React",
"Headless",
"CMS"
],
"description": "A document-based headless CMS with API + back office",
"type": "module",
"main": "./server/index.js",
"scripts": {
"prepare": "husky install",
"test": "echo 'launching tests…'",
"deps:i": "npm i -g pnpm && pnpm -r i",
"clean": "rm -rf ./.public",
"clean:a": "rm -rf ./.public ./.data",
"client": "pnpm esbuild --bundle ./client/app.jsx --minify --outfile=./.public/assets/browser.js",
"client:w": "pnpm esbuild --bundle ./client/app.jsx --sourcemap --outfile=./.public/assets/browser.js --watch",
"server": "NODE_ENV=production node ./server/index.js",
"server:w": "PAPER_STANDALONE='true' pnpm nodemon -e js,yaml ./server/index.js -w ./server -w ./client/base-html.js -w ./models",
"server:b": "pnpm esbuild --platform=node --format=esm --bundle ./server/index.js --pure:console.log --external:./server/node_modules/* --minify --outfile=./.dist/server/bundle.js",
"live-reload": "nodemon -w ./.public -x \"curl localhost:${PAPER_PORT:-7777}/reload\"",
"dev": "pnpm server:w & pnpm client:w & pnpm live-reload",
"release": "standard-version && git push --follow-tags origin master"
},
"dependencies": {
"esbuild": "^0.14.43",
"nodemon": "^2.0.16",
"pnpm": "^7.2.0"
},
"engines": {
"node": "17.9",
"pnpm": "7"
},
"packageManager": "pnpm@7.9.3",
"devDependencies": {
"@commitlint/cli": "^17.0.2",
"@commitlint/config-conventional": "^17.0.2",
"eslint": "^8.17.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.30.0",
"eslint-plugin-react-hooks": "^4.5.0",
"husky": "^8.0.1",
"lodash-es": "^4.17.21",
"prettier": "^2.6.2",
"standard-version": "^9.5.0"
},
"commitlint": {
"//": "build | chore | ci | docs | feat | fix | perf | refactor | revert | style | test",
"extends": [
"@commitlint/config-conventional"
]
},
"prettier": {
"singleQuote": true,
"trailingComma": "all",
"overrides": [
{
"files": [
"**/*.css",
"**/*.scss"
],
"options": {
"singleQuote": false
}
}
]
},
"eslintConfig": {
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"airbnb",
"plugin:react/recommended",
"plugin:prettier/recommended"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"import/extensions": "off",
"guard-for-in": "off",
"no-underscore-dangle": "off",
"no-use-before-define": "off",
"no-restricted-syntax": "off"
}
}
}