Needs review
Project:
Prepro
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Jun 2012 at 17:28 UTC
Updated:
23 Jan 2017 at 02:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jamsilver commentedNote this patch depends on the patch in #1602174: Add support for JS preprocessing - well at least it depends on the existance and signature of a function called
_prepro_process_assets().Comment #2
richthegeek commentedAdded in commit #98a5378, will be in 0.5 when that gets released later today. thanks for the help :)
Comment #4
enrique.delgado commentedHowdy,
I'm having a hard time figuring out how to run the drush command. I've tried passing in the full path to a .scss file, but I keep getting this drush warning:
No files were matched by current prepro configuration.After looking at the prepro configuration, I don't see anything that seems like filepath in there. This is a screenshot of my config screen for prepro, nothing much to it: https://skitch.com/edelgado-digium/e1767/preprocessors
What am I missing? Where do I setup the filepaths that prepro is expecting? I'm using Sassy PHPSass as the pre-processor as you can see. There is nothing in that module that I can see where I can specify these file paths either.
Any help would be greatly appreciated.
Comment #5
enrique.delgado commentedAnyone?
Comment #6
joseph.olstadlooks like the drush functionality was removed from the later versions of prepro.
We'd have to re-apply it.
Comment #7
joseph.olstadComment #8
sense-designCould you please provide a complete patch for 7.x-1.x branch? I will then add the patch to the branch for reviewing.
Comment #10
joseph.olstadThe first patch was no longer working, and it seems just easier to clear the prepro caches.
see patch and commit.
Comment #11
joseph.olstadComment #12
joseph.olstadIf you're using sassy with prepro, the new command 'drush pcc' will clear the prepro caches and also clear the css caches, otherwise 'drush pcc' will clear just the prepro caches.
Comment #13
sense-designNice work
Comment #14
joseph.olstadPublished release 7.x-1.7 with this included.
also included #2840910: Fresh Module Install : Undefined index: notice filetypes in prepro_admin_form_save()
Comment #16
joseph.olstadInadvertantly used hook_clear_cache instead of a custom function, now on any type of hook_clear_cache call using drush even a
drush cc css-jsthe prepro cache gets cleared.Had meant this to be a seperate command with as
drush pcc(prepro cache clear) rather than any old cache-clear . So perhaps the functionality should be changed, say, cache clear only when drush cc all (all caches) are called, or add a seperate handler for prepro , plus leave the specific one drush pcc intact.This change should be easy to do. any feedback?