mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-02-10 18:05:07 +08:00
85 lines
2.6 KiB
JSON
85 lines
2.6 KiB
JSON
{
|
|
"name": "builder",
|
|
"version": "1.0.1",
|
|
"homepage": "https://www.onlyoffice.com",
|
|
"private": true,
|
|
"grunt": {
|
|
"copy": {
|
|
"server": {
|
|
"expand": true,
|
|
"src": [
|
|
"./**/sources/*.js",
|
|
"./Common/package.json",
|
|
"./DocService/package.json",
|
|
"./DocService/public/healthcheck.docx",
|
|
"./FileConverter/package.json",
|
|
"./FileConverter/bin/DoctRenderer.config",
|
|
"./Metrics/package.json",
|
|
"./Common/config/*.json",
|
|
"./Common/config/log4js/*.json",
|
|
"./Metrics/config/config.js"
|
|
],
|
|
"dest": "./build/server"
|
|
}
|
|
},
|
|
"develop-copy": {
|
|
"server": {}
|
|
},
|
|
"clean": {
|
|
"options": {
|
|
"force": true
|
|
},
|
|
"server": "./build/server"
|
|
},
|
|
"mkdir": {
|
|
"server": {
|
|
"options": {
|
|
"create": [
|
|
"./build/server"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"postprocess": {
|
|
"src": [
|
|
"./build/server/**/sources/*.js"
|
|
],
|
|
"dest": "./"
|
|
},
|
|
"npm": [
|
|
"./build/server/Common",
|
|
"./build/server/DocService",
|
|
"./build/server/FileConverter",
|
|
"./build/server/Metrics"
|
|
],
|
|
"dependencies": {
|
|
"grunt": "1.5.3",
|
|
"grunt-banner": "0.6.0",
|
|
"grunt-check-dependencies": "1.0.0",
|
|
"grunt-contrib-clean": "2.0.0",
|
|
"grunt-contrib-copy": "1.0.0",
|
|
"grunt-mkdir": "1.1.0",
|
|
"grunt-stripcomments": "0.7.2",
|
|
"npm-run-all": "4.1.5"
|
|
},
|
|
"devDependencies": {
|
|
"@jest/globals": "29.5.0",
|
|
"cross-env": "7.0.3",
|
|
"jest": "29.5.0"
|
|
},
|
|
"scripts": {
|
|
"perf-expired": "cd ./DocService&& cross-env NODE_ENV=development-windows NODE_CONFIG_DIR=../Common/config node ../tests/perf/checkFileExpire.js",
|
|
"perf-exif": "cd ./DocService&& cross-env NODE_ENV=development-windows NODE_CONFIG_DIR=../Common/config node ../tests/perf/fixImageExifRotation.js",
|
|
"unit tests": "cd ./DocService && jest unit --inject-globals=false --config=../tests/jest.config.js",
|
|
"integration tests with server instance": "cd ./DocService && jest integration/withServerInstance --inject-globals=false --config=../tests/jest.config.js",
|
|
"integration tests without server instance": "cd ./DocService && jest integration/(?!withServerInstance/) --inject-globals=false --config=../tests/jest.config.js",
|
|
"tests": "cd ./DocService && jest --inject-globals=false --config=../tests/jest.config.js",
|
|
"install:Common": "npm ci --prefix ./Common",
|
|
"install:DocService": "npm ci --prefix ./DocService",
|
|
"install:FileConverter": "npm ci --prefix ./FileConverter",
|
|
"install:Metrics": "npm ci --prefix ./Metrics",
|
|
"build": "run-p install:*"
|
|
}
|
|
}
|