Last active
March 23, 2016 17:37
-
-
Save green3g/2a5242c196caadbc4db9 to your computer and use it in GitHub Desktop.
Steal export problems
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define([ | |
'module', | |
'can/view/stache', | |
'can/view/stache/mustache_core' | |
], function (module, stache, mustacheCore) { | |
var renderer = stache([ | |
{ | |
'tokenType': 'start', | |
'args': [ | |
'form', | |
false | |
] | |
}, | |
//....... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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