Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
6f38ea43
Commit
6f38ea43
authored
11 years ago
by
David Baumgold
Browse files
Options
Downloads
Patches
Plain Diff
Change `if not args.skip_collect` to `if args.collect`
Simpler and clearer
parent
44dad41e
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pavelib/assets.py
+17
-5
17 additions, 5 deletions
pavelib/assets.py
with
17 additions
and
5 deletions
pavelib/assets.py
+
17
−
5
View file @
6f38ea43
...
...
@@ -88,10 +88,22 @@ def update_assets(args):
Compile CoffeeScript and Sass, then collect static assets.
"""
parser
=
argparse
.
ArgumentParser
(
prog
=
'
paver update_assets
'
)
parser
.
add_argument
(
'
system
'
,
type
=
str
,
nargs
=
'
*
'
,
default
=
[
'
lms
'
,
'
studio
'
],
help
=
"
lms or studio
"
)
parser
.
add_argument
(
'
--settings
'
,
type
=
str
,
default
=
"
dev
"
,
help
=
"
Django settings module
"
)
parser
.
add_argument
(
'
--debug
'
,
action
=
'
store_true
'
,
default
=
False
,
help
=
"
Disable Sass compression
"
)
parser
.
add_argument
(
'
--skip-collect
'
,
action
=
'
store_true
'
,
default
=
False
,
help
=
"
Skip collection of static assets
"
)
parser
.
add_argument
(
'
system
'
,
type
=
str
,
nargs
=
'
*
'
,
default
=
[
'
lms
'
,
'
studio
'
],
help
=
"
lms or studio
"
,
)
parser
.
add_argument
(
'
--settings
'
,
type
=
str
,
default
=
"
dev
"
,
help
=
"
Django settings module
"
,
)
parser
.
add_argument
(
'
--debug
'
,
action
=
'
store_true
'
,
default
=
False
,
help
=
"
Disable Sass compression
"
,
)
parser
.
add_argument
(
'
--skip-collect
'
,
dest
=
'
collect
'
,
action
=
'
store_false
'
,
default
=
True
,
help
=
"
Skip collection of static assets
"
,
)
args
=
parser
.
parse_args
(
args
)
compile_templated_sass
(
args
.
system
,
args
.
settings
)
...
...
@@ -99,5 +111,5 @@ def update_assets(args):
compile_coffeescript
()
compile_sass
(
args
.
debug
)
if
not
args
.
skip_
collect
:
if
args
.
collect
:
collect_assets
(
args
.
system
,
args
.
settings
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment