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
67b3e9d0
Commit
67b3e9d0
authored
Apr 25, 2011
by
Timothée Peignier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make required options obligatory
parent
edcc752a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
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
No files found.
compress/compilers/coffee/__init__.py
View file @
67b3e9d0
...
...
@@ -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 @
67b3e9d0
...
...
@@ -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 @
67b3e9d0
...
...
@@ -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 @
67b3e9d0
...
...
@@ -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'
,
''
)
...
...
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