Commit f1b5dbb9 by Иван Кубота

fix building internal

parent 2bfbd944
......@@ -22,15 +22,18 @@ QRequire('quokka-script', 'quokka-core', 'Core.TypeTable', 'fs', function(qs, QC
};
var startDepsResolve = function (main, all, store) {
store = store || {names: {}, list: []};
console.log(main)
var internal = all[main];
if(internal) {
var deps = all[main].require, depName, fullName;
var x = 1;
for (depName in deps) {
if(!(depName in store.names)) {
if (!(depName in store.names)) {
startDepsResolve(depName, all, store);
}
}
fullName = getName(main, all);
}
fullName = main.indexOf('.')>-1? main : getName(main, all);
//var cfg = TypeTable.search(fullName);
......@@ -50,8 +53,15 @@ QRequire('quokka-script', 'quokka-core', 'Core.TypeTable', 'fs', function(qs, QC
}
jsDeps && jsDeps.forEach(function (dep) {
if(!(dep in store.names)) {
if(dep.indexOf('.')===-1){
store.names[dep] = true;
store.list.push({name: dep, path: QRequire.path(dep)});
}else{
startDepsResolve(dep, all, store);
}
}
});
......
{
"name": "qscript",
"version": "0.0.3",
"version": "0.0.4",
"description": "quokka-script env wizard",
"main": "index.js",
"bin": {
......
......@@ -6,10 +6,14 @@
def Page main
VBox
Number n1: 0
Slider s1: 10
from:22
Slider s1: 18
from:0
to: 255
div: ee
td: de {{s1}} {{n1}}
div: Kpokodil!
fontSize: {{s1}}px
color: rgba({{((Math.sin(s1/71)/2+0.5)*255)|0}},{{((Math.sin(s1/15)/2+0.5)*255)|0}},{{((Math.sin(s1/31)/2+0.5)*255)|0}},1)
Timer
enabled: false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment