Skip to content

Commit 4d44e06

Browse files
authored
Merge pull request #36 from donejs/feature/upgrade-steal
Feature/upgrade steal
2 parents 401d73a + 4e6de00 commit 4d44e06

File tree

7 files changed

+25
-16
lines changed

7 files changed

+25
-16
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
language: node_js
22
node_js: 5.8
33
script: npm test
4+
addons:
5+
firefox: "48.0"
46
before_install:
57
- "export DISPLAY=:99.0"
68
- "sh -e /etc/init.d/xvfb start"

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,29 +26,29 @@
2626
"can-component": "^3.0.3",
2727
"can-list": "^3.0.1",
2828
"can-map": "^3.0.3",
29-
"can-map-define": "^3.0.1",
29+
"can-map-define": "^3.0.2",
3030
"can-route": "^3.0.5",
3131
"funcunit": "^3.1.0",
3232
"lodash.template": "^4.4.0",
33-
"steal": "^0.16.43",
34-
"steal-qunit": "0.1.4",
35-
"steal-tools": "^0.16.8",
33+
"steal": "^1.0.3",
34+
"steal-qunit": "1.0.0",
35+
"steal-tools": "^1.0.1",
3636
"testee": "^0.3.0"
3737
},
3838
"homepage": "https://github.com/donejs/autorender",
39-
"system": {
39+
"steal": {
4040
"npmAlgorithm": "flat",
4141
"directories": {
4242
"lib": "src"
4343
}
4444
},
4545
"dependencies": {
4646
"can-route": "^3.0.5",
47-
"can-stache": "^3.0.13",
48-
"can-util": "^3.0.13",
47+
"can-stache": "^3.0.15",
48+
"can-util": "^3.1.0",
4949
"can-view-import": "^3.0.3",
5050
"can-view-model": "^3.1.2",
5151
"can-zone": "^0.6.0",
52-
"steal-stache": "^3.0.3"
52+
"steal-stache": "^3.0.4"
5353
}
5454
}

src/template.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/template.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,10 @@ define(<%= imports %>, function(<%= args %>){
5050
plugins: [xhrZone, systemImportZone]
5151
}).run(function(){
5252
var state = autorender.state = new autorender.viewModel;
53-
5453
var docEl = document.documentElement;
5554
domData.set.call(docEl, "viewModel", state);
5655

57-
route.map(state);
56+
route.data = state;
5857
route.ready();
5958

6059
autorender.rerender();

test/autorender_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var QUnit = require("steal-qunit");
22
var F = require("funcunit");
33

4-
require("./unit");
4+
//require("./unit");
55

66
F.attach(QUnit);
77

test/basics/test.html

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
</head>
66
<body>
77
<script>
8+
window.Testee = {};
9+
810
window.QUnit = window.parent.QUnit;
911
window.removeMyself = window.parent.removeMyself;
1012
</script>
@@ -13,9 +15,15 @@
1315
var canViewModel = require("can-view-model");
1416
var Zone = require("can-zone");
1517

16-
new Zone().run(function() {
17-
return System.import('test/basics/index.stache!done-autorender');
18-
}).then(function() {
18+
System.import('test/basics/index.stache!done-autorender')
19+
.then(function(){
20+
return new Promise(function(resolve, reject){
21+
setTimeout(function(){
22+
resolve();
23+
}, 500);
24+
});
25+
})
26+
.then(function() {
1927
var vm = canViewModel(document.documentElement);
2028

2129
if(window.QUnit) {

test/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var stealTools = require("steal-tools");
33
stealTools.build({
44
config: __dirname + "/../package.json!npm",
55
main: "test/basics/index.stache!done-autorender",
6-
bundlesPath: "test/basics/dist/bundles"
76
}, {
7+
dest: "test/basics/dist",
88
quiet: true
99
});

0 commit comments

Comments
 (0)