cyberdelia/django-pipeline — Issue #33: Problem with glob syntax and coffeescript
Author: gerardo
Created: 2011-10-24 03:33:04+00:00
State: open

When using the glob syntax to add coffeescript files, and PIPELINE = False, the resulting .js files are generated and added to the template via ` {% compressed_js 'application' %}`, but in subsequents calls(hit refresh) it would not add the js references generated from the coffeescript globs.

Current settings:

```javascript
PIPELINE = False

STATIC_ROOT = os.path.join(PROJECT_ROOT, 'collected/')

STATICFILES_DIRS = (
os.path.join(PROJECT_ROOT, 'static/'),
)

STATICFILES_FINDERS = (
'pipeline.finders.PipelineFinder',
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
)

PIPELINE_STORAGE = 'pipeline.storage.PipelineFinderStorage'

PIPELINE_JS = {
'application': {
'source_filenames': (
'js/app.coffee',
'js/app/models/*.coffee',
'js/app/collections/*.coffee',
'js/app/templates/**/*.jst',
'js/setup.coffee',
),
'output_filename': 'js/webapp.js',
}
}
```
In this case, it would return app.js, the templates and setup.js, but not anything that matches `js/app/models/*.coffee` or `js/app/collections/*.coffee`.

It seems to be a problem with PipelineFinderStorage.