Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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
edx
edx-platform
Commits
fb28384d
Commit
fb28384d
authored
Apr 26, 2013
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use local install of coffee
parent
4a397972
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
rakefile
+16
-2
No files found.
rakefile
View file @
fb28384d
...
...
@@ -93,7 +93,7 @@ end
def
template_jasmine_runner
(
lib
)
coffee_files
=
Dir
[
"
#{
lib
}
/**/js/**/*.coffee"
,
"common/static/coffee/src/**/*.coffee"
]
if
!
coffee_files
.
empty?
sh
(
"coffee -c
#{
coffee_files
.
join
(
' '
)
}
"
)
sh
(
"
node_modules/.bin/
coffee -c
#{
coffee_files
.
join
(
' '
)
}
"
)
end
phantom_jasmine_path
=
File
.
expand_path
(
"common/test/phantom-jasmine"
)
common_js_root
=
File
.
expand_path
(
"common/static/js"
)
...
...
@@ -128,7 +128,7 @@ def compile_assets(watch=false, debug=false)
--command='
#{
xmodule_cmd
}
' \
common/lib/xmodule"
end
coffee_cmd
=
"coffee
#{
watch
?
'--watch'
:
''
}
--compile */static"
coffee_cmd
=
"
node_modules/.bin/
coffee
#{
watch
?
'--watch'
:
''
}
--compile */static"
sass_cmd
=
"sass
#{
debug
?
'--debug-info'
:
'--style compressed'
}
"
+
"--load-path ./common/static/sass "
+
"--require ./common/static/sass/bourbon/lib/bourbon.rb "
+
...
...
@@ -155,6 +155,20 @@ default_options = {
:cms
=>
'8001'
,
}
task
:install_prereqs
=>
[
:install_node_prereqs
,
:install_ruby_prereqs
,
:install_python_prereqs
]
task
:install_node_prereqs
do
sh
(
'npm install'
)
end
task
:install_ruby_prereqs
do
sh
(
'bundle install'
)
end
task
:install_python_prereqs
do
sh
(
'pip install -r requirements.txt'
)
end
task
:predjango
do
sh
(
"find . -type f -name *.pyc -delete"
)
sh
(
'pip install -q --no-index -r local-requirements.txt'
)
...
...
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