Skip to content
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

Inconsistent: compile_file reads from pipeline_settings while is_outdated reads PIPELINE_* settings #15

Closed
MrCsabaToth opened this issue Jul 8, 2016 · 3 comments

Comments

@MrCsabaToth
Copy link

MrCsabaToth commented Jul 8, 2016

See https://github.com/j0hnsmith/django-pipeline-browserify/blob/master/pipeline_browserify/compiler.py#L19 vs. https://github.com/j0hnsmith/django-pipeline-browserify/blob/master/pipeline_browserify/compiler.py#L55

To overcome that, I need to set things twice:

PIPELINE['BROWSERIFY_BINARY'] = 'c:\\Users\\JohnSmith\\node_modules\\.bin\\browserify.cmd'
PIPELINE_BROWSERIFY_BINARY = PIPELINE['BROWSERIFY_BINARY']
if DEBUG:
    PIPELINE["BROWSERIFY_ARGUMENTS"] = '-t babelify'
    PIPELINE_BROWSERIFY_ARGUMENTS = PIPELINE["BROWSERIFY_ARGUMENTS"]

Should I make a pull request? I like pipeline_settings better.

@natevw
Copy link
Collaborator

natevw commented Jul 15, 2016

Yeah, I think this might be the cause of a regression I'm seeing after upgrading from 0.4.0 to 0.4.1 — now my assets compile fine the first time, but the next edit results in a [Errno 2] No such file or directory message.

I have browserify installed locally, not globally, and so I was using PIPELINE['BROWSERIFY_BINARY'] to override it as documented. I'd agree that the is_outdated is looking for the wrong setting — certainly a backwards-incompatible expectation anyway.

Thanks @MrCsabaToth for figuring this one out and providing the workaround!

@natevw
Copy link
Collaborator

natevw commented Jan 6, 2017

@j0hnsmith Can you weigh in here? It'd be great if PIPELINE['BROWSERIFY_BINARY'] were used in both places. Would you like a pull request or is it just as simple to fix it in a new release yourself?

@j0hnsmith
Copy link
Owner

@natevw a PR would be great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants