Subject | Hash | Author | Date (UTC) |
---|---|---|---|
cleanup | 0ff227f7a581c7077c196a0317f2cde008a85bc6 | mucbuc | 2020-08-25 04:52:11 |
template | bd8f1832040beebe315de5dab5b3a6321c3f234c | mucbuc | 2020-08-25 04:23:05 |
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 |
File | Lines added | Lines deleted |
---|---|---|
templates.js | 7 | 10 |
File templates.js changed (mode: 100755) (index 00fe87a..53475b4) | |||
... | ... | const { exec, pushd, popd } = require( 'shelljs' ), | |
5 | 5 | fs = require( 'fs' ), | fs = require( 'fs' ), |
6 | 6 | vm = require( 'vm' ); | vm = require( 'vm' ); |
7 | 7 | ||
8 | makeTestDirs(); | ||
8 | makeTestDirs("sample"); | ||
9 | 9 | generateExample("sample"); | generateExample("sample"); |
10 | 10 | generateBuild("sample"); | generateBuild("sample"); |
11 | 11 | ||
... | ... | function compile(template, context) { | |
30 | 30 | } | } |
31 | 31 | ||
32 | 32 | function generateExample(name) { | function generateExample(name) { |
33 | const template = fs.readFileSync('./blueprint/test/src/example.cpp', 'utf8' ), | ||
34 | result = compile(template, {name} ), | ||
35 | dest = 'build/test/src'; | ||
36 | exec(`mkdir -p ${dest}`); | ||
37 | fs.writeFileSync( `${dest}/example.cpp`, result ); | ||
33 | make( './blueprint/test/src/example.cpp', | ||
34 | {name}, | ||
35 | 'build/test/src/example.cpp'); | ||
38 | 36 | } | } |
39 | 37 | ||
40 | function makeTestDirs() { | ||
41 | const basename = path.basename( __dirname ), | ||
42 | testLib = 'build/test/lib'; | ||
38 | function makeTestDirs(name) { | ||
39 | const testLib = 'build/test/lib'; | ||
43 | 40 | ||
44 | 41 | exec( `mkdir -p ${testLib}` ); | exec( `mkdir -p ${testLib}` ); |
45 | 42 | pushd( testLib ); | pushd( testLib ); |
46 | exec( `ln -s ../.. ${basename}` ); | ||
43 | exec( `ln -s ../.. ${name}` ); | ||
47 | 44 | popd(); | popd(); |
48 | 45 | } | } |