-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
29 lines (29 loc) · 1.95 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
{
"name": "jestronaut",
"private": true,
"description": "Meta scripts to help test Jestronaut. Jestronaut is a Lua testing library working similar to JestJS.",
"type": "module",
"scripts": {
"download-api": "node ./scripts/download-jest-api.js v29.7.0",
"extract-api": "node ./scripts/extract-jest-api.js",
"copy-api-tests": "rm -rf ./tests/generated && cp -r ./cache/tests ./tests/generated",
"generate-tests": "npm run download-api && npm run extract-api && npm run copy-api-tests",
"generate-rockspec": "node ./scripts/generate-rockspec.js ./libs",
"test": "luvi . -- --roots=./tests/generated --roots=./tests --testPathIgnorePatterns=\"/tests/generated/ExpectAPI/toBeCloseTo.lua$/\" --testPathIgnorePatterns=\"/tests/generated/GlobalAPI/test.lua$/\" --testPathIgnorePatterns=\"/tests/generated/JestObjectAPI/jest/useFakeTimers.lua$/\" --testPathIgnorePatterns=\"/tests/generated/JestObjectAPI/jest/useRealTimers.lua$/\" --testPathIgnorePatterns=\"/tests/generated/JestObjectAPI/jest/retryTimes.lua$/\" --testPathIgnorePatterns=\"/tests/generated/MockFunctionAPI/mockFn/mockName.lua$/\" --testPathIgnorePatterns=\"/tests/generated/GlobalAPI/test/failing.lua$/\" --testPathIgnorePatterns=\"/tests/generated/GlobalAPI/test/failing/each.lua$/\"",
"clear-coverage": "rm -rf luacov.stats.out && rm -rf luacov.report.out",
"ci:test": "npm run clear-coverage && npm run test -- --coverage=true && luacov -r lcov",
"build:gmod": "([ -d dist ] || mkdir dist) && node ./scripts/generate-gmod-addon.js --clean",
"build:lit": "([ -d dist ] || mkdir dist) && lit make . ./dist/jestronaut",
"build": "npm run generate-rockspec && luarocks make --local && npm run build:lit",
"ci:publish": "node ./scripts/upload-new-rockspecs.js"
},
"author": "Luttje",
"license": "MIT",
"dependencies": {
"cross-env": "^7.0.3",
"dotenv": "^16.0.3",
"node-fetch": "^3.3.1",
"typescript-to-lua": "^1.14.0",
"zip-a-folder": "^3.1.8"
}
}