Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/usr/bin/env sh
npm run lint && npm test
pnpm run lint && pnpm test
21 changes: 12 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,36 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22.x
cache: "npm"
- run: npm ci
- run: npm run build
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: pnpm run build

lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22.x
cache: "npm"
- run: npm ci
- run: npm run lint
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: pnpm run lint

test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22.x
cache: "npm"
- run: npm ci
- run: npm test
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: pnpm test
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4

- uses: actions/setup-node@v4
with:
node-version: 22.x
cache: "npm"
cache: "pnpm"

- name: Verify manifest version matches tag
run: |
Expand All @@ -34,8 +36,8 @@ jobs:
exit 1
fi

- run: npm ci
- run: npm run build
- run: pnpm install --frozen-lockfile
- run: pnpm run build

- name: Extract changelog for ${{ github.ref_name }}
id: changelog
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*.iml
.idea

# npm
# dependencies
node_modules

# test coverage output
Expand Down
5 changes: 4 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
tag-version-prefix=""
tag-version-prefix=""
minimum-release-age=10080
trust-policy-ignore-after=43200
fund=false
8 changes: 4 additions & 4 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ Watches the editor for lines matching user-configured trigger tags (e.g. `#perso
## Commands

```bash
npm run dev # esbuild watch mode (outputs main.js)
npm run build # type-check + production build
npm test # vitest run
npm run lint # eslint
pnpm run dev # esbuild watch mode (outputs main.js)
pnpm run build # type-check + production build
pnpm test # vitest run
pnpm run lint # eslint
```

---
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ All five standard fields are optional and their names are configurable (see [Fro
```bash
git clone https://github.com/bartvw/entity-notes
cd entity-notes
npm install
npm run dev # watch mode
pnpm install
pnpm run dev # watch mode
```

Copy (or symlink) the folder into `<vault>/.obsidian/plugins/entity-notes/` and enable it in Obsidian.
Expand Down
Loading
Loading