CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/next/package.json
Views: 687
1
{
2
"name": "@cocalc/next",
3
"version": "0.103.5",
4
"description": "CoCalc's nextjs server",
5
"main": "lib/init.js",
6
"exports": {
7
"./init": "./lib/init.js",
8
"./lib/*": "./dist/lib/*.js",
9
"./lib/share": "./dist/lib/share/*.js"
10
},
11
"files": [
12
".next/*",
13
"styles/*",
14
"public/*",
15
"pages/*",
16
"lib/*",
17
"dist/*",
18
"components/*",
19
"README.md",
20
"package.json",
21
"tsconfig.json",
22
"tsconfig-dist.json",
23
"next-env.d.ts",
24
"next.config.js"
25
],
26
"scripts": {
27
"preinstall": "npx only-allow pnpm",
28
"build": "pnpm patch-openapi && pnpm exec next telemetry disable && rm -rf .next && pnpm build-dev && NODE_OPTIONS='--max_old_space_size=8000' next build && pnpm generate-openapi",
29
"build-dev": "pnpm patch-openapi && pnpm exec next telemetry disable && rm -rf dist && pnpm software && ../node_modules/.bin/tsc --build tsconfig-dist.json && pnpm generate-openapi",
30
"tsc": "../node_modules/.bin/tsc --build tsconfig-dist.json -w --pretty --preserveWatchOutput ",
31
"software": "bash ./software-inventory/setup.sh",
32
"build-deps": "cd ../backend && pnpm build && cd ../util && pnpm build",
33
"build-project": "pnpm build-deps && npx next telemetry disable && pnpm build-dev && NODE_OPTIONS='--max_old_space_size=8000' BASE_PATH=/$COCALC_PROJECT_ID/port/5000 next build",
34
"clean": "rm -rf node_modules .next dist",
35
"start": "unset PGHOST; pnpm exec next start",
36
"start-project": "unset PGHOST PGUSER COCALC_ROOT; export PORT=5000 BASE_PATH=/$COCALC_PROJECT_ID/port/5000; echo https://cocalc.com$BASE_PATH; pnpm start",
37
"test": "NODE_ENV='dev' pnpm exec jest && NODE_ENV='production' pnpm exec jest ./lib/api/framework.test.ts",
38
"prepublishOnly": "pnpm test",
39
"patch-openapi": "sed -i '/^interface NrfOasData {/s/^interface/export interface/' node_modules/next-rest-framework/dist/index.d.ts",
40
"generate-openapi": "cd dist && rm -f public && ln -sf ../public public && NODE_ENV='dev' NODE_PATH=`pwd` npx next-rest-framework generate",
41
"validate-openapi": "cd dist && rm -f public && ln -sf ../public public && NODE_ENV='dev' NODE_PATH=`pwd` npx next-rest-framework validate"
42
},
43
"repository": {
44
"type": "git",
45
"url": "git+https://github.com/sagemathinc/cocalc.git"
46
},
47
"author": "SageMath, Inc.",
48
"license": "SEE LICENSE IN LICENSE.md",
49
"bugs": {
50
"url": "https://github.com/sagemathinc/cocalc/issues"
51
},
52
"homepage": "https://github.com/sagemathinc/cocalc/tree/master/src/packages/next",
53
"private": false,
54
"dependencies-comment": "IMPORTANT: we install typescript as a normal dependency (not devDependencies) since it may be needed at runtime due to server settings changing!!",
55
"dependencies": {
56
"@ant-design/icons": "^4.8.3",
57
"@cocalc/assets": "workspace:*",
58
"@cocalc/backend": "workspace:*",
59
"@cocalc/cdn": "workspace:*",
60
"@cocalc/database": "workspace:*",
61
"@cocalc/frontend": "workspace:*",
62
"@cocalc/server": "workspace:*",
63
"@cocalc/util": "workspace:*",
64
"@openapitools/openapi-generator-cli": "^2.13.4",
65
"@types/react": "^18.3.10",
66
"@types/react-dom": "^18.3.0",
67
"@vscode/vscode-languagedetection": "^1.0.22",
68
"antd": "^5.21.1",
69
"antd-img-crop": "^4.21.0",
70
"awaiting": "^3.0.0",
71
"base-64": "^1.0.0",
72
"basic-auth": "^2.0.1",
73
"cookies": "^0.8.0",
74
"csv-stringify": "^6.3.0",
75
"dayjs": "^1.11.11",
76
"express": "^4.21.1",
77
"lodash": "^4.17.21",
78
"lru-cache": "^7.18.3",
79
"ms": "2.1.2",
80
"next": "14.2.15",
81
"next-remove-imports": "^1.0.11",
82
"next-rest-framework": "6.0.0-beta.4",
83
"password-hash": "^1.2.2",
84
"pg": "^8.7.1",
85
"react": "^18.3.1",
86
"react-dom": "^18.3.1",
87
"react-google-recaptcha": "^2.1.0",
88
"react-google-recaptcha-v3": "^1.9.7",
89
"serve-index": "^1.9.1",
90
"sha1": "^1.1.1",
91
"sharp": "^0.32.6",
92
"timeago-react": "^3.0.4",
93
"tslib": "^2.3.1",
94
"use-async-effect": "^2.2.7",
95
"uuid": "^8.3.2",
96
"xmlbuilder2": "^3.0.2",
97
"zod": "^3.23.5"
98
},
99
"devDependencies": {
100
"@babel/preset-typescript": "^7.23.3",
101
"@types/express": "^4.17.21",
102
"@types/node": "^18.16.14",
103
"node-mocks-http": "^1.14.1",
104
"react-test-renderer": "^18.2.0"
105
}
106
}
107
108