ignore node modules
This commit is contained in:
parent
965ccb58c9
commit
7dd2b8e86b
|
@ -1,3 +1,5 @@
|
|||
# Created by .ignore support plugin (hsz.mobi)
|
||||
/php/odt_reader/vendor/
|
||||
/php/odt_reader/*.ods
|
||||
/org-parse/tasks.org
|
||||
**/*/node_modules
|
|
@ -0,0 +1,28 @@
|
|||
/**
|
||||
afficher des infos depuis un fichier orgmode source
|
||||
**/
|
||||
|
||||
import org from 'org';
|
||||
import fs from 'fs';
|
||||
|
||||
let input_orgmode_file_name = './tasks.org';
|
||||
input_orgmode_file_name = './input.org';
|
||||
|
||||
fs.readFile(input_orgmode_file_name, 'utf8', function read(err, data) {
|
||||
if (err) {
|
||||
throw err;
|
||||
}
|
||||
const org_content = data;
|
||||
var parser = new org.Parser();
|
||||
var orgDocument = parser.parse(org_content);
|
||||
|
||||
console.log('le fichier input.org a ce nombre de');
|
||||
console.log(' SOMEDAY:', org_content.toString().match(/SOMEDAY/g)?.length);
|
||||
console.log(' TODO:', org_content.toString().match(/TODO/g)?.length);
|
||||
console.log(' NEXT:', org_content.toString().match(/NEXT/g)?.length);
|
||||
console.log(' CANCELLED:', org_content.toString().match(/CANCELLED/g)?.length);
|
||||
console.log(' DONE:', org_content.toString().match(/DONE/g)?.length);
|
||||
|
||||
});
|
||||
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
* des choses
|
||||
** TODO faire un truc
|
||||
une tâche de niveau 2 sans tag, properties ni logbook
|
||||
** TODO faire un autre truc :autre:
|
||||
:LOGBOOK:
|
||||
- State "CANCELLED" from "TODO" [2023-02-28 mar. 11:50]
|
||||
:END:
|
||||
ya du logbook ici wohoo
|
||||
*** SOMEDAY avoir une idée :idea:
|
||||
** CANCELLED envoyer un justificatif médical :ARCHIVE:
|
||||
héééééé oui le texte de note
|
|
@ -0,0 +1,6 @@
|
|||
le fichier input.org a ce nombre de
|
||||
SOMEDAY: 1
|
||||
TODO: 3
|
||||
NEXT: undefined
|
||||
CANCELLED: 2
|
||||
DONE: undefined
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"name": "org-parse",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"dependencies": {
|
||||
"org": "^0.2.0"
|
||||
}
|
||||
},
|
||||
"node_modules/org": {
|
||||
"version": "0.2.0",
|
||||
"resolved": "https://registry.npmjs.org/org/-/org-0.2.0.tgz",
|
||||
"integrity": "sha512-jlArvMYhC9ZZSwrZQDfkC1q6lCX/200qr24hkEavQc6cbigA1Y92uwDfpvPgLqpOQSLfSQi6XvmTtglsKX9riw=="
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"org": {
|
||||
"version": "0.2.0",
|
||||
"resolved": "https://registry.npmjs.org/org/-/org-0.2.0.tgz",
|
||||
"integrity": "sha512-jlArvMYhC9ZZSwrZQDfkC1q6lCX/200qr24hkEavQc6cbigA1Y92uwDfpvPgLqpOQSLfSQi6XvmTtglsKX9riw=="
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"dependencies": {
|
||||
"org": "^0.2.0"
|
||||
},
|
||||
"type" : "module"
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
echo "mise à jour du fichier de tâches orgmode du workflow nextcloud";
|
||||
cp /home/cipherbliss/Nextcloud/textes/orgmode/tasks.org .
|
||||
node index.js > output.txt
|
Loading…
Reference in New Issue