forked from codesandbox/codesandbox-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
121 lines (121 loc) · 6.18 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
{
"name": "codesandbox",
"version": "0.1.0",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/codesandbox/codesandbox-client"
},
"license": "GPL-3.0",
"workspaces": {
"packages": [
"packages/@styled-system/css",
"packages/app",
"packages/browser-dart-sass",
"packages/browser-eslint-rules",
"packages/codesandbox-api",
"packages/common",
"packages/components",
"packages/deps",
"packages/executors",
"packages/node-services",
"packages/notifications",
"packages/react-embed",
"packages/sandbox-hooks",
"packages/sandpack-core",
"packages/sse-hooks",
"packages/template-icons",
"packages/vue3-browser-compiler",
"packages/vue3-transpiler"
],
"nohoist": [
"**/react-codemirror2",
"**/react-codemirror2/**",
"codesandbox-deps/tern"
]
},
"scripts": {
"build": "cross-env NODE_OPTIONS=\"--max-old-space-size=4096\" yarn build:deps && yarn build:prod",
"build:clean": "lerna run build:clean --scope app && rimraf www",
"build:common": "lerna run build:dev --scope @codesandbox/common --stream",
"build:components": "lerna run build:dev --scope @codesandbox/components --stream",
"build:deps": "lerna run build:dev",
"build:sandpack": "lerna run build:sandpack-sandbox --scope app --stream",
"build:embed": "lerna run build:embed --scope app --stream && gulp",
"build:prod": "lerna run build --scope app --stream && lerna run copy-assets --scope app --stream",
"commit": "concurrently \"yarn typecheck\" \"yarn lint\" && git commit -m",
"postinstall": "yarn lerna run install-dependencies --stream --concurrency 1 && cd packages/app/src/app/overmind/effects/vscode/LinterWorker && yarn install",
"contributors:add": "all-contributors add",
"contributors:generate": "all-contributors generate",
"lint": "lerna run lint --stream",
"now-build": "yarn build:deps && lerna run build:storybook --scope @codesandbox/common",
"start": "yarn build:deps && cross-env NODE_ENV=development lerna run start --scope @codesandbox/common --scope @codesandbox/components --scope app --parallel",
"start:common": "lerna run start --scope @codesandbox/common --stream",
"start:components": "lerna run start --scope @codesandbox/components --stream",
"start:dev_api": "(tmux new-session -d -s csb \"NODE_OPTIONS=--max_old_space_size=8192 concurrently --raw 'cd packages/app && yarn start:dev_api' 'cd packages/common && yarn start' 'cd packages/components && yarn start'\" || tmux attach -t csb) && tmux attach -t csb",
"prestart:fast": "chmod +x ./env.sh && ./env.sh ./packages/app/static/js/env-config.js",
"start:fast": "cross-env ENDPOINT=https://codesandbox.io NODE_ENV=development concurrently --raw \"cd packages/app && yarn start\" \"cd packages/common && yarn start\" \"cd packages/components && yarn start\"",
"start:csb-dev": "cross-env NODE_ENV=development stmux -w always -e ERROR -m beep,system -- [ \"cd packages/app && sleep 15 && yarn start:dev_api\" : [ \"cd packages/common && yarn start\" .. \"cd packages/components && yarn start\" ] ]",
"start:profiling": "cross-env NODE_ENV=production PROFILING=true concurrently --raw \"cd packages/app && yarn start\" \"cd packages/common && yarn start\" \"cd packages/components && yarn start\"",
"start:hot": "cross-env NODE_ENV=development APP_ONLY=true concurrently --raw \"cd packages/app && yarn start\" \"cd packages/common && yarn start\" \"cd packages/components && yarn start\"",
"prestart:fast:stream": "chmod +x ./env.sh && ./env.sh ./packages/app/static/js/env-config.js",
"prestart:fast:local": "chmod +x ./env.sh && ./env.sh ./packages/app/static/js/env-config.js",
"start:fast:stream": "cross-env ENDPOINT=https://codesandbox.stream NODE_ENV=development concurrently --raw \"cd packages/app && yarn start\" \"cd packages/common && yarn start\" \"cd packages/components && yarn start\"",
"start:fast:local": "cross-env ENDPOINT=http://localhost:4000 NODE_ENV=development concurrently --raw \"cd packages/app && yarn start\" \"cd packages/common && yarn start\" \"cd packages/components && yarn start\"",
"start:storybook": "lerna run start:storybook --scope=@codesandbox/common --stream",
"start:test": "lerna run start:test --scope app --stream",
"start:vscode": "cross-env VSCODE=1 yarn start:fast & cd standalone-packages/monaco-editor && yarn simpleserver & cd standalone-packages/vscode && yarn watch",
"test": "lerna run test --ignore codesandbox-browserfs",
"test:pr": "node testpr-script",
"test:ci": "lerna run test --ignore codesandbox-browserfs -- --ci --testResultsProcessor=\"jest-junit\" ",
"test:integrations": "lerna exec --scope app --stream -- yarn test:integrations",
"test:jest-lite": "lerna exec --scope app --stream -- yarn run test jest-lite --watch --coverage",
"chromatic": "lerna run chromatic --scope=@codesandbox/components --stream",
"typecheck": "lerna run typecheck",
"prettify": "prettier -w .",
"prepare": "husky install"
},
"dependencies": {
"postinstall-postinstall": "^2.1.0"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/parser": "^6.9.0",
"all-contributors-cli": "^6.26.1",
"babel-eslint": "10.1.0",
"concurrently": "^4.1.0",
"cross-env": "^6.0.0",
"eslint": "5.16.0",
"eslint-config-airbnb": "^18.0.1",
"eslint-config-prettier": "^6.3.0",
"eslint-import-resolver-webpack": "^0.8.1",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-react": "~7.21.2",
"eslint-plugin-react-hooks": "^4.1.0",
"eslint-plugin-react_editor": "npm:[email protected]",
"gulp": "^4.0.2",
"husky": "^8.0.3",
"jest-environment-jsdom": "^29.7.0",
"lerna": "^6",
"lint-staged": "10.5.4",
"prettier": "2.1.1",
"pretty-quick": "^3.0.0",
"typescript": "^5.2.2",
"username": "^5.1.0"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"cross-env LINT=1 eslint --fix",
"pretty-quick --staged"
]
},
"engines": {
"node": "^16.0.0"
}
}