Skip to content

Commit

Permalink
rebuild testcaes
Browse files Browse the repository at this point in the history
  • Loading branch information
AceMood committed Dec 16, 2016
1 parent 90b875b commit a524125
Show file tree
Hide file tree
Showing 20 changed files with 262 additions and 261 deletions.
30 changes: 17 additions & 13 deletions samples/deploy/dist/map/packages.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
{
"p0": {
"uri": "/static/pkg/krbXuxDmH.pkg.build.css",
"uri": "/static/pkg/nW4LiAj0C.pkg.build.css",
"has": [
"src/css/withId.css",
"src/css/reset.css",
"src/css/plain.css",
"src/css/inlineImage.css"
"YG9FV",
"mFLE6",
"xz4WD",
"5evpM"
],
"type": "css"
"type": "css",
"version": "nW4LiAj0C",
"localPathName": "/static/pkg/nW4LiAj0C.pkg.build.css"
},
"p1": {
"uri": "/static/pkg/tzucQhhAp.pkg.build.js",
"uri": "/static/pkg/8UaPd2PpL.pkg.build.js",
"has": [
"src/app/vrcode.js",
"src/app/moduleA.js",
"src/app/moduleB.js",
"src/app/moduleC.js",
"app"
"AQJGK",
"zMZ2x",
"T4EMD",
"app",
"tospe"
],
"type": "js"
"type": "js",
"version": "8UaPd2PpL",
"localPathName": "/static/pkg/8UaPd2PpL.pkg.build.js"
}
}
186 changes: 117 additions & 69 deletions samples/deploy/dist/map/resource.json
Original file line number Diff line number Diff line change
@@ -1,182 +1,230 @@
{
"root": "/Users/baidu/Git/soi/samples/deploy/dist",
"resource": {
"js": {
"app": {
"uri": "/static/app/app.js",
"type": "js",
"path": "src/app/app.js",
"localPathName": "/static/app/app.js",
"version": "v0.1",
"within": [
"p1"
],
"deps": [
"src/app/moduleA.js",
"src/app/moduleB.js",
"src/app/moduleC.js"
"AQJGK",
"zMZ2x",
"T4EMD"
],
"asyncLoaded": [
"src/app/vrcode.js"
"tospe"
]
},
"src/app/moduleA.js": {
"vrcode": {
"uri": "/static/js/vrcode.js",
"type": "js",
"path": "src/js/vrcode.js",
"localPathName": "/static/js/vrcode.js",
"version": "v0.1"
},
"base": {
"uri": "/static/js/withId.js",
"type": "js",
"path": "src/js/withId.js",
"localPathName": "/static/js/withId.js",
"version": "v0.1"
},
"AQJGK": {
"uri": "/static/app/moduleA.js",
"type": "js",
"path": "src/app/moduleA.js",
"localPathName": "/static/app/moduleA.js",
"version": "v0.1",
"within": [
"p1"
],
"css": [
"src/app/moduleA.css"
"a5tlT"
]
},
"src/app/moduleB.js": {
"zMZ2x": {
"uri": "/static/app/moduleB.js",
"type": "js",
"path": "src/app/moduleB.js",
"localPathName": "/static/app/moduleB.js",
"version": "v0.1",
"within": [
"p1"
],
"deps": [
"src/app/moduleA.js"
"AQJGK"
]
},
"src/app/moduleC.js": {
"T4EMD": {
"uri": "/static/app/moduleC.js",
"type": "js",
"path": "src/app/moduleC.js",
"localPathName": "/static/app/moduleC.js",
"version": "v0.1",
"within": [
"p1"
],
"deps": [
"src/app/moduleB.js"
"zMZ2x"
]
},
"src/app/vrcode.js": {
"tospe": {
"uri": "/static/app/vrcode.js",
"type": "js",
"path": "src/app/vrcode.js",
"localPathName": "/static/app/vrcode.js",
"version": "v0.1",
"within": [
"p1"
]
},
"src/js/async-require.js": {
"HOicX": {
"uri": "/static/js/async-require.js",
"type": "js",
"path": "src/js/async-require.js",
"localPathName": "/static/js/async-require.js",
"version": "v0.1",
"asyncLoaded": [
"vrcode"
]
},
"src/js/entry.js": {
"sWXOl": {
"uri": "/static/js/entry.js",
"type": "js",
"path": "src/js/entry.js",
"localPathName": "/static/js/entry.js",
"version": "v0.1",
"deps": [
"base"
]
},
"src/js/noId.js": {
"fvr+Q": {
"uri": "/static/js/noId.js",
"type": "js",
"path": "src/js/noId.js"
"path": "src/js/noId.js",
"localPathName": "/static/js/noId.js",
"version": "v0.1"
},
"src/js/sync-require.js": {
"SqQ7E": {
"uri": "/static/js/sync-require.js",
"type": "js",
"path": "src/js/sync-require.js",
"localPathName": "/static/js/sync-require.js",
"version": "v0.1",
"deps": [
"base"
]
},
"vrcode": {
"uri": "/static/js/vrcode.js",
"type": "js",
"path": "src/js/vrcode.js"
},
"base": {
"uri": "/static/js/withId.js",
"type": "js",
"path": "src/js/withId.js"
}
},
"css": {
"src/app/moduleA.css": {
"a5tlT": {
"uri": "/static/app/moduleA.css",
"type": "css",
"path": "src/app/moduleA.css"
"path": "src/app/moduleA.css",
"localPathName": "/static/app/moduleA.css",
"version": "v0.1"
},
"src/less/detail.less": {
"JAhPf": {
"uri": "/static/less/detail.css",
"type": "css",
"path": "src/less/detail.less"
"path": "src/less/detail.less",
"localPathName": "/static/less/detail.css",
"version": "v0.1"
},
"src/less/dialog.less": {
"e6fCE": {
"uri": "/static/less/dialog.css",
"type": "css",
"path": "src/less/dialog.less"
"path": "src/less/dialog.less",
"localPathName": "/static/less/dialog.css",
"version": "v0.1"
},
"src/less/empty.less": {
"zhSrg": {
"type": "css",
"path": "src/less/empty.less"
"path": "src/less/empty.less",
"version": "v0.1"
},
"src/less/import.less": {
"UVPXf": {
"uri": "/static/less/import.css",
"type": "css",
"path": "src/less/import.less",
"localPathName": "/static/less/import.css",
"version": "v0.1",
"css": [
"src/less/test.less"
"l4gcP"
]
},
"src/less/purecss.less": {
"J0bO1": {
"uri": "/static/less/purecss.css",
"type": "css",
"path": "src/less/purecss.less"
"path": "src/less/purecss.less",
"localPathName": "/static/less/purecss.css",
"version": "v0.1"
},
"src/less/shop_list.less": {
"Dez3f": {
"uri": "/static/less/shop_list.css",
"type": "css",
"path": "src/less/shop_list.less",
"localPathName": "/static/less/shop_list.css",
"version": "v0.1",
"css": [
"src/less/dialog.less"
"e6fCE"
]
},
"src/less/test.less": {
"l4gcP": {
"uri": "/static/less/test.css",
"type": "css",
"path": "src/less/test.less"
"path": "src/less/test.less",
"localPathName": "/static/less/test.css",
"version": "v0.1"
},
"src/less/verify_list.less": {
"xI2wM": {
"uri": "/static/less/verify_list.css",
"type": "css",
"path": "src/less/verify_list.less"
"path": "src/less/verify_list.less",
"localPathName": "/static/less/verify_list.css",
"version": "v0.1"
},
"src/css/inlineImage.css": {
"YG9FV": {
"uri": "/static/css/inlineImage.css",
"type": "css",
"path": "src/css/inlineImage.css",
"localPathName": "/static/css/inlineImage.css",
"version": "v0.1",
"within": [
"p0"
]
},
"src/css/plain.css": {
"mFLE6": {
"uri": "/static/css/plain.css",
"type": "css",
"path": "src/css/plain.css",
"localPathName": "/static/css/plain.css",
"version": "v0.1",
"within": [
"p0"
]
},
"src/css/reset.css": {
"xz4WD": {
"uri": "/static/css/reset.css",
"type": "css",
"path": "src/css/reset.css",
"localPathName": "/static/css/reset.css",
"version": "v0.1",
"within": [
"p0"
]
},
"src/css/withId.css": {
"5evpM": {
"uri": "/static/css/withId.css",
"type": "css",
"path": "src/css/withId.css",
"localPathName": "/static/css/withId.css",
"version": "v0.1",
"within": [
"p0"
]
Expand All @@ -185,29 +233,29 @@
},
"paths": {
"src/app/app.js": "app",
"src/app/moduleA.js": "src/app/moduleA.js",
"src/app/moduleB.js": "src/app/moduleB.js",
"src/app/moduleC.js": "src/app/moduleC.js",
"src/app/vrcode.js": "src/app/vrcode.js",
"src/js/async-require.js": "src/js/async-require.js",
"src/js/entry.js": "src/js/entry.js",
"src/js/noId.js": "src/js/noId.js",
"src/js/sync-require.js": "src/js/sync-require.js",
"src/js/vrcode.js": "vrcode",
"src/js/withId.js": "base",
"src/app/moduleA.css": "src/app/moduleA.css",
"src/less/detail.less": "src/less/detail.less",
"src/less/dialog.less": "src/less/dialog.less",
"src/less/empty.less": "src/less/empty.less",
"src/less/import.less": "src/less/import.less",
"src/less/purecss.less": "src/less/purecss.less",
"src/less/shop_list.less": "src/less/shop_list.less",
"src/less/test.less": "src/less/test.less",
"src/less/verify_list.less": "src/less/verify_list.less",
"src/css/inlineImage.css": "src/css/inlineImage.css",
"src/css/plain.css": "src/css/plain.css",
"src/css/reset.css": "src/css/reset.css",
"src/css/withId.css": "src/css/withId.css"
"src/app/moduleA.js": "AQJGK",
"src/app/moduleB.js": "zMZ2x",
"src/app/moduleC.js": "T4EMD",
"src/app/vrcode.js": "tospe",
"src/js/async-require.js": "HOicX",
"src/js/entry.js": "sWXOl",
"src/js/noId.js": "fvr+Q",
"src/js/sync-require.js": "SqQ7E",
"src/app/moduleA.css": "a5tlT",
"src/less/detail.less": "JAhPf",
"src/less/dialog.less": "e6fCE",
"src/less/empty.less": "zhSrg",
"src/less/import.less": "UVPXf",
"src/less/purecss.less": "J0bO1",
"src/less/shop_list.less": "Dez3f",
"src/less/test.less": "l4gcP",
"src/less/verify_list.less": "xI2wM",
"src/css/inlineImage.css": "YG9FV",
"src/css/plain.css": "mFLE6",
"src/css/reset.css": "xz4WD",
"src/css/withId.css": "5evpM"
},
"cssClassMap": {}
}
12 changes: 5 additions & 7 deletions samples/deploy/dist/static/app/app.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
kerneljs.exec("app", function(require, exports, module) {


var moduleA = require('src/app/moduleA.js');
var moduleB = require('src/app/moduleB.js');
var moduleC = require('src/app/moduleC.js');
var moduleA = require('AQJGK');
var moduleB = require('zMZ2x');
var moduleC = require('T4EMD');

var $btn = document.querySelector('button');
document.addEventListener($btn, 'click', fn);

function fn() {
require.async(["src/app/vrcode.js"], function(vrcode) {
require.async(["tospe"], function(vrcode) {
if (vrcode.isPast()) {
alert('done!');
}
});
}
});
}
Loading

0 comments on commit a524125

Please sign in to comment.