Nate Hardison
ea3506d2b9
Add general theming capabilities
...
This commit adds the requisite settings and startup features to
enable integration of themes into the edX platform. It does not
yet provide hooks in any of the templates, but it does cause the
main `lms/static/sass/application.scss` file to `@import` a theme's
base Sass. Template hooks will come down the road.
CHANGELOG
---------
Define a new `MITX_FEATURE`, `USE_CUSTOM_THEME`, that when enabled,
can be used in templates to determine whether or not custom theme
templates should be used instead of the defaults.
Also define a new setting, `THEME_NAME`, which will be used to
locate theme-specific files. Establish the convention that themes
will be stored outside of the `REPO_ROOT`, inside the `ENV_ROOT`,
in a directory named `themes/`. `themes/<THEME_NAME>` will store
the files for a particular theme.
Provide a function, `enable_theme`, that modifies the template and
static asset load paths appropriately to include the theme's files.
Move the main LMS Sass file to a Mako template that conditionally
`@import`s the theme's base Sass file when a theme is enabled.
Add logic to the assets Rakefile to properly preprocess any Sass/
Mako templates before compiling them.
2013-05-22 12:22:27 -07:00
Calen Pennington
9d42bce54f
Split rake file into smaller, more manageable pieces
2013-05-15 15:25:35 -04:00
Calen Pennington
437158a4f1
Allow disabling of prereq installation
2013-05-15 15:23:57 -04:00
Calen Pennington
afdf10a448
Clean up how asset prereq tasks are wired up
2013-05-15 15:23:57 -04:00
Calen Pennington
6485b85a9c
Allow overriding of prereqs cache dir
2013-05-15 15:23:57 -04:00
Calen Pennington
a22287f192
Install prereqs before starting cms/lms or running tests
2013-05-15 15:23:57 -04:00
Calen Pennington
1c28f5a0ec
Move Mysql and scipi to requirements/post.txt, because they require the contents of requirements.txt to be completely installed
2013-05-15 15:23:56 -04:00
Calen Pennington
9743e84d0b
Use launchy for opening browsers
2013-05-15 15:23:55 -04:00
Calen Pennington
8e54991b89
Clean out cruft from rake file
2013-05-15 15:23:55 -04:00
Carlos Andrés Rocha
79a029ce9a
Clean root project directory
2013-05-15 15:23:55 -04:00
jarv
4774a1e92b
Merge pull request #2004 from edx/jarv/repo-rename
...
repo rename to edx-platform
2013-05-13 12:18:16 -07:00
David Baumgold
f0bd73b2fb
Merge pull request #2022 from edx/kill-submodules
...
Install phantom-jasmine via npm, rather than git submodules
2013-05-13 12:02:41 -07:00
David Baumgold
7c98981498
Install phantom-jasmine via npm, rather than git submodules
...
Because removing a step from our install process is a Good Thing™
2013-05-13 11:33:09 -04:00
Steve Strassmann
a52cf85c08
rake task dependency for transifex
2013-05-10 14:50:49 -04:00
Steve Strassmann
f30f6207d5
clean up rakefile syntax for task dependencies
2013-05-10 14:47:47 -04:00
John Jarvis
a1e6c194c6
removing LINK_PATH
2013-05-10 10:24:32 -04:00
John Jarvis
3352ae7f75
repo rename to edx-platform
2013-05-09 18:29:45 -04:00
Steve Strassmann
165e7059c8
guard predicates are rake tasks, not functions
2013-05-08 15:34:35 -04:00
Steve Strassmann
dfcbb73662
add guard code to ensure gnu gettext utilities are loaded before rake tests
2013-05-08 14:55:16 -04:00
Steve Strassmann
c0278d0ff1
refactor config file; fix duplicate merge
2013-05-06 11:29:27 -04:00
Steve Strassmann
03b9a9e22a
tweak file reference
2013-05-03 15:42:39 -04:00
Steve Strassmann
e6334584d6
rakefile cleanup
2013-05-03 15:18:29 -04:00
Steve Strassmann
55dd0fc8bc
workaround for gettext parser bug
2013-05-03 12:45:55 -04:00
Jay Zoldak
f2fd90bc61
Merge pull request #1917 from MITx/fix/cale/lms-jasmine-tests
...
Fix/cale/lms jasmine tests
2013-05-01 08:23:41 -07:00
Ned Batchelder
5b82ffd2ad
A little documentation.
2013-04-30 16:11:22 -04:00
Ned Batchelder
091ca9c3f0
Add a private-requirements.txt for personal changes to how things are installed. Good for installing libs as working dirs.
2013-04-30 16:11:22 -04:00
Calen Pennington
76599863e6
Compile all coffee and sass before running jasmine tests
2013-04-30 14:09:58 -04:00
Steve Strassmann
39dd251b02
add "rake test_i18n" to rakefile; tests pass
2013-04-29 15:30:18 -04:00
Steve Strassmann
c00d71d422
integrate dummy string tools; added rake tasks and unit tests
2013-04-29 11:32:22 -04:00
Steve Strassmann
2e81fc5152
sync with master
2013-04-29 09:55:12 -04:00
Calen Pennington
b4e9de67e0
Add docs to the prereqs rake commands
2013-04-29 07:32:16 -04:00
Calen Pennington
a2aacce244
Fail hard if one of the asset compilation steps fails
2013-04-29 07:32:16 -04:00
Calen Pennington
fb28384de7
Use local install of coffee
2013-04-29 07:31:48 -04:00
Steve Strassmann
3fd004e2fe
rake tasks
2013-04-26 16:54:23 -04:00
Calen Pennington
1371fe0308
Make sure to run :predjango before gather_assets so that the xmodule_assets command is set up
2013-04-24 15:30:16 -04:00
Calen Pennington
9d94adbd1f
Merge pull request #1871 from MITx/feature/cale/fast-dev-server
...
Speed up local development
2013-04-24 12:12:05 -07:00
Calen Pennington
4d55f87ab1
Add comments on duplicate calls to compile_assets
2013-04-24 12:33:44 -04:00
Calen Pennington
fcf77c5ce6
Run pylint in fewer larger batches
2013-04-22 08:03:23 -04:00
Calen Pennington
24f97d29db
Add sass sourcemaps back into the debug build
2013-04-22 08:02:09 -04:00
Calen Pennington
ec2532ac2e
Before starting the server, forcibly rebuild assets before starting to watch them
2013-04-18 15:45:52 -04:00
Calen Pennington
729daf5cbf
Move xmodule asset gathering out of server startup
...
This allows us to a) compile the coffeescript and sass from xmodules
using the new out-of-band method and b) reload xmodule static content
whenever it changes, which should make devs much happier.
2013-04-18 15:19:19 -04:00
Calen Pennington
3031c1da38
Fix up call to spawn
2013-04-18 07:19:32 -04:00
Calen Pennington
6a36d9dba8
Use the new gather_assets target before running tests
2013-04-18 07:19:32 -04:00
Calen Pennington
f80353121c
Don't clean pyc file and install xmodule before all arbitrary rake commands
2013-04-18 07:19:32 -04:00
Calen Pennington
afb60f790e
Change the name of the asset gathering task
2013-04-18 07:19:32 -04:00
Calen Pennington
589267599f
Run coffee and sass in watch mode when running lms or cms, and oneshot before running collectstatic
2013-04-18 07:19:32 -04:00
Calen Pennington
291e772ce0
Clean up cruft from rakefile
2013-04-18 07:18:36 -04:00
Calen Pennington
b3c470ece4
Randomize ports used by jasmine tests
...
This prevents multiple tests running in parallel from stomping on each
other.
2013-04-17 10:57:03 -04:00
Calen Pennington
f252c62f31
Enable test colors in nosetests
...
Use setup.cfg to set up default settings when running nose tests. Enable
the rednose library to color test output.
2013-04-17 09:58:52 -04:00
Vasyl Nakvasiuk
07b3db97a2
remove test rake task
2013-03-19 14:15:52 +02:00