-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
currency is now taken from account, added simple test class, improved…
… Makefile
- Loading branch information
Showing
5 changed files
with
963 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,31 @@ | ||
TERSER_BIN = ./node_modules/terser/bin/terser --compress --mangle -- | ||
INSTALL_DIR = ~/Library/Containers/com.moneymoney-app.retail/Data/Library/Application\ Support/MoneyMoney/Extensions | ||
|
||
.PHONY: dist | ||
dist: | ||
dist: clean | ||
npm install | ||
npx tsc | ||
export INCLUDE_TREE_JS=`$(TERSER_BIN) dist/Tree.js` && \ | ||
export INCLUDE_MAIN_JS=`$(TERSER_BIN) dist/main.js` && \ | ||
export STYLES_CSS=`sass --no-source-map src/styles.scss` && \ | ||
envsubst < src/SankeyChart.lua > dist/SankeyChart.lua && \ | ||
rm dist/*.js | ||
chmod +x dist/SankeyChart.lua && \ | ||
make distclean | ||
|
||
.PHONY: test | ||
test: | ||
npm run test | ||
|
||
.PHONY: install | ||
install: | ||
cp dist/SankeyChart.lua ~/Library/Containers/com.moneymoney-app.retail/Data/Library/Application\ Support/MoneyMoney/Extensions | ||
cp dist/SankeyChart.lua $(INSTALL_DIR) | ||
|
||
.PHONY: uninstall | ||
uninstall: | ||
rm $(INSTALL_DIR)/SankeyChart.lua | ||
|
||
distclean: | ||
rm dist/*.js | ||
|
||
clean: | ||
rm -f dist/*.js dist/*.lua | ||
rm -f dist/* && (rmdir dist/ || true) |
Oops, something went wrong.