-
-
Notifications
You must be signed in to change notification settings - Fork 261
/
package.json
158 lines (158 loc) · 7.89 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
{
"name": "root",
"private": true,
"engines": {
"node": ">=0.14"
},
"workspaces": {
"packages": [
"packages/common-all",
"packages/common-assets",
"packages/common-server",
"packages/common-test-utils",
"packages/dendron-viz",
"packages/engine-server",
"packages/api-server",
"packages/engine-test-utils",
"packages/pods-core",
"packages/dendron-cli",
"packages/nextjs-template",
"packages/plugin-core",
"packages/common-frontend",
"packages/dendron-plugin-views",
"packages/unified"
],
"nohoist": [
"**/@types/mocha",
"**/@types/eslint"
]
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.39.0",
"@typescript-eslint/parser": "^5.39.0",
"chalk": "^4.1.1",
"eslint": "^7.32.0",
"eslint-config-airbnb": "^18.1.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-jest": "^26.1.5",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.24.0",
"eslint-plugin-react-hooks": "^4.2.0",
"execa": "^5.0.0",
"husky": "^4.2.5",
"jest": "^28.1.0",
"lerna": "^3.19.0",
"lint-staged": ">=10",
"lodash": "^4.17.15",
"madge": "^5.0.1",
"prettier": "^2.0.4",
"standard-version": "^8.0.0",
"typedoc": "^0.23.14",
"typedoc-plugin-markdown": "^3.13.6",
"verdaccio": "^5.1.3",
"verdaccio-auth-memory": "^10.0.1",
"vsce": "^2.10.0"
},
"scripts": {
"setup": "yarn && yarn bootstrap:bootstrap && yarn bootstrap:build && yarn setup:cli",
"setup:cli": "./bootstrap/scripts/chmod-cli.js",
"build:prerelease:local": "cross-env UPGRADE_TYPE=prerelease PUBLISH_ENDPOINT=local ./bootstrap/scripts/buildPatch.sh",
"build:prerelease:remote": "cross-env UPGRADE_TYPE=prerelease PUBLISH_ENDPOINT=remote ./bootstrap/scripts/buildPatch.sh",
"build:prerelease:remote:ci": "cross-env UPGRADE_TYPE=prerelease PUBLISH_ENDPOINT=remote BUILD_ENV=ci ./bootstrap/scripts/buildPatch.sh",
"build:patch:local": "cross-env UPGRADE_TYPE=patch PUBLISH_ENDPOINT=local USE_IN_MEMORY_REGISTRY=1 ./bootstrap/scripts/buildPatch.sh",
"build:patch:local:ci": "cross-env UPGRADE_TYPE=patch PUBLISH_ENDPOINT=local BUILD_ENV=ci USE_IN_MEMORY_REGISTRY=1 ./bootstrap/scripts/buildPatch.sh",
"build:patch:local:ci:nightly": "./bootstrap/scripts/buildNightly.sh",
"build:patch:remote": "cross-env UPGRADE_TYPE=patch PUBLISH_ENDPOINT=remote ./bootstrap/scripts/buildPatch.sh",
"build:patch:remote:ci": "cross-env UPGRADE_TYPE=patch PUBLISH_ENDPOINT=remote BUILD_ENV=ci ./bootstrap/scripts/buildPatch.sh",
"build:minor:local": "cross-env UPGRADE_TYPE=minor PUBLISH_ENDPOINT=local ./bootstrap/scripts/buildPatch.sh",
"build:minor:local:ci": "cross-env UPGRADE_TYPE=minor PUBLISH_ENDPOINT=local BUILD_ENV=ci USE_IN_MEMORY_REGISTRY=1 ./bootstrap/scripts/buildPatch.sh",
"build:minor:remote": "cross-env UPGRADE_TYPE=minor PUBLISH_ENDPOINT=remote ./bootstrap/scripts/buildPatch.sh",
"build:minor:remote:ci": "cross-env UPGRADE_TYPE=minor PUBLISH_ENDPOINT=remote BUILD_ENV=ci ./bootstrap/scripts/buildPatch.sh",
"gen:data": "yarn dendron dev generate_json_schema_from_config",
"dendron": "node packages/dendron-cli/lib/bin/dendron-cli.js",
"cleanup": "./bootstrap/scripts/cleanup.sh",
"release": "standard-version",
"format": "lerna exec --parallel -- yarn format",
"format:pkg": "prettier --write",
"lint": "eslint . --ext ts,tsx",
"lerna:typecheck": "lerna exec --parallel --ignore @dendronhq/common-assets --ignore @dendronhq/dendron-plugin-views -- tsc -p tsconfig.build.json --noEmit",
"bootstrap:bootstrap": "npx yarn --network-timeout 600000 --frozen-lockfile && yarn gen:meta",
"bootstrap:build": "node bootstrap/scripts/buildAll.js",
"bootstrap:buildCI": "node bootstrap/scripts/buildAllForTest.js",
"bootstrap:build:fast": "yarn bootstrap:build:common-all && yarn bootstrap:build:common-server && yarn bootstrap:build:common-test-utils && yarn bootstrap:build:engine-server && yarn bootstrap:build:api-server && yarn bootstrap:build:engine-test-utils && yarn bootstrap:build:dendron-cli && yarn bootstrap:build:plugin-core",
"bootstrap:build:": "npx lerna run build --scope",
"bootstrap:build:nextjs-template": "yarn bootstrap:build: @dendronhq/nextjs-template",
"bootstrap:build:common-all": "yarn bootstrap:build: @dendronhq/common-all",
"bootstrap:build:common-frontend": "yarn bootstrap:build: @dendronhq/common-frontend",
"bootstrap:build:plugin-core": "yarn bootstrap:build: @dendronhq/plugin-core",
"bootstrap:build:common-server": "yarn bootstrap:build: @dendronhq/common-server",
"bootstrap:build:common-test-utils": "yarn bootstrap:build: @dendronhq/common-test-utils",
"bootstrap:build:engine-server": "yarn bootstrap:build: @dendronhq/engine-server",
"bootstrap:build:engine-test-utils": "yarn bootstrap:build: @dendronhq/engine-test-utils",
"bootstrap:build:api-server": "yarn bootstrap:build: @dendronhq/api-server",
"bootstrap:build:pods-core": "yarn bootstrap:build: @dendronhq/pods-core",
"bootstrap:build:dendron-cli": "yarn bootstrap:build: @dendronhq/dendron-cli",
"bootstrap:init": "yarn bootstrap:bootstrap && yarn bootstrap:build",
"ci:init": "yarn bootstrap:bootstrap && yarn bootstrap:build",
"ci:test:cli": "yarn test:cli",
"ci:test:plugin": "npx lerna run test --scope @dendronhq/plugin-core --stream",
"ci:test:plugin-web": "npx lerna run compile-web --scope @dendronhq/plugin-core && npx lerna run test-in-browser --scope @dendronhq/plugin-core",
"ci:test:plugin-perf": "npx lerna run perf-test --scope @dendronhq/plugin-core",
"ci:test:template": "yarn --cwd packages/nextjs-template run test",
"ci:test:template:docker": "docker run -it --rm --ipc=host -v \"$(pwd):/test\" -u \"$(id -u ${USER}):$(id -g ${USER})\" mcr.microsoft.com/playwright:v1.26.0-focal /bin/bash -c 'cd /test; npx playwright install; yarn ci:test:template $([ \"$0\" = \"/bin/bash\" ] || ([ \"$#\" = 0 ] && echo \"$0\" || echo \"$0 $@\"))'",
"template:build": "yarn --cwd packages/nextjs-template run build",
"template:export": "yarn --cwd packages/nextjs-template run export",
"template:start": "yarn --cwd packages/nextjs-template run start",
"watch": "npx lerna exec --scope $pkg -- tsc -p tsconfig.build.json --watch ",
"hooks:pre-commit": "node ./hooks/pre-commit.js",
"hooks:pre-push": "node ./hooks/pre-push.js",
"gen:meta": "node ./bootstrap/scripts/genMeta.js",
"backend:updateDendronDeps": "node bootstrap/backend/updateDendronhqDeps.js",
"stash:unstaged": "git stash save -k 'pre-linting-stash'",
"stash:pop": "git stash && git stash pop stash@{1} && git read-tree stash && git stash drop",
"test": "cross-env LOG_LEVEL=error yarn jest",
"test:cli": "cross-env LOG_LEVEL=error npx jest --selectProjects non-plugin-tests --forceExit",
"test:cli:update-snapshots": "yarn test:cli -u"
},
"packages": [
"packages/*",
"vendor/*"
],
"useWorkspaces": false,
"husky": {
"hooks": {
"pre-commit": "yarn stash:unstaged && lint-staged && yarn hooks:pre-commit && yarn stash:pop",
"pre-push": "yarn hooks:pre-push"
}
},
"lint-staged": {
"*.{ts,tsx}": [
"prettier --config prettier.config.js --loglevel debug --write",
"eslint"
]
},
"dependencies": {
"@babel/helper-string-parser": "^7.22.5",
"@babel/preset-typescript": "7.16.7",
"@babel/types": "7.17.10",
"@dendronhq/conventional-changelog-dendron": "^5.0.11",
"chalk": "^4.1.1",
"cross-env": "^7.0.3",
"execa": "^5.0.0",
"github-slugger": "^1.3.0",
"jest-serializer-path": "^0.1.15",
"typescript": "4.6",
"verdaccio-memory": "^10.0.1",
"webpack": "^5.74.0"
},
"resolutions": {
"trim": "0.0.3",
"d3-color": "3.1.0"
},
"overrides": {
"trim": "0.0.3",
"d3-color": "3.1.0"
}
}