mirror of
https://github.com/HeyPuter/puter.git
synced 2025-12-30 17:50:00 -06:00
Backend had tests written in mocha as well as a test written for jest (created by an AI utility, wasn't compatible with mocha tests). The AI generated test had merit so it was migrated to vitest along with all the mocha tests, which supports conventions from both frameworks. Vitest also has an excellent watcher cli. The root repo package.json now runs unit tests in backend. Before it was only running tests defined in the _test method of backend services.
64 lines
1.7 KiB
JSON
64 lines
1.7 KiB
JSON
{
|
|
"name": "puter.com",
|
|
"version": "2.5.1",
|
|
"author": "Puter Technologies Inc.",
|
|
"license": "AGPL-3.0-only",
|
|
"description": "Desktop environment in the browser!",
|
|
"homepage": "https://puter.com",
|
|
"type": "module",
|
|
"main": "exports.js",
|
|
"directories": {
|
|
"lib": "lib"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.1.1",
|
|
"chalk": "^4.1.0",
|
|
"clean-css": "^5.3.2",
|
|
"dotenv": "^16.4.5",
|
|
"eslint": "^9.1.1",
|
|
"express": "^4.18.2",
|
|
"globals": "^15.0.0",
|
|
"html-entities": "^2.3.3",
|
|
"html-webpack-plugin": "^5.6.0",
|
|
"license-check-and-add": "^4.0.5",
|
|
"mocha": "^10.6.0",
|
|
"nodemon": "^3.1.0",
|
|
"uglify-js": "^3.17.4",
|
|
"webpack": "^5.88.2",
|
|
"webpack-cli": "^5.1.1"
|
|
},
|
|
"scripts": {
|
|
"test": "npx mocha src/phoenix/test && npx vitest run src/backend && node src/backend/tools/test",
|
|
"start=gui": "nodemon --exec \"node dev-server.js\" ",
|
|
"start": "node ./tools/run-selfhosted.js",
|
|
"build": "cd src/gui; node ./build.js",
|
|
"check-translations": "node tools/check-translations.js"
|
|
},
|
|
"workspaces": [
|
|
"src/*",
|
|
"tools/*",
|
|
"experiments/js-parse-and-output"
|
|
],
|
|
"nodemonConfig": {
|
|
"ext": "js, json, mjs, jsx, svg, css",
|
|
"ignore": [
|
|
"./dist/",
|
|
"./node_modules/"
|
|
]
|
|
},
|
|
"dependencies": {
|
|
"@heyputer/putility": "^1.0.2",
|
|
"@paralleldrive/cuid2": "^2.2.2",
|
|
"dedent": "^1.5.3",
|
|
"ioredis": "^5.6.0",
|
|
"javascript-time-ago": "^2.5.11",
|
|
"json-colorizer": "^3.0.1",
|
|
"open": "^10.1.0",
|
|
"sharp": "^0.33.5",
|
|
"sharp-bmp": "^0.1.5",
|
|
"sharp-ico": "^0.1.5",
|
|
"simple-git": "^3.25.0",
|
|
"string-template": "^1.0.0",
|
|
"uuid": "^9.0.1"
|
|
}
|
|
} |