fix bin path
This commit is contained in:
parent
077cf75b25
commit
980cb66b67
|
@ -4,7 +4,7 @@
|
||||||
"description": "Light weight templates for react -> write html get valid react code",
|
"description": "Light weight templates for react -> write html get valid react code",
|
||||||
"main": "./src/reactTemplates.js",
|
"main": "./src/reactTemplates.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
"rt": "./bin/rt.js"
|
"rt": "./src/cli.js"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "node test/src/test.js"
|
"test": "node test/src/test.js"
|
||||||
|
|
|
@ -168,9 +168,9 @@ function addIfNotThere(array, obj) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function hasNonSimpleChildren(node) {
|
function hasNonSimpleChildren(node) {
|
||||||
return _.any(node.children,function (child) {
|
return _.any(node.children, function (child) {
|
||||||
return child.type === 'tag' && child.attribs[templateProp];
|
return child.type === 'tag' && child.attribs[templateProp];
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function convertHtmlToReact(node, context) {
|
function convertHtmlToReact(node, context) {
|
||||||
|
|
Loading…
Reference in New Issue