Skip to content

preview server build location #658

Closed
brewster1134 opened this Issue Nov 1, 2012 · 4 comments

4 participants

@brewster1134

i am trying to integrate testem and want to watch the compiled JS from the middleman preview server. It doesnt seem to be compiling artifacts within the project so...

1) where does the preview server compile to / run from?
2) can i specify that location in config.rb?

@tdreyno
Middleman member
tdreyno commented Nov 5, 2012

The preview server doesn't do any compiling, it's all dynamic. You'd have to call middleman build in conjunction with some kind of file watcher. Not really a great solution, I know.

@brewster1134

Testing would have to include running middleman build every time... That is a serious time consuming testing strategy. Essentially making testing is not supported with middleman. Bummer...

@tdreyno
Middleman member
tdreyno commented Nov 6, 2012

Certainly with on-save tests. There's no problem with more traditional commit-time continuous integration.

@onemanstartup

I think you could make link which will call Middleman::Cli::Build.new.build
I made it here. Based on MiddleManager.

@bhollis bhollis closed this Dec 22, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.