Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
c648fac
Add grunt and update package.json
tusbar Nov 20, 2014
0d96b99
Start generating css files for LMS
tusbar Nov 20, 2014
cc61f03
adding most of the lms files to the grunt task
felipemontoya Nov 20, 2014
80400f5
Create CSS files for the LMS
tusbar Nov 20, 2014
6d82489
Add LMS clean task to remove generated files
tusbar Nov 20, 2014
c609508
Adding grunt-sass library
dino-cikatic Nov 20, 2014
2ce81cf
Change neat version to 1.5.1
tusbar Nov 20, 2014
a97fb6c
Remove neat and bourbon from the repository
tusbar Nov 20, 2014
0a9e150
Add grunt lms watch task
tusbar Nov 20, 2014
554db96
Adding a studio task with subtasks for sass, clean and concat
felipemontoya Nov 20, 2014
4ea786d
Add missing files to the lms build
tusbar Nov 20, 2014
c69535e
Move bi-app-ltr import below bourbon
tusbar Nov 20, 2014
f6cb8ee
Fix bourbon path in static content script
tusbar Nov 20, 2014
3afca8e
Stop compiling Sass in the pavelib
tusbar Nov 20, 2014
90c2aba
Update Gruntfile to include configuration
tusbar Nov 20, 2014
0e1a72e
Add cssmin tasks for both lms and studio
tusbar Nov 20, 2014
f948f54
Install bi-app using bower
tusbar Nov 20, 2014
8d4e785
Update missing trl/ltr
tusbar Nov 20, 2014
d52e347
Run bower after installing npm dependencies
tusbar Nov 20, 2014
aa16109
Add missing RTL file
tusbar Nov 20, 2014
3c38468
Remove ruby stuff
tusbar Nov 20, 2014
c11a4ed
Remove CSS pipeline from LMS
tusbar Nov 21, 2014
c9918c7
Remove CSS pipeline from Studio
tusbar Nov 21, 2014
036bd61
Update Gruntfile to include watch task for all systems
tusbar Nov 21, 2014
f1fe104
Call grunt in paver assets tasks
tusbar Nov 21, 2014
3b1aa84
Stop calling clean task in base system Grunt tasks
tusbar Nov 21, 2014
9aa6982
Remove short option for watch option to avoid conflict
tusbar Nov 21, 2014
870cc0c
Remove useless readme
tusbar Nov 21, 2014
477df78
Add --production option to update_assets that minifies
tusbar Nov 21, 2014
2029c8a
Add theme compatiblity
tusbar Nov 21, 2014
2cd2610
Compile coffee files using Grunt
tusbar Nov 21, 2014
fb793f1
Remove old SASS arguments
tusbar Nov 21, 2014
e696d81
Remove ruby/bundle references in scripts
tusbar Nov 21, 2014
c1d38e4
Remove missing rbenv/bundle references
tusbar Nov 21, 2014
c72fa4a
Install grunt-cli and bower locally
tusbar Nov 21, 2014
5c010f1
Rename system to sys for consistency purposes
tusbar Nov 21, 2014
f61a96b
Clean LMS Sass build
tusbar Nov 22, 2014
134fee4
Fix issues with Gruntfile
tusbar Nov 24, 2014
b4f9f35
Fix parameters description texts
tusbar Dec 16, 2014
567fb28
Remove pipeline CSS inclusions
tusbar Dec 16, 2014
e4ca8ca
Add default value to systems in watch task
tusbar Dec 16, 2014
97e8ed3
Upgrade neat to 1.7.0
tusbar Dec 16, 2014
09657ad
Manually fixing remaining conflicts after rebase
felipemontoya Jan 23, 2015
bce7c37
Adding a compile_coffeescript paver task that uses grunt to compile t…
felipemontoya Feb 6, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ test_root/uploads/*.txt
.pip_download_cache/
.prereqs_cache
.vagrant/
node_modules
.bundle/
node_modules/
bower_components/
bin/

### Static assets pipeline artifacts
Expand Down
1 change: 0 additions & 1 deletion .ruby-gemset

This file was deleted.

1 change: 0 additions & 1 deletion .ruby-version

This file was deleted.

13 changes: 0 additions & 13 deletions Gemfile

This file was deleted.

35 changes: 0 additions & 35 deletions Gemfile.lock

This file was deleted.

413 changes: 413 additions & 0 deletions Gruntfile.js

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "edx",
"private": true,
"homepage": "https://github.com/edx/edx-platform",
"dependencies": {
"bourbon": "https://github.com/thoughtbot/bourbon.git#v4.0.2",
"neat": "https://github.com/thoughtbot/neat.git#1.7.0",
"bi-app-sass": "https://github.com/anasnakawa/bi-app-sass.git#master",
"font-awesome": "https://github.com/FortAwesome/Font-Awesome.git#3.2.1"
}
}
114 changes: 20 additions & 94 deletions cms/envs/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@
PROJECT_ROOT = path(__file__).abspath().dirname().dirname() # /edx-platform/cms
REPO_ROOT = PROJECT_ROOT.dirname()
COMMON_ROOT = REPO_ROOT / "common"
BOWER_ROOT = REPO_ROOT / "bower_components"
LMS_ROOT = REPO_ROOT / "lms"
ENV_ROOT = REPO_ROOT.dirname() # virtualenv dir /edx-platform is in

Expand Down Expand Up @@ -354,12 +355,25 @@
STATIC_ROOT = ENV_ROOT / "staticfiles" / EDX_PLATFORM_REVISION

STATICFILES_DIRS = [
COMMON_ROOT / "static",
PROJECT_ROOT / "static",
LMS_ROOT / "static",
("css", PROJECT_ROOT / "static/css"),

# This is how you would use the textbook images locally
# ("book", ENV_ROOT / "book_images"),
("js", COMMON_ROOT / "static/js"),
("js", PROJECT_ROOT / "static/js"),

("fonts", PROJECT_ROOT / "static/fonts"),
("font", BOWER_ROOT / "font-awesome/font"),

("images", COMMON_ROOT / "static/images"),
("images", PROJECT_ROOT / "static/images"),

("xmodule", COMMON_ROOT / "static/xmodule"),

# All these should not be here

("coffee", COMMON_ROOT / "static/coffee"),
("coffee", PROJECT_ROOT / "static/coffee"),

PROJECT_ROOT / "static"
]

# Locale/Internationalization
Expand Down Expand Up @@ -387,89 +401,6 @@

from rooted_paths import rooted_glob

PIPELINE_CSS = {
'style-vendor': {
'source_filenames': [
'css/vendor/normalize.css',
'css/vendor/font-awesome.css',
'css/vendor/html5-input-polyfills/number-polyfill.css',
'js/vendor/CodeMirror/codemirror.css',
'css/vendor/ui-lightness/jquery-ui-1.8.22.custom.css',
'css/vendor/jquery.qtip.min.css',
'js/vendor/markitup/skins/simple/style.css',
'js/vendor/markitup/sets/wiki/style.css',
],
'output_filename': 'css/cms-style-vendor.css',
},
'style-vendor-tinymce-content': {
'source_filenames': [
'css/tinymce-studio-content-fonts.css',
'js/vendor/tinymce/js/tinymce/skins/studio-tmce4/content.min.css',
'css/tinymce-studio-content.css'
],
'output_filename': 'css/cms-style-vendor-tinymce-content.css',
},
'style-vendor-tinymce-skin': {
'source_filenames': [
'js/vendor/tinymce/js/tinymce/skins/studio-tmce4/skin.min.css'
],
'output_filename': 'css/cms-style-vendor-tinymce-skin.css',
},
'style-app': {
'source_filenames': [
'sass/style-app.css',
],
'output_filename': 'css/cms-style-app.css',
},
'style-app-extend1': {
'source_filenames': [
'sass/style-app-extend1.css',
],
'output_filename': 'css/cms-style-app-extend1.css',
},
'style-app-rtl': {
'source_filenames': [
'sass/style-app-rtl.css',
],
'output_filename': 'css/cms-style-app-rtl.css',
},
'style-app-extend1-rtl': {
'source_filenames': [
'sass/style-app-extend1-rtl.css',
],
'output_filename': 'css/cms-style-app-extend1-rtl.css',
},
'style-xmodule': {
'source_filenames': [
'sass/style-xmodule.css',
],
'output_filename': 'css/cms-style-xmodule.css',
},
'style-xmodule-rtl': {
'source_filenames': [
'sass/style-xmodule-rtl.css',
],
'output_filename': 'css/cms-style-xmodule-rtl.css',
},
'style-xmodule-annotations': {
'source_filenames': [
'css/vendor/ova/annotator.css',
'css/vendor/ova/edx-annotator.css',
'css/vendor/ova/video-js.min.css',
'css/vendor/ova/rangeslider.css',
'css/vendor/ova/share-annotator.css',
'css/vendor/ova/richText-annotator.css',
'css/vendor/ova/tags-annotator.css',
'css/vendor/ova/flagging-annotator.css',
'css/vendor/ova/diacritic-annotator.css',
'css/vendor/ova/grouping-annotator.css',
'css/vendor/ova/ova.css',
'js/vendor/ova/catch/css/main.css'
],
'output_filename': 'css/cms-style-xmodule-annotations.css',
},
}

# test_order: Determines the position of this chunk of javascript on
# the jasmine test page
PIPELINE_JS = {
Expand All @@ -488,7 +419,6 @@
'pipeline.compilers.coffee.CoffeeScriptCompiler',
)

PIPELINE_CSS_COMPRESSOR = None
PIPELINE_JS_COMPRESSOR = None

STATICFILES_IGNORE_PATTERNS = (
Expand All @@ -505,11 +435,7 @@
"coffee/*.coffee",
"coffee/*/*.coffee",
"coffee/*/*/*.coffee",
"coffee/*/*/*/*.coffee",

# Symlinks used by js-test-tool
"xmodule_js",
"common_static",
"coffee/*/*/*/*.coffee"
)

PIPELINE_YUI_BINARY = 'yui-compressor'
Expand Down
4 changes: 0 additions & 4 deletions cms/envs/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,6 @@
# Dummy secret key for dev
SECRET_KEY = '85920908f28904ed733fe576320db18cabd7b6cd'

################################ PIPELINE #################################

PIPELINE_SASS_ARGUMENTS = '--debug-info --require {proj_dir}/static/sass/bourbon/lib/bourbon.rb'.format(proj_dir=PROJECT_ROOT)

################################# CELERY ######################################

# By default don't use a worker, execute tasks as if they were local functions
Expand Down
3 changes: 0 additions & 3 deletions cms/static/sass/README.txt

This file was deleted.

4 changes: 2 additions & 2 deletions cms/static/sass/style-app-extend1-rtl.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

// +Libs and Resets - *do not edit*
// ====================
@import 'bourbon/bourbon'; // lib - bourbon
@import 'vendor/bi-app/bi-app-rtl'; // set the layout for right to left languages
@import 'bourbon/dist/bourbon'; // lib - bourbon
@import 'bi-app-sass/bi-app/bi-app-rtl'; // set the layout for right to left languages

// +Vendor and Rebase - *referenced/used vendor presentation and reset*
// ====================
Expand Down
5 changes: 2 additions & 3 deletions cms/static/sass/style-app-extend1.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@
// * +Base - Specific Views
// * +Base - Contexts


// +Libs and Resets - *do not edit*
// ====================
@import 'bourbon/bourbon'; // lib - bourbon
@import 'vendor/bi-app/bi-app-ltr'; // set the layout for left to right languages
@import 'bourbon/dist/bourbon'; // lib - bourbon
@import 'bi-app-sass/bi-app/bi-app-ltr'; // set the layout for left to right languages

// +Vendor and Rebase - *referenced/used vendor presentation and reset*
// ====================
Expand Down
4 changes: 2 additions & 2 deletions cms/static/sass/style-app-rtl.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

// +Libs and Resets - *do not edit*
// ====================
@import 'bourbon/bourbon'; // lib - bourbon
@import 'vendor/bi-app/bi-app-rtl'; // set the layout for right to left languages
@import 'bourbon/dist/bourbon'; // lib - bourbon
@import 'bi-app-sass/bi-app/bi-app-rtl'; // set the layout for right to left languages

// +Vendor and Rebase - *referenced/used vendor presentation and reset*
// ====================
Expand Down
5 changes: 2 additions & 3 deletions cms/static/sass/style-app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@
// * +Base - Assets
// * +Base - Starter
// * +Base - Elements

// +Libs and Resets - *do not edit*
// ====================
@import 'bourbon/bourbon'; // lib - bourbon
@import 'vendor/bi-app/bi-app-ltr'; // set the layout for left to right languages
@import 'bourbon/dist/bourbon'; // lib - bourbon
@import 'bi-app-sass/bi-app/bi-app-ltr'; // set the layout for left to right languages

// +Vendor and Rebase - *referenced/used vendor presentation and reset*
// ====================
Expand Down
4 changes: 2 additions & 2 deletions cms/static/sass/style-xmodule-rtl.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

// +Libs and Resets - *do not edit*
// ====================
@import 'bourbon/bourbon'; // lib - bourbon
@import 'vendor/bi-app/bi-app-rtl'; // set the layout for right to left languages
@import 'bourbon/dist/bourbon'; // lib - bourbon
@import 'bi-app-sass/bi-app/bi-app-rtl'; // set the layout for right to left languages

// +Vendor and Rebase - *referenced/used vendor presentation and reset*
// ====================
Expand Down
4 changes: 2 additions & 2 deletions cms/static/sass/style-xmodule.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

// +Libs and Resets - *do not edit*
// ====================
@import 'bourbon/bourbon'; // lib - bourbon
@import 'vendor/bi-app/bi-app-ltr'; // set the layout for left to right languages
@import 'bourbon/dist/bourbon'; // lib - bourbon
@import 'bi-app-sass/bi-app/bi-app-ltr'; // set the layout for left to right languages

// +Vendor and Rebase - *referenced/used vendor presentation and reset*
// ====================
Expand Down
11 changes: 0 additions & 11 deletions cms/static/sass/vendor/bi-app/_bi-app-ltr.scss

This file was deleted.

11 changes: 0 additions & 11 deletions cms/static/sass/vendor/bi-app/_bi-app-rtl.scss

This file was deleted.

Loading