Subject | Hash | Author | Date (UTC) |
---|---|---|---|
move res in tblueprint | 7dc2bb8462a6db28751fc572f796bf57e1710b89 | mucbuc | 2020-08-24 04:11:04 |
remove spaces | 1e768ad122da007e4e5402303ff945620254d4b5 | mucbuc | 2020-08-23 21:15:40 |
remove spaces | 18859697c3895df15e2e8d022209f892350025c5 | mucbuc | 2020-08-23 21:14:58 |
remove spaces | f97eb53fdc3c1801b9e863b4e6b1fba5b11d8040 | mucbuc | 2020-08-23 21:14:06 |
write template | cfb6e2b732d01190dd8a786742bb6bf00292225e | mucbuc | 2020-08-23 21:05:51 |
remove space | 12ab455e7786c20019679edba5107a7f579dc126 | mucbuc | 2020-08-23 20:06:40 |
working on example | 82a1df4d3f6c5e5405eae35f277572fc51b9a947 | mucbuc | 2020-08-23 20:02:57 |
remove spaces | 3085884efad6701037ead5fafc816e1e061f4f3e | mucbuc | 2020-08-23 19:47:11 |
template | f8b6264b7697735f0aaf9b5b7de16390c8388fb2 | mucbuc | 2020-08-23 17:05:05 |
wtf | 570de7c742cf9b3ec5518499fcbf87cd32902ebe | mucbuc | 2020-08-23 00:48:47 |
wtf | dfdd90a77db18e6c9778d88d7a167e5999ac81b7 | mucbuc | 2020-08-23 00:47:50 |
wtf | 8d1b6e0c8ec4d2363e1984941718ebd30bdecfcf | mucbuc | 2020-08-23 00:47:24 |
wtf | 0beeddd90c2545f4f66e26acdfc444d3f359c56a | mucbuc | 2020-08-23 00:46:43 |
what | 40e6ec7d104098b0e673be8f81c945c93f6ee13e | mucbuc | 2020-08-23 00:45:16 |
installJrnl linted | 99a721a40295ec2aa555e7ee27cd808b5d44a2c3 | mucbuc | 2020-08-23 00:42:33 |
config | 8d0e58c52406c09c861d376bba353467837edf4a | mucbuc | 2020-08-22 00:04:25 |
cleanup | 6db42918c86196075fe0b4047b3af6bdea98bde9 | mucbuc | 2020-08-21 19:20:23 |
test | 6c086247500a2158a41a5d9cbe037d0b3933e99e | mucbuc | 2020-08-21 18:59:40 |
fixes for zsh | adf6eae26569cac8c0487c0d7d62549ee2ac3df4 | mucbuc | 2020-08-19 04:54:15 |
ggSemver | aeb7c2eacf3a4f96a543b98dad9d96a45741a067 | mucbuc | 2020-07-31 18:03:35 |
File | Lines added | Lines deleted |
---|---|---|
README.md | 5 | 0 |
blueprint/test/example.json | 8 | 0 |
blueprint/test/src/example.cpp | 0 | 0 |
blueprint/test/test.yml | 6 | 0 |
templates.js | 1 | 1 |
File README.md changed (mode: 100644) (index 24603bc..9d06e0b) | |||
5 | 5 | - copy editorconfig to ~/.editorconf | - copy editorconfig to ~/.editorconf |
6 | 6 | - copy gitconfig to ~/.gitconfig | - copy gitconfig to ~/.gitconfig |
7 | 7 | - install marks_bash | - install marks_bash |
8 | |||
9 | ./templates.js | ||
10 | - create example.cpp | ||
11 | - create symlink to self in test/lib/ | ||
12 |
File blueprint/test/example.json added (mode: 100644) (index 0000000..2157c84) | |||
1 | { | ||
2 | "import":[ | ||
3 | "lib/${name}/${name}.json" | ||
4 | ], | ||
5 | "sources": [ | ||
6 | "src/example.cpp" | ||
7 | ] | ||
8 | } |
File blueprint/test/src/example.cpp renamed from res/example.cpp.bp (similarity 100%) |
File blueprint/test/test.yml added (mode: 100644) (index 0000000..4096c8b) | |||
1 | --- | ||
2 | import: | ||
3 | - lib/${name}/${name}.yml | ||
4 | sources: | ||
5 | - src/main.cpp | ||
6 |
File templates.js changed (mode: 100755) (index 9c0ed89..edc5993) | |||
... | ... | generateExample("sample"); | |
10 | 10 | ||
11 | 11 | function generateExample(name) { | function generateExample(name) { |
12 | 12 | const exampleTemplate = 'var result = `' + fs.readFileSync('./res/example.cpp.bp', 'utf8' ) + '`;'; | const exampleTemplate = 'var result = `' + fs.readFileSync('./res/example.cpp.bp', 'utf8' ) + '`;'; |
13 | const context = { name: "sample" }; | ||
13 | const context = { name }; | ||
14 | 14 | ||
15 | 15 | vm.createContext(context); | vm.createContext(context); |
16 | 16 | vm.runInContext(exampleTemplate, context); | vm.runInContext(exampleTemplate, context); |