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
d00ab4c4
Commit
d00ab4c4
authored
Oct 22, 2012
by
Timothée Peignier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set terminal options in YUI_ARGUMENTS to allow to keep using yui-compressor
parent
97fe7365
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
pipeline/compressors/yui.py
+2
-2
pipeline/conf/settings.py
+2
-2
No files found.
pipeline/compressors/yui.py
View file @
d00ab4c4
...
@@ -3,8 +3,8 @@ from pipeline.compressors import SubProcessCompressor
...
@@ -3,8 +3,8 @@ from pipeline.compressors import SubProcessCompressor
class
YUICompressor
(
SubProcessCompressor
):
class
YUICompressor
(
SubProcessCompressor
):
def
compress_common
(
self
,
content
,
type_
,
arguments
):
def
compress_common
(
self
,
content
,
compress_type
,
arguments
):
command
=
'
%
s --t
erminal --type=
%
s
%
s'
%
(
settings
.
PIPELINE_YUI_BINARY
,
type_
,
arguments
)
command
=
'
%
s --t
ype=
%
s
%
s'
%
(
settings
.
PIPELINE_YUI_BINARY
,
compress_type
,
arguments
)
return
self
.
execute_command
(
command
,
content
)
return
self
.
execute_command
(
command
,
content
)
def
compress_js
(
self
,
js
):
def
compress_js
(
self
,
js
):
...
...
pipeline/conf/settings.py
View file @
d00ab4c4
...
@@ -28,8 +28,8 @@ PIPELINE_CSSTIDY_BINARY = getattr(settings, 'PIPELINE_CSSTIDY_BINARY', '/usr/bin
...
@@ -28,8 +28,8 @@ PIPELINE_CSSTIDY_BINARY = getattr(settings, 'PIPELINE_CSSTIDY_BINARY', '/usr/bin
PIPELINE_CSSTIDY_ARGUMENTS
=
getattr
(
settings
,
'PIPELINE_CSSTIDY_ARGUMENTS'
,
'--template=highest'
)
PIPELINE_CSSTIDY_ARGUMENTS
=
getattr
(
settings
,
'PIPELINE_CSSTIDY_ARGUMENTS'
,
'--template=highest'
)
PIPELINE_YUI_BINARY
=
getattr
(
settings
,
'PIPELINE_YUI_BINARY'
,
'/usr/bin/env yuglify'
)
PIPELINE_YUI_BINARY
=
getattr
(
settings
,
'PIPELINE_YUI_BINARY'
,
'/usr/bin/env yuglify'
)
PIPELINE_YUI_CSS_ARGUMENTS
=
getattr
(
settings
,
'PIPELINE_YUI_CSS_ARGUMENTS'
,
''
)
PIPELINE_YUI_CSS_ARGUMENTS
=
getattr
(
settings
,
'PIPELINE_YUI_CSS_ARGUMENTS'
,
'
--terminal
'
)
PIPELINE_YUI_JS_ARGUMENTS
=
getattr
(
settings
,
'PIPELINE_YUI_JS_ARGUMENTS'
,
''
)
PIPELINE_YUI_JS_ARGUMENTS
=
getattr
(
settings
,
'PIPELINE_YUI_JS_ARGUMENTS'
,
'
--terminal
'
)
PIPELINE_CLOSURE_BINARY
=
getattr
(
settings
,
'PIPELINE_CLOSURE_BINARY'
,
'/usr/bin/env closure'
)
PIPELINE_CLOSURE_BINARY
=
getattr
(
settings
,
'PIPELINE_CLOSURE_BINARY'
,
'/usr/bin/env closure'
)
PIPELINE_CLOSURE_ARGUMENTS
=
getattr
(
settings
,
'PIPELINE_CLOSURE_ARGUMENTS'
,
''
)
PIPELINE_CLOSURE_ARGUMENTS
=
getattr
(
settings
,
'PIPELINE_CLOSURE_ARGUMENTS'
,
''
)
...
...
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