Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-pipeline
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
django-pipeline
Commits
464e03b9
Commit
464e03b9
authored
Jul 26, 2011
by
Timothée Peignier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add manifesto support
parent
f0d51068
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
pipeline/manifest.py
+23
-0
No files found.
pipeline/manifest.py
0 → 100644
View file @
464e03b9
import
os
from
manifesto
import
Manifest
from
pipeline.packager
import
Packager
class
PipelineManifest
(
Manifest
):
def
__init__
(
self
):
self
.
packager
=
Packager
()
def
cache
(
self
):
packages
,
cache
=
[],
[]
for
package_name
in
self
.
packager
.
packages
[
'css'
]:
packages
.
append
(
self
.
packager
.
package_for
(
'css'
,
package_name
))
for
package_name
in
self
.
packager
.
packages
[
'js'
]:
packages
.
append
(
self
.
packager
.
package_for
(
'js'
,
package_name
))
for
package
in
packages
:
filename_base
,
filename
=
os
.
path
.
split
(
package
[
'output'
])
version
=
self
.
packager
.
versioning
.
version_from_file
(
filename_base
,
filename
)
output_filename
=
self
.
packager
.
versioning
.
output_filename
(
package
[
'output'
],
version
)
cache
.
append
(
str
(
self
.
packager
.
individual_url
(
output_filename
)))
return
cache
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment