Skip to content

Commit

Permalink
Merge branch 'release/0.5.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
msudgh committed Dec 27, 2024
2 parents a4c6b9e + e6aee70 commit 18359e7
Show file tree
Hide file tree
Showing 29 changed files with 1,417 additions and 751 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@ jobs:
- 'windows-latest'
- 'macos-latest'
node_version:
- '>=18.0.0'
- 'lts/*'
fail-fast: false
max-parallel: 1
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
with:
version: 9.5.0
run_install: true
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
cache: 'pnpm'
- run: pnpm run test:coverage
- run: pnpm install -D tap-junit
- run: pnpm run test:coverage | pnpm exec tap-junit > junit.xml
- name: SonarQube Scan
if: matrix.os == 'ubuntu-latest'
uses: SonarSource/[email protected]
Expand All @@ -48,5 +48,5 @@ jobs:
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage/junit.xml,!./cache
files: junit.xml,!./cache
fail_ci_if_error: true
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm exec lint-staged
1 change: 1 addition & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm run test:coverage
5 changes: 2 additions & 3 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"$schema": "https://json.schemastore.org/mocharc.json",
"import": ["tsx"],
"reporter": "mocha-junit-reporter",
"reporter-option": ["mochaFile=coverage/junit.xml"],
"require": "tsx",
"reporter": "tap",
"timeout": 5000,
"forbidOnly": true,
"watch-files": ["src"],
Expand Down
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

33 changes: 24 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "ovm",
"description": "Obsidian Vaults Manager",
"type": "commonjs",
"version": "0.4.6",
"license": "MIT",
"version": "0.5.0",
"license": "GPL-3.0-only",
"author": "Masoud Ghorbani",
"homepage": "https://github.com/msudgh/ovm",
"bugs": "https://github.com/msudgh/ovm/issues",
Expand All @@ -21,8 +21,9 @@
"postpack": "shx rm -f oclif.manifest.json",
"posttest": "pnpm run lint",
"prepack": "oclif manifest && pnpm run build:release && pnpm run test:unit",
"test:unit": "mocha -R=spec",
"test:coverage": "nyc mocha"
"test:unit": "mocha",
"test:coverage": "nyc mocha",
"prepare": "husky"
},
"keywords": [
"obsidian",
Expand Down Expand Up @@ -85,7 +86,7 @@
"@types/async": "3.2.24",
"@types/cacache": "17.0.2",
"@types/chai": "4.3.17",
"@types/fs-extra": "^11.0.4",
"@types/fs-extra": "11.0.4",
"@types/inquirer": "9.0.7",
"@types/mocha": "10.0.7",
"@types/mock-fs": "4.13.4",
Expand All @@ -95,10 +96,12 @@
"chai": "5.1.1",
"eslint": "9.8.0",
"eslint-config-prettier": "9.1.0",
"fs-extra": "^11.2.0",
"fs-extra": "11.2.0",
"globals": "15.9.0",
"husky": "9.1.7",
"lint-staged": "15.2.10",
"mocha": "10.7.3",
"mocha-junit-reporter": "^2.2.1",
"mocha-junit-reporter": "2.2.1",
"mock-fs": "5.2.0",
"nyc": "17.0.0",
"obsidian": "1.6.6",
Expand All @@ -115,7 +118,19 @@
"overrides": {
"fast-xml-parser@<4.4.1": ">=4.4.1",
"eslint>ajv": "6",
"whatwg-url@<6.0.0": ">=14.0.0"
"whatwg-url@<6.0.0": ">=14.0.0",
"micromatch@<4.0.8": ">=4.0.8",
"cross-spawn@>=7.0.0 <7.0.5": ">=7.0.5"
}
}
},
"lint-staged": {
"*.{ts,tsx,json,js}": [
"pnpm run lint",
"pnpm run format:write"
],
"*.md": [
"pnpm run format:write"
]
},
"packageManager": "[email protected]+sha1.33f415ae4331f9b29a92dd9bbef959b916d65535"
}
Loading

0 comments on commit 18359e7

Please sign in to comment.