mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +08:00
[npm] Add checkFileExpire.js to npm scripts
This commit is contained in:
9
npm-shrinkwrap.json
generated
9
npm-shrinkwrap.json
generated
@ -1733,6 +1733,15 @@
|
|||||||
"resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz",
|
||||||
"integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40="
|
"integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40="
|
||||||
},
|
},
|
||||||
|
"cross-env": {
|
||||||
|
"version": "7.0.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz",
|
||||||
|
"integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"cross-spawn": "^7.0.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
"cross-spawn": {
|
"cross-spawn": {
|
||||||
"version": "7.0.3",
|
"version": "7.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
|
||||||
|
|||||||
@ -64,9 +64,11 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@jest/globals": "29.5.0",
|
"@jest/globals": "29.5.0",
|
||||||
|
"cross-env": "7.0.3",
|
||||||
"jest": "29.5.0"
|
"jest": "29.5.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"perf-expired": "cd ./DocService&& cross-env NODE_ENV=development-windows NODE_CONFIG_DIR=../Common/config node ../tests/perf/checkFileExpire.js",
|
||||||
"unit tests": "cd ./DocService && jest unit --config=../tests/jest.config.js",
|
"unit tests": "cd ./DocService && jest unit --config=../tests/jest.config.js",
|
||||||
"integration tests": "cd ./DocService && jest integration --config=../tests/jest.config.js",
|
"integration tests": "cd ./DocService && jest integration --config=../tests/jest.config.js",
|
||||||
"tests": "cd ./DocService && jest --inject-globals=false --config=../tests/jest.config.js"
|
"tests": "cd ./DocService && jest --inject-globals=false --config=../tests/jest.config.js"
|
||||||
|
|||||||
@ -44,8 +44,8 @@ const storage = require('./../../Common/sources/storage-base');
|
|||||||
const storageFs = require('./../../Common/sources/storage-fs');
|
const storageFs = require('./../../Common/sources/storage-fs');
|
||||||
const operationContext = require('./../../Common/sources/operationContext');
|
const operationContext = require('./../../Common/sources/operationContext');
|
||||||
const utils = require('./../../Common/sources/utils');
|
const utils = require('./../../Common/sources/utils');
|
||||||
const docsCoServer = require("./DocsCoServer");
|
const docsCoServer = require("./../../DocService/sources/DocsCoServer");
|
||||||
const gc = require("./gc");
|
const gc = require("./../../DocService/sources/gc");
|
||||||
|
|
||||||
let ctx = operationContext.global;
|
let ctx = operationContext.global;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user