From bae6e635edff6ec2c36177e7cb7aa5061f54c301 Mon Sep 17 00:00:00 2001 From: Tykayn Date: Mon, 6 Mar 2023 00:12:24 +0100 Subject: [PATCH] ignore org files in source, make script to run update for my tasks orgmode --- .gitignore | 1 + parse_orgmode_to_json.mjs | 2 +- up_stats.sh | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 up_stats.sh diff --git a/.gitignore b/.gitignore index 3f8ef7d..57faf8f 100644 --- a/.gitignore +++ b/.gitignore @@ -133,6 +133,7 @@ dist output/* sources/*.json sources/tasks.json +sources/*.org /scripts/all_tasks.org /scripts/all.pdf /scripts/all.tex diff --git a/parse_orgmode_to_json.mjs b/parse_orgmode_to_json.mjs index 0e5966c..27348f7 100644 --- a/parse_orgmode_to_json.mjs +++ b/parse_orgmode_to_json.mjs @@ -10,7 +10,7 @@ import moment from 'moment'; * initialize configs **********************/ -const sourceFileName = 'tasks.org' +const sourceFileName = 'all_tasks.org' const sourceFilePath = './sources/' + sourceFileName; let headers = [] diff --git a/up_stats.sh b/up_stats.sh new file mode 100644 index 0000000..5875ce5 --- /dev/null +++ b/up_stats.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +bash ./scripts/concat_org.sh +mv all_tasks.org > ./sources +node parse_orgmode_to_json.mjs +echo "et voilĂ " \ No newline at end of file