Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
d3dd06ae
authored
Oct 28, 2014
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
circle: ignore bower components and static files in less watch
parent
f3fa489d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
circle/common/management/commands/watch.py
+6
-2
No files found.
circle/common/management/commands/watch.py
View file @
d3dd06ae
...
...
@@ -6,6 +6,7 @@ from django.core.management.base import BaseCommand
from
django.conf
import
settings
STATIC_FILES
=
u'--include-path={}'
.
format
(
':'
.
join
(
settings
.
STATICFILES_DIRS
))
IGNORED_FOLDERS
=
(
"static_collected"
,
"bower_components"
,
)
class
LessUtils
(
object
):
...
...
@@ -39,8 +40,7 @@ class LessUtils(object):
continue
relpath
=
os
.
path
.
relpath
(
root
,
settings
.
SITE_ROOT
)
if
relpath
.
startswith
((
"static_collected"
,
"bower_components"
)):
if
relpath
.
startswith
(
IGNORED_FOLDERS
):
continue
less_pathname
=
"
%
s/
%
s"
%
(
root
,
f
)
...
...
@@ -59,6 +59,10 @@ class LessUtils(object):
if
not
event
.
name
.
endswith
(
".less"
):
return
relpath
=
os
.
path
.
relpath
(
event
.
pathname
,
settings
.
SITE_ROOT
)
if
relpath
.
startswith
(
IGNORED_FOLDERS
):
return
css_pathname
=
LessUtils
.
less_path_to_css_path
(
event
.
pathname
)
LessUtils
.
compile_less
(
event
.
pathname
,
css_pathname
)
...
...
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