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
db628664
Commit
db628664
authored
Apr 27, 2011
by
Timothée Peignier
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'compressors'
parents
d86f2cbd
5eb79a30
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
compress/compilers/coffee/__init__.py
+1
-1
compress/compilers/sass/__init__.py
+1
-1
compress/compressors/uglifyjs/__init__.py
+1
-1
compress/conf/settings.py
+3
-3
compress/versioning/__init__.py
+1
-1
No files found.
compress/compilers/coffee/__init__.py
View file @
db628664
...
...
@@ -9,7 +9,7 @@ class CoffeeScriptCompiler(SubProcessCompiler):
return
path
.
endswith
(
'.coffee'
)
def
compile_file
(
self
,
content
):
command
=
"
%
s
%
s"
%
(
settings
.
COMPRESS_COFFEE_SCRIPT_BINARY
,
settings
.
COMPRESS_COFFEE_SCRIPT_ARGUMENTS
)
command
=
"
%
s
-sc
%
s"
%
(
settings
.
COMPRESS_COFFEE_SCRIPT_BINARY
,
settings
.
COMPRESS_COFFEE_SCRIPT_ARGUMENTS
)
if
self
.
verbose
:
command
+=
'--verbose'
return
self
.
execute_command
(
command
,
content
)
compress/compilers/sass/__init__.py
View file @
db628664
...
...
@@ -9,7 +9,7 @@ class SASSCompiler(SubProcessCompiler):
return
filename
.
endswith
(
'.scss'
)
def
compile_file
(
self
,
content
):
command
=
"
%
s
%
s"
%
(
settings
.
COMPRESS_SASS_BINARY
,
settings
.
COMPRESS_SASS_ARGUMENTS
)
command
=
"
%
s
--scss
%
s"
%
(
settings
.
COMPRESS_SASS_BINARY
,
settings
.
COMPRESS_SASS_ARGUMENTS
)
if
self
.
verbose
:
command
+=
'--verbose'
return
self
.
execute_command
(
command
,
content
)
compress/compressors/uglifyjs/__init__.py
View file @
db628664
...
...
@@ -4,7 +4,7 @@ from compress.compressors import SubProcessCompressor
class
UglifyJSCompressor
(
SubProcessCompressor
):
def
compress_js
(
self
,
js
):
command
=
'
%
s
%
s'
%
(
settings
.
COMPRESS_UGLIFYJS_BINARY
,
settings
.
COMPRESS_UGLIFYJS_ARGUMENTS
)
command
=
'
%
s
-nc
%
s'
%
(
settings
.
COMPRESS_UGLIFYJS_BINARY
,
settings
.
COMPRESS_UGLIFYJS_ARGUMENTS
)
if
self
.
verbose
:
command
+=
' --verbose'
return
self
.
execute_command
(
command
,
js
)
compress/conf/settings.py
View file @
db628664
...
...
@@ -35,13 +35,13 @@ COMPRESS_CLOSURE_BINARY = getattr(settings, 'COMPRESS_CLOSURE_BINARY', '/usr/loc
COMPRESS_CLOSURE_ARGUMENTS
=
getattr
(
settings
,
'COMPRESS_CLOSURE_ARGUMENTS'
,
''
)
COMPRESS_UGLIFYJS_BINARY
=
getattr
(
settings
,
'COMPRESS_UGLIFYJS_BINARY'
,
'/usr/local/bin/uglifyjs'
)
COMPRESS_UGLIFYJS_ARGUMENTS
=
getattr
(
settings
,
'COMPRESS_UGLIFYJS_ARGUMENTS'
,
'
-nc
'
)
COMPRESS_UGLIFYJS_ARGUMENTS
=
getattr
(
settings
,
'COMPRESS_UGLIFYJS_ARGUMENTS'
,
''
)
COMPRESS_COFFEE_SCRIPT_BINARY
=
getattr
(
settings
,
'COMPRESS_COFFEE_SCRIPT_BINARY'
,
'/usr/local/bin/coffee'
)
COMPRESS_COFFEE_SCRIPT_ARGUMENTS
=
getattr
(
settings
,
'COFFEE_SCRIPT_ARGUMENTS'
,
'
-sc
'
)
COMPRESS_COFFEE_SCRIPT_ARGUMENTS
=
getattr
(
settings
,
'COFFEE_SCRIPT_ARGUMENTS'
,
''
)
COMPRESS_SASS_BINARY
=
getattr
(
settings
,
'COMPRESS_SASS_BINARY'
,
'/usr/local/bin/sass'
)
COMPRESS_SASS_ARGUMENTS
=
getattr
(
settings
,
'COMPRESS_SASS_ARGUMENTS'
,
'
--scss
'
)
COMPRESS_SASS_ARGUMENTS
=
getattr
(
settings
,
'COMPRESS_SASS_ARGUMENTS'
,
''
)
COMPRESS_LESS_BINARY
=
getattr
(
settings
,
'COMPRESS_LESS_BINARY'
,
'/usr/local/bin/lessc'
)
COMPRESS_LESS_ARGUMENTS
=
getattr
(
settings
,
'COFFEE_LESS_ARGUMENTS'
,
''
)
...
...
compress/versioning/__init__.py
View file @
db628664
...
...
@@ -71,7 +71,7 @@ class VersioningBase(object):
def
version
(
self
,
source_files
):
raise
NotImplementedError
def
needs_update
(
self
,
output_file
,
source_file
s
,
version
):
def
needs_update
(
self
,
output_file
,
path
s
,
version
):
raise
NotImplementedError
...
...
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