Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
eded83b
Add grunt and update package.json
tusbar Nov 20, 2014
72efa36
Start generating css files for LMS
tusbar Nov 20, 2014
b1acec5
adding most of the lms files to the grunt task
felipemontoya Nov 20, 2014
c7f7c17
Create CSS files for the LMS
tusbar Nov 20, 2014
21888b1
Add LMS clean task to remove generated files
tusbar Nov 20, 2014
12107d9
Adding grunt-sass library
dino-cikatic Nov 20, 2014
a9673c5
Change neat version to 1.5.1
tusbar Nov 20, 2014
ea45496
Remove neat and bourbon from the repository
tusbar Nov 20, 2014
ad250e0
Add grunt lms watch task
tusbar Nov 20, 2014
803d60b
Adding a studio task with subtasks for sass, clean and concat
felipemontoya Nov 20, 2014
e04c5cf
Add missing files to the lms build
tusbar Nov 20, 2014
9b7c162
Move bi-app-ltr import below bourbon
tusbar Nov 20, 2014
57e7528
Fix bourbon path in static content script
tusbar Nov 20, 2014
2932da9
Stop compiling Sass in the pavelib
tusbar Nov 20, 2014
9db4b6d
Update Gruntfile to include configuration
tusbar Nov 20, 2014
cfa7484
Add cssmin tasks for both lms and studio
tusbar Nov 20, 2014
87e283a
Install bi-app using bower
tusbar Nov 20, 2014
4c55b66
Update missing trl/ltr
tusbar Nov 20, 2014
0f7da36
Run bower after installing npm dependencies
tusbar Nov 20, 2014
3370b06
Add missing RTL file
tusbar Nov 20, 2014
926a123
Remove ruby stuff
tusbar Nov 20, 2014
6bc1be6
Remove CSS pipeline from LMS
tusbar Nov 21, 2014
6ca317c
Remove CSS pipeline from Studio
tusbar Nov 21, 2014
da65109
Update Gruntfile to include watch task for all systems
tusbar Nov 21, 2014
1ac849a
Call grunt in paver assets tasks
tusbar Nov 21, 2014
28b99d9
Stop calling clean task in base system Grunt tasks
tusbar Nov 21, 2014
f9e0030
Remove short option for watch option to avoid conflict
tusbar Nov 21, 2014
3ecd9e5
Remove useless readme
tusbar Nov 21, 2014
876a018
Add --production option to update_assets that minifies
tusbar Nov 21, 2014
3eebd47
Add theme compatiblity
tusbar Nov 21, 2014
ce954ba
Compile coffee files using Grunt
tusbar Nov 21, 2014
ea8076d
Remove old SASS arguments
tusbar Nov 21, 2014
cc29f8a
Remove ruby/bundle references in scripts
tusbar Nov 21, 2014
f5b67cf
Remove missing rbenv/bundle references
tusbar Nov 21, 2014
b5893ea
Install grunt-cli and bower locally
tusbar Nov 21, 2014
383e272
Rename system to sys for consistency purposes
tusbar Nov 21, 2014
3b3ecf6
Clean LMS Sass build
tusbar Nov 22, 2014
7d8a356
Fix issues with Gruntfile
tusbar Nov 24, 2014
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 @@ -64,8 +64,8 @@ jscover.log.*
.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.

409 changes: 409 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": "~4.0.2",
"neat": "~1.5.1",
"bi-app-sass": "*",
"font-awesome": "~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 @@ -115,6 +115,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 @@ -295,12 +296,25 @@
STATIC_ROOT = ENV_ROOT / "staticfiles" / git.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 @@ -328,89 +342,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 @@ -429,7 +360,6 @@
'pipeline.compilers.coffee.CoffeeScriptCompiler',
)

PIPELINE_CSS_COMPRESSOR = None
PIPELINE_JS_COMPRESSOR = None

STATICFILES_IGNORE_PATTERNS = (
Expand All @@ -446,11 +376,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 @@ -2,8 +2,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 + 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
@@ -1,10 +1,9 @@
// studio - css architecture
// ====================

@import 'vendor/bi-app/bi-app-ltr'; // set the layout for left to right languages

// libs and resets *do not edit*
@import 'bourbon/bourbon'; // lib - bourbon
@import 'bourbon/dist/bourbon'; // lib - bourbon
@import 'bi-app-sass/bi-app/bi-app-ltr'; // set the layout for left to right languages

// VENDOR + 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 @@ -2,8 +2,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 + 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
@@ -1,10 +1,9 @@
// studio - css architecture
// ====================

@import 'vendor/bi-app/bi-app-ltr'; // set the layout for left to right languages

// libs and resets *do not edit*
@import 'bourbon/bourbon'; // lib - bourbon
@import 'bourbon/dist/bourbon'; // lib - bourbon
@import 'bi-app-sass/bi-app/bi-app-ltr'; // set the layout for left to right languages

// VENDOR + 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 @@ -2,8 +2,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 + 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 @@ -2,8 +2,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 + 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