Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
qscript
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Кубота
qscript
Commits
f1b5dbb9
Commit
f1b5dbb9
authored
Jun 07, 2017
by
Иван Кубота
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix building internal
parent
2bfbd944
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
12 deletions
+26
-12
cmd.js
bin/cmd.js
+19
-9
package.json
package.json
+1
-1
test1.qs
test/test1.qs
+6
-2
No files found.
bin/cmd.js
View file @
f1b5dbb9
...
@@ -22,15 +22,18 @@ QRequire('quokka-script', 'quokka-core', 'Core.TypeTable', 'fs', function(qs, QC
...
@@ -22,15 +22,18 @@ QRequire('quokka-script', 'quokka-core', 'Core.TypeTable', 'fs', function(qs, QC
};
};
var
startDepsResolve
=
function
(
main
,
all
,
store
)
{
var
startDepsResolve
=
function
(
main
,
all
,
store
)
{
store
=
store
||
{
names
:
{},
list
:
[]};
store
=
store
||
{
names
:
{},
list
:
[]};
console
.
log
(
main
)
var
deps
=
all
[
main
].
require
,
depName
,
fullName
;
var
internal
=
all
[
main
];
for
(
depName
in
deps
)
{
if
(
internal
)
{
if
(
!
(
depName
in
store
.
names
))
{
var
deps
=
all
[
main
].
require
,
depName
,
fullName
;
startDepsResolve
(
depName
,
all
,
store
);
var
x
=
1
;
for
(
depName
in
deps
)
{
if
(
!
(
depName
in
store
.
names
))
{
startDepsResolve
(
depName
,
all
,
store
);
}
}
}
}
}
fullName
=
main
.
indexOf
(
'.'
)
>-
1
?
main
:
getName
(
main
,
all
);
fullName
=
getName
(
main
,
all
);
//var cfg = TypeTable.search(fullName);
//var cfg = TypeTable.search(fullName);
...
@@ -50,8 +53,15 @@ QRequire('quokka-script', 'quokka-core', 'Core.TypeTable', 'fs', function(qs, QC
...
@@ -50,8 +53,15 @@ QRequire('quokka-script', 'quokka-core', 'Core.TypeTable', 'fs', function(qs, QC
}
}
jsDeps
&&
jsDeps
.
forEach
(
function
(
dep
)
{
jsDeps
&&
jsDeps
.
forEach
(
function
(
dep
)
{
if
(
!
(
dep
in
store
.
names
))
{
if
(
!
(
dep
in
store
.
names
))
{
store
.
names
[
dep
]
=
true
;
if
(
dep
.
indexOf
(
'.'
)
===-
1
){
store
.
list
.
push
({
name
:
dep
,
path
:
QRequire
.
path
(
dep
)});
store
.
names
[
dep
]
=
true
;
store
.
list
.
push
({
name
:
dep
,
path
:
QRequire
.
path
(
dep
)});
}
else
{
startDepsResolve
(
dep
,
all
,
store
);
}
}
}
});
});
...
...
package.json
View file @
f1b5dbb9
{
{
"name"
:
"
qscript
"
,
"name"
:
"
qscript
"
,
"version"
:
"0.0.
3
"
,
"version"
:
"0.0.
4
"
,
"description"
:
"quokka-script env wizard"
,
"description"
:
"quokka-script env wizard"
,
"main"
:
"index.js"
,
"main"
:
"index.js"
,
"bin"
:
{
"bin"
:
{
...
...
test/test1.qs
View file @
f1b5dbb9
...
@@ -6,10 +6,14 @@
...
@@ -6,10 +6,14 @@
def Page main
def Page main
VBox
VBox
Number n1: 0
Number n1: 0
Slider s1: 10
Slider s1: 18
from:22
from:0
to: 255
div: ee
div: ee
td: de {{s1}} {{n1}}
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
Timer
enabled: false
enabled: false
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment