carteb / carte-blanche

An isolated development space with integrated fuzz testing for your components. See them individually, explore them in different states and quickly and confidently develop them.
https://www.youtube.com/watch?v=6g3-TQ6aaw8
MIT License
1.5k stars 47 forks source link

Implement files option #214

Closed mxstbr closed 8 years ago

mxstbr commented 8 years ago

The one thing missing here is that we need to add the files to the HTML, which looks something like this:

`
<!doctype html>
  <!-- … -->
    ${this.options.files.map(filePath => pathToHTML(filePath)).join('\n')}
    <script src="client-bundle.js"></script>
    <script src="user-bundle.js"></script>
  </body>
</html>
`

How this'll work is dependant on how #211 plays out, do not merge yet!

mxstbr commented 8 years ago

Now that #211 is going to get merged very soon, will update and finish this PR accordingly!