Hi,
I build minimal application from one html and js files, the project structure:
- webcontent
- javascriptmvc
- projects
- myproject
- todo.html
- todo.js
(My project is not located in javascriptmvc folder.)
The files (todo.html and todo.js):
---------------------------------------------------- todo.html (production mode) --------------------------------------------------
<html>
<body>
<script>
steal={paths: {
"first_main/": "../projects/myproject/"
}};
</script>
<script src='../../javascriptmvc/steal/steal.production.js?first_main/todo.js' charset="utf-8">
</script>
</body>
</html>
-------------------------------------------------------- todo.js ----------------------------------------
steal('jquery','can', function(){
Controller=can.Control.extend({
init:function(){
this.element.html("HELLO WORLD!");
}
});
new Controller("body");
});
-------------------------------------------------------------------------------------------------------------------------
I was building from javascriptmvc location using cmd command:
js steal/buildjs ../projects/myprojct/todos.html
Console shows that project is build successfully.
The chrome debugger shows, that 3 files are retrieved:
1. todo.html,
2. steal.production.js?first_main/todo.js
3. production.js
BUT nothing happens, NO MESSAGE with " HELLO WORLD".
Before building, the message appeared.
--------------------building output---------
uildjs ../projects/todos/todos.html
Building to ../projects/todos/
opening ../projects/todos/todos.html
adding dependencies
+ stealconfig.js
+ first_main/todos2.js
+ jquery
+ can/can.js
+ can/util/jquery/jquery.js
+ can/util/can.js
+ can/util/array/each.js
+ can/control/route/route.js
+ can/route/route.js
+ can/observe/observe.js
+ can/util/bind/bind.js
+ can/construct/construct.js
+ can/util/string/string.js
+ can/util/string/deparam/deparam.js
+ can/control/control.js
+ can/model/model.js
+ can/view/ejs/ejs.js
+ can/view/view.js
+ can/observe/compute/compute.js
+ can/view/scanner.js
+ can/view/elements.js
+ can/view/render.js
+ can/view/live.js
+ can/view/node_lists.js
no packages
Building ../projects/myproject/production.js
C:\_\projectworkspace\....\webcontect\javascriptmvc
---------------------------------------------------------------
I build minimal application from one html and js files, the project structure:
- webcontent
- javascriptmvc
- projects
- myproject
- todo.html
- todo.js
(My project is not located in javascriptmvc folder.)
The files (todo.html and todo.js):
---------------------------------------------------- todo.html (production mode) --------------------------------------------------
<html>
<body>
<script>
steal={paths: {
"first_main/": "../projects/myproject/"
}};
</script>
<script src='../../javascriptmvc/steal/steal.production.js?first_main/todo.js' charset="utf-8">
</script>
</body>
</html>
-------------------------------------------------------- todo.js ----------------------------------------
steal('jquery','can', function(){
Controller=can.Control.extend({
init:function(){
this.element.html("HELLO WORLD!");
}
});
new Controller("body");
});
-------------------------------------------------------------------------------------------------------------------------
I was building from javascriptmvc location using cmd command:
js steal/buildjs ../projects/myprojct/todos.html
Console shows that project is build successfully.
The chrome debugger shows, that 3 files are retrieved:
1. todo.html,
2. steal.production.js?first_main/todo.js
3. production.js
BUT nothing happens, NO MESSAGE with " HELLO WORLD".
Before building, the message appeared.
--------------------building output---------
uildjs ../projects/todos/todos.html
Building to ../projects/todos/
opening ../projects/todos/todos.html
adding dependencies
+ stealconfig.js
+ first_main/todos2.js
+ jquery
+ can/can.js
+ can/util/jquery/jquery.js
+ can/util/can.js
+ can/util/array/each.js
+ can/control/route/route.js
+ can/route/route.js
+ can/observe/observe.js
+ can/util/bind/bind.js
+ can/construct/construct.js
+ can/util/string/string.js
+ can/util/string/deparam/deparam.js
+ can/control/control.js
+ can/model/model.js
+ can/view/ejs/ejs.js
+ can/view/view.js
+ can/observe/compute/compute.js
+ can/view/scanner.js
+ can/view/elements.js
+ can/view/render.js
+ can/view/live.js
+ can/view/node_lists.js
no packages
Building ../projects/myproject/production.js
C:\_\projectworkspace\....\webcontect\javascriptmvc
---------------------------------------------------------------