Skip to content

Instantly share code, notes, and snippets.

@green3g
Last active March 23, 2016 17:37
Show Gist options
  • Save green3g/2a5242c196caadbc4db9 to your computer and use it in GitHub Desktop.
Save green3g/2a5242c196caadbc4db9 to your computer and use it in GitHub Desktop.
Steal export problems
var stealTools = require("steal-tools");
stealTools.export({
system: {
config: __dirname+"/package.json!npm",
main: 'app/viewer/viewer'
},
outputs: {
"+amd": {
ignore: false
},
"+cjs": {
ignore: false
},
"+global-js": {
modules: ['app/viewer/viewer'],
ignore: false
},
'+global-css': {}
}
}).catch(function(e){
setTimeout(function(){
throw e;
},1);
});
define([
'module',
'can/view/stache',
'can/view/stache/mustache_core'
], function (module, stache, mustacheCore) {
var renderer = stache([
{
'tokenType': 'start',
'args': [
'form',
false
]
},
//.......
Project structure
-----------------
/
app/
app_files...
components/
component1/
component1.js
component1.stache
component1.css
other_components
Build structure (dist folder)
----------------------------
dist/
amd/
components/
component1/
component1.js
other component folders
component1/
component1.stache.js
other component folders
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment