forked from wepublish/wepublish
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
140 lines (140 loc) · 6.06 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
{
"name": "wepublish",
"private": true,
"engines": {
"node": "^12.0.0",
"yarn": "^1.16.0"
},
"scripts": {
"setup": "run-s --print-label setup:**",
"dev": "run-p start:docker watch",
"clean": "run-p --print-label clean:**",
"test": "run-p --print-label test:**",
"build": "run-s --print-label build:api build:api-db-mongodb build:api-media-karma build:oauth2 build:editor build:api-example build:media-example build:oauth2-example",
"build:production": "run-s --print-label build:api build:api-db-mongodb build:api-media-karma build:oauth2 build:editor:production",
"build:demo": "run-s --print-label build:api build:api-db-mongodb build:api-media-karma build:oauth2 build:editor:production build:api-example build:media-example build:website-example",
"prerelease": "run-s clean build:production",
"release": "node -r dotenv/config ./node_modules/.bin/lerna version --conventional-commits --no-changelog --force-git-tag --no-push",
"changelog": "node -r dotenv/config ./node_modules/.bin/lerna-changelog",
"publish": "lerna publish from-package --ignore-scripts",
"watch": "run-p --print-label watch:*",
"lint": "run-p --print-label lint:*",
"start:docker": "docker-compose up mongo mongo-express",
"setup:api": "yarn workspace @wepublish/api setup",
"clean:api": "yarn workspace @wepublish/api clean",
"build:api": "yarn workspace @wepublish/api build",
"watch:api": "yarn workspace @wepublish/api watch",
"test:api": "yarn workspace @wepublish/api test",
"clean:api-db-mongodb": "yarn workspace @wepublish/api-db-mongodb clean",
"build:api-db-mongodb": "yarn workspace @wepublish/api-db-mongodb build",
"watch:api-db-mongodb": "yarn workspace @wepublish/api-db-mongodb watch",
"clean:api-db-memory": "exit 0",
"build:api-db-memory": "exit 0",
"watch:api-db-memory": "exit 0",
"clean:api-db-karma": "exit 0",
"build:api-db-karma": "exit 0",
"watch:api-db-karma": "exit 0",
"clean:api-media-karma": "yarn workspace @wepublish/api-media-karma clean",
"build:api-media-karma": "yarn workspace @wepublish/api-media-karma build",
"watch:api-media-karma": "yarn workspace @wepublish/api-media-karma watch",
"test:api-media-karma": "yarn workspace @wepublish/api-media-karma test",
"setup:editor": "yarn workspace @wepublish/editor setup",
"start:editor": "yarn workspace @wepublish/editor start",
"clean:editor": "yarn workspace @wepublish/editor clean",
"build:editor": "yarn workspace @wepublish/editor build",
"build:editor:production": "yarn workspace @wepublish/editor build:production",
"watch:editor": "yarn workspace @wepublish/editor watch",
"lint:editor": "yarn workspace @wepublish/editor lint",
"test:editor": "yarn workspace @wepublish/editor test",
"generate:editor:api": "yarn workspace @wepublish/editor generate:api",
"clean:oauth2": "yarn workspace @wepublish/oauth2 clean",
"build:oauth2": "yarn workspace @wepublish/oauth2 build",
"watch:oauth2": "yarn workspace @wepublish/oauth2 watch",
"setup:api-example": "yarn workspace @wepublish/api-example setup",
"clean:api-example": "yarn workspace @wepublish/api-example clean",
"build:api-example": "yarn workspace @wepublish/api-example build",
"watch:api-example": "yarn workspace @wepublish/api-example watch",
"start:api-example": "yarn workspace @wepublish/api-example start",
"setup:media-example": "yarn workspace @wepublish/media-example setup",
"clean:media-example": "yarn workspace @wepublish/media-example clean",
"build:media-example": "yarn workspace @wepublish/media-example build",
"watch:media-example": "yarn workspace @wepublish/media-example watch",
"start:media-example": "yarn workspace @wepublish/media-example start",
"setup:oauth2-example": "yarn workspace @wepublish/oauth2-example setup",
"clean:oauth2-example": "yarn workspace @wepublish/oauth2-example clean",
"build:oauth2-example": "yarn workspace @wepublish/oauth2-example build",
"watch:oauth2-example": "yarn workspace @wepublish/oauth2-example watch",
"start:oauth2-example": "yarn workspace @wepublish/oauth2-example start",
"clean:website-example": "yarn workspace @wepublish/website-example clean",
"build:website-example": "yarn workspace @wepublish/website-example build",
"prettier": "prettier --write '{packages,services}/**/*.{js,ts,tsx,json}'",
"prettier-check": "prettier --check '{packages,services}/**/*.{js,ts,tsx,json}'"
},
"workspaces": [
"packages/*",
"examples/*"
],
"devDependencies": {
"@babel/eslint-plugin": "^7.11.5",
"@typescript-eslint/eslint-plugin": "^4.2.0",
"@typescript-eslint/parser": "^4.2.0",
"eslint": "^7.9.0",
"eslint-config-prettier": "^6.12.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-i18next": "^5.0.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-react": "^7.21.2",
"eslint-plugin-standard": "^4.0.1",
"husky": "^3.0.0",
"lerna": "^3.22.1",
"lerna-changelog": "^1.0.1",
"npm-run-all": "^4.1.5",
"prettier": "^2.0.1",
"pretty-quick": "^1.11.1"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged --pattern '{examples,packages,services}/**/*.{js,ts,tsx,json}'"
}
},
"eslintConfig": {
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"react",
"standard"
],
"extends": [
"standard",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"prettier",
"prettier/@typescript-eslint",
"prettier/react",
"prettier/standard"
],
"rules": {
"no-use-before-define": [
0
],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-use-before-define": [
1
]
},
"env": {
"es6": true,
"node": true
},
"ignorePatterns": [
"node_modules",
"dist",
"lib",
"coverage",
"assets"
]
}
}