Subject | Hash | Author | Date (UTC) |
---|---|---|---|
this works | 642e1f3d18d021a26dc3a99ef218fdb84bc2d6a8 | mucbuc | 2020-02-01 14:20:59 |
formatting | f087cfb05ee0c84d29eb7320dc28ab40cc268d76 | mucbuc | 2020-02-01 14:12:58 |
package_header.js | 23f5c8ef5003cfdbb4db567afbf186ea24826ed9 | mucbuc | 2020-02-01 14:05:57 |
cleanup | 1025eb28bcc606b1d0b97edd2acacef257dac5c6 | mucbuc | 2020-01-31 06:40:32 |
runable template | 290b66efa39703f16ffac5ffe108bd20d6decb35 | mucbuc | 2020-01-31 06:35:34 |
format | 494bb04b8c49cbfdb4c3dfca846a52457e6476df | mucbuc | 2020-01-30 12:46:02 |
escape tick mark thingy | b5e7f23201426448177782b56e1e160cf8711ab0 | mucbuc | 2020-01-30 12:44:47 |
simplify | 0b5f3574f190923b6eae6331e1734fc4a68d6bb6 | mucbuc | 2020-01-29 07:01:59 |
batch process templates | b38ef44adbc8af929decbebe2e064bc27e0a3340 | mucbuc | 2020-01-29 06:50:03 |
use minimist | 1b30469823408bb66e30b45812ba96016c84079f | mucbuc | 2020-01-29 06:40:46 |
use description instead of objective" | b0f58d1ea170055e3db94722d4cafb5da71aaaab | mucbuc | 2020-01-28 06:20:41 |
consolidate | 7e829f7e8ed6a7e5f783c0b0819643575f12a466 | mucbuc | 2020-01-27 13:57:24 |
objective | ba898495090457a37d56b7d6398c2951a3e7b85b | mucbuc | 2020-01-27 13:47:44 |
usage example | 7b04228abbef46e4821429dcaaee7f279cc81024 | mucbuc | 2020-01-27 13:35:59 |
cleanup | 444da418ea31cbead2c41ce85d5acfb468faee79 | mucbuc | 2020-01-27 13:17:10 |
reading from prjetect dir | 9b8e0802d9549e52041ffadeb085dae7f2b186b1 | mucbuc | 2020-01-27 06:12:39 |
formt script | f991001a06fa70aed0c656635cf5d1c22b896652 | mucbuc | 2020-01-27 06:07:22 |
format | 820f8f81267baf5de99a0115ff6e79efcc361f7a | mucbuc | 2020-01-27 06:06:19 |
first pass | 0d21989109ebba5aa9ce330612da271998b7a441 | mucbuc | 2020-01-27 06:06:00 |
File | Lines added | Lines deleted |
---|---|---|
index.js | 1 | 1 |
package.json | 1 | 0 |
File index.js changed (mode: 100755) (index 2d64d95..90c792d) | |||
... | ... | let context = { projectPath, fs, path }; | |
10 | 10 | vm.createContext(context); | vm.createContext(context); |
11 | 11 | ||
12 | 12 | for (let templatePath of args._) { | for (let templatePath of args._) { |
13 | let template = fs.readFileSync(templatePath, "utf8"); | ||
13 | let template = fs.readFileSync(path.join(__dirname, 'templates', templatePath) + '.js', "utf8"); | ||
14 | 14 | vm.runInContext(template, context); | vm.runInContext(template, context); |
15 | 15 | console.log(context.template); | console.log(context.template); |
16 | 16 | } | } |
File package.json changed (mode: 100644) (index 840db20..5dbb0a1) | |||
7 | 7 | "test": "echo \"Error: no test specified\" && exit 1", | "test": "echo \"Error: no test specified\" && exit 1", |
8 | 8 | "format": "prettier --write index.js" | "format": "prettier --write index.js" |
9 | 9 | }, | }, |
10 | "bin": "./index.js", | ||
10 | 11 | "author": "", | "author": "", |
11 | 12 | "license": "ISC", | "license": "ISC", |
12 | 13 | "dependencies": { | "dependencies": { |