Skip to content

Commit

Permalink
added some more validations
Browse files Browse the repository at this point in the history
  • Loading branch information
ma4nn committed Jan 30, 2024
1 parent 5ffb79c commit 41c9c4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ For more information see also [my blog post](https://dev-investor.de/finanz-apps

```
make dist
make test
```

The compiled MoneyMoney extension can then be found in `dist/SankeyChart.lua` and installed with `make install`.
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
"author": "Christoph Massmann <[email protected]>",
"license": "MIT",
"scripts": {
"test": "lua ./src/SankeyChartTest.lua | html-validate --stdin"
"test": "npm run test-compile-validate && npm run test-placeholder",
"test-compile-validate": "lua ./src/SankeyChartTest.lua | html-validate --stdin",
"test-placeholder": "grep -qE '\\${([A-Z_]+)}' dist/SankeyChart.lua && (echo 'ERROR: Placeholders have not been replaced in dist!' && exit 1) || exit 0"
}
}

0 comments on commit 41c9c4d

Please sign in to comment.