Subject | Hash | Author | Date (UTC) |
---|---|---|---|
move to build dir | b4eb6df6fddc4062db3a217b544de4ce7a6ae91a | mucbuc | 2020-08-25 04:02:16 |
cleanup | e72c7eda21f4e75403cecc6b85d667ebb28b4441 | mucbuc | 2020-08-25 03:36:47 |
compile function | 26b9d9676e0d689f5ef111e4f61ecf52ed47048b | mucbuc | 2020-08-25 00:09:15 |
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 |
File | Lines added | Lines deleted |
---|---|---|
.gitignore | 2 | 0 |
templates.js | 5 | 5 |
File .gitignore changed (mode: 100644) (index c2658d7..3a347e0) | |||
1 | 1 | node_modules/ | node_modules/ |
2 | build/ | ||
3 |
File templates.js changed (mode: 100755) (index 6763341..996aeb1) | |||
... | ... | function compile(template, context) { | |
17 | 17 | ||
18 | 18 | function generateExample(name) { | function generateExample(name) { |
19 | 19 | const template = fs.readFileSync('./blueprint/test/src/example.cpp', 'utf8' ), | const template = fs.readFileSync('./blueprint/test/src/example.cpp', 'utf8' ), |
20 | context = { name }, | ||
21 | result = compile(template, context), | ||
20 | result = compile(template, {name} ), | ||
22 | 21 | dest = 'build/test/src'; | dest = 'build/test/src'; |
23 | 22 | exec(`mkdir -p ${dest}`); | exec(`mkdir -p ${dest}`); |
24 | 23 | fs.writeFileSync( `${dest}/example.cpp`, result ); | fs.writeFileSync( `${dest}/example.cpp`, result ); |
... | ... | function generateExample(name) { | |
27 | 26 | ||
28 | 27 | ||
29 | 28 | function makeTestDirs() { | function makeTestDirs() { |
30 | const basename = path.basename( __dirname ); | ||
29 | const basename = path.basename( __dirname ), | ||
30 | testLib = 'build/test/lib'; | ||
31 | 31 | ||
32 | exec( 'mkdir -p test/lib/' ); | ||
33 | pushd( 'test/lib' ); | ||
32 | exec( `mkdir -p ${testLib}` ); | ||
33 | pushd( testLib ); | ||
34 | 34 | exec( `ln -s ../.. ${basename}` ); | exec( `ln -s ../.. ${basename}` ); |
35 | 35 | popd(); | popd(); |
36 | 36 | } | } |