Install global dependencies:
- Node.js LTS
- Go >= 1.21
Install project dependencies:
pushd report && npm install && popd
Build and run:
- Build the report template (
report/
):npm run build
or for report template development:- Create a
data.js
file with some stub data (e.g. from a real report):var files = [/* stub data */]; var pathSeparator = "/";
- Run:
npm run dev
- Create a
- Build and run DirStat:
go run "cmd/dirstat.go" [...]
- Update the version number in:
meta.go
package.json
(+npm install
)
- Update the changelog
- Commit changes:
git commit -a -m "Release X.Y.Z"
- Merge
develop
inmain
:git switch main && git merge develop --ff-only
- Create the tag:
git tag "X.Y.Z" -a -m "X.Y.Z"
- Push to the repository:
git push --all origin && git push --tags