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
3 changes: 3 additions & 0 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
- name: Install dependencies
run: npm install

- name: Run unit tests
run: npm run test:unit

- name: Build project
run: npm run build

Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ pnpm-debug.log*
*.njsproj
*.sln
*.sw?

.worktrees/
3 changes: 3 additions & 0 deletions agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ Browser-based UI for controlling a Freeshard. Users manage apps, pair devices, c
npm run serve # Dev server with hot-reload
npm run build # Production build
npm run lint # ESLint
npm run test:unit # Jest unit tests
```

Unit tests run in CI on every push and pull request, before the build.

## Project Structure

```
Expand Down
18 changes: 12 additions & 6 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,15 @@ default:
_set-version-files version:
#!/usr/bin/env python3
import json
with open('package.json') as f:
pkg = json.load(f)
pkg['version'] = '{{version}}'
with open('package.json', 'w') as f:
json.dump(pkg, f, indent=2)
f.write('\n')
for path, keys in (('package.json', (('version',),)),
('package-lock.json', (('version',), ('packages', '', 'version')))):
with open(path) as f:
doc = json.load(f)
for key in keys:
node = doc
for step in key[:-1]:
node = node[step]
node[key[-1]] = '{{version}}'
with open(path, 'w') as f:
json.dump(doc, f, indent=2)
f.write('\n')
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading