-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only compile if there were no errors #93
Comments
Hey @jdcauley, thanks for opening an issue. That does sound a little strange. If the app was successfully compiled, the only reason something should be absent is if:
Can you show what your directory structure looks like for the app? I’m sure we can get to the bottom of this. In regards to your other question, would you mind explaining your use case for me? I just need to understand a little better. The previous files do get wiped out, yes. If they are actually unchanged, then they would get replaced with the same thing, since the same uncompiled versions would still be in your app. Right now, Harp re-builds everything on purpose; even though you might not have changed |
https://github.com/jdcauley/asthmasense.com This is an example: I'm betting I'm missing something I'm my json file but I could find anything in docs Jordan Cauley On Saturday, September 7, 2013 at 4:00 PM, Kenneth Ormandy wrote:
|
Thanks, that helps a lot. The main problem is that you’re getting a LESS error, do you get this message on
We still need to improve the CLI error messages. The main thing is The reason this error is happening is that Harp generate every CSS file that doesn’t start with an underscore. Unfortunately, most LESS libraries don’t follow the convention of using underscores for partials. So, you just need to put Bootstrap in an underscore directory so only the bootstrap.css file is generated, instead of every partial getting its own CSS file, too.
Now, in your @import "_bootstrap/bootstrap.less"; And remove We’d definitely like to give a very specific error message there to make it clear what’s going on, and I’ll update the LESS and Stylus docs. Any thoughts you have on making this clear would be greatly appreciated. |
That error doesn't prevent the compile. The site still comes out perfect except that I don't have a js or img folder included in the www.
Sent from Mailbox for iPhone On Sun, Sep 8, 2013 at 12:42 PM, Kenneth Ormandy notifications@github.com
|
That’s right, but I think that’s actually a problem with Harp. For your app, it was confusing because it seems like In terms of the technical implementation of |
I restructured my file and now its ignoring app.less altogether. Jordan Cauley On Sunday, September 8, 2013 at 12:42 PM, Kenneth Ormandy wrote:
|
As in on compile there is no app.css file. Jordan Cauley On Sunday, September 8, 2013 at 12:42 PM, Kenneth Ormandy wrote:
|
Got it will add appropriate bootstrap.less file tree later today. Jordan Cauley On Sunday, September 8, 2013 at 1:47 PM, Kenneth Ormandy wrote:
|
@jdcauley if you are still seeing problems can you send us a simplified version of your app that reproduces the problem? |
@sintaxi This is the app in question and this is one way of fixing it. It’s an issue that’s come up before: LESS and Stylus don’t use the convention of underscores to denote partials. So, libraries tend to break until you put them into a directory with a leading underscore. There’s no bug here, but there is a bit of a hurdle for new users. |
I have resolved this issue, Thank you for all the help. The original file tree provide still caused some problems but I got everything sorted out. I'm going to add my solution and my bootstrap file tree for anyone else who might want to use it. Jordan Cauley On Tuesday, September 10, 2013 at 8:34 PM, Kenneth Ormandy wrote:
|
Ok to close? |
Presently when I compile Harp excludes my image assets folder and my base js folder.
There may be a setting I'm missing or just something currently not supported.
Also is there a setting so that when I compile it only replaces changed files rather than wiping the entire previous compile?
The text was updated successfully, but these errors were encountered: