Skip to content

Commit

Permalink
test fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
kylegifford committed May 8, 2017
1 parent 86e489f commit f98c2ef
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 10 deletions.
13 changes: 5 additions & 8 deletions site/default/static/config.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
(function () {
var map = require('./map');
var isClient = typeof window !== "undefined";

var configData = {
map: {
"jquery/jquery": "jquery",
"benchmark/benchmark": "benchmark",
map,
ext: {
'stache': 'steal-stache'
},
meta: {
jquery: {
exports: "jQuery"
},
prettify: {format: "global"}
},
ext: {
ejs: "can/view/ejs/system",
mustache: "can/view/mustache/system",
stache: "can/view/stache/system"
}
};

Expand All @@ -27,6 +23,7 @@
};
}


System.config(configData);
})();

Expand Down
34 changes: 34 additions & 0 deletions site/default/static/map.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
module.exports = {
'can-compute': {
'proto-compute': 'can-compute/proto-compute',
},
'can-map': {
'bubble': 'can-map/bubble',
'map-helpers': 'can-map/map-helpers',
},
'can-stache': {
'helpers/core': 'can-stache/helpers/core',
'helpers/converter': 'can-stache/helpers/converter',
'src/html_section': 'can-stache/src/html_section',
'src/intermediate_and_imports': 'can-stache/src/intermediate_and_imports',
'src/mustache_core': 'can-stache/src/mustache_core',
'src/text_section': 'can-stache/src/text_section',
},
'can-view-live': {
'lib/attr': 'can-view-live/lib/attr',
'lib/attrs': 'can-view-live/lib/attrs',
'lib/core': 'can-view-live/lib/core',
'lib/html': 'can-view-live/lib/html',
'lib/list': 'can-view-live/lib/list',
'lib/text': 'can-view-live/lib/text',
},
'can-view-scope': {
'compute_data': 'can-view-scope/compute_data',
'reference-map': 'can-view-scope/reference-map',
},
'steal-stache': {
'add-bundles': 'steal-stache/add-bundles',
},
"jquery/jquery": "jquery",
"benchmark/benchmark": "benchmark",
};
4 changes: 2 additions & 2 deletions site/default/templates/layout.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@
}
</script>
<script type='text/javascript'
data-main="site/default/static/static"
data-config="package.json!npm"
data-main="static"
data-config="./config.js"
src="./static/steal.production.js"
bundles-path="static/bundles"></script>
{{/if}}
Expand Down

0 comments on commit f98c2ef

Please sign in to comment.