Add testing packages

This commit is contained in:
LoyalPotato 2023-12-30 20:21:14 +00:00
parent 6ce06d9c19
commit 5c19174561
3 changed files with 744 additions and 39 deletions

5
.mocharc.json Normal file
View file

@ -0,0 +1,5 @@
{
"extension": ["ts"],
"spec": "src/**/*.spec.ts",
"require": "ts-node/register"
}

771
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -4,6 +4,7 @@
"description": "Obsidian plugin to generate index based on your selection or of the whole file",
"main": "main.js",
"scripts": {
"test": "cross-env TS_NODE_COMPILER_OPTIONS='{\"\"\"module\"\"\":\"\"\"commonjs\"\"\"}' mocha",
"dev": "node esbuild.config.mjs",
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
"version": "node version-bump.mjs && git add manifest.json versions.json"
@ -11,12 +12,18 @@
"author": "LoyalPotato",
"license": "MIT",
"devDependencies": {
"@types/chai": "^4.3.11",
"@types/mocha": "^10.0.6",
"@types/node": "^16.11.6",
"@typescript-eslint/eslint-plugin": "5.29.0",
"@typescript-eslint/parser": "5.29.0",
"builtin-modules": "3.3.0",
"chai": "^4.3.10",
"cross-env": "^7.0.3",
"esbuild": "0.17.3",
"mocha": "^10.2.0",
"obsidian": "latest",
"ts-node": "^9.1.1",
"tslib": "2.4.0",
"typescript": "4.7.4"
}