marlin-conf
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -114,4 +114,4 @@ //modules | ||
var toTxt=ch=>ch.map(i=>mc.build(i)) | ||
var banner=cfg=>a=>(a.unshift('// this file genarated by '+cfg.name+' '+cfg.version,'// used revision '+cfg.git+' as base','// below listed only differences'),a) | ||
//exports | ||
@@ -136,3 +136,3 @@ | ||
module.exports.makeTxt=(root,base)=>file=>{ | ||
module.exports.makeTxt=(root,base,git)=>file=>{ | ||
var p=path.parse(file); | ||
@@ -149,2 +149,3 @@ var conf = inFile(file).then(mc.h2json); | ||
.then(unique) | ||
.then(banner(git)) | ||
.then(array2text) | ||
@@ -151,0 +152,0 @@ .then(outFile(path.join(p.dir,p.name+'.txt'))) |
{ | ||
"name": "marlin-conf", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "configuration tool for Marlin project", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -8,2 +8,3 @@ //modules | ||
var walk = require('./walk').walk; | ||
var pjson = require('./package.json'); | ||
@@ -64,3 +65,3 @@ var gitRoot=()=> | ||
base | ||
.then(a=>mctool.makeTxt(a[0],a[1])(path.join(a[0],f+'.h'))) | ||
.then(a=>mctool.makeTxt(a[0],a[1],{git:is.git,name:pjson.name,version:pjson.version})(path.join(a[0],f+'.h'))) | ||
}) | ||
@@ -76,6 +77,6 @@ }else | ||
function help(){ | ||
console.log(` | ||
console.log(`${pjson.name} v ${pjson.version} | ||
usage: mct help|git|tree | ||
commands: | ||
mct git <git-tag> json|h | ||
mct git <git-tag> json|h|txt | ||
json: compare [gitroot]/Marlin/Configuration*.h files | ||
@@ -82,0 +83,0 @@ between git-tag files and files in folder then |
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
49536
9
331
1
45