Commit 1daeffa5 by Clinton Blackburn

Removed RequireJS

ECOM-5776
parent f4a0736c
......@@ -13,7 +13,6 @@ help: ## Display this help message
@perl -nle'print $& if m{^[\.a-zA-Z_-]+:.*?## .*$$}' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m %-25s\033[0m %s\n", $$1, $$2}'
static: ## Gather all static assets for production
$(NODE_BIN)/r.js -o build.js
python manage.py collectstatic --noinput
python manage.py compress -v3 --force
......
/* jshint asi:true, expr:true */
({
mainConfigFile: 'course_discovery/static/js/config.js',
baseUrl: 'course_discovery/static',
dir: 'course_discovery/static/build',
removeCombined: true,
findNestedDependencies: true,
// Disable all optimization. django-compressor will handle that for us.
optimizeCss: false,
optimize: 'none',
normalizeDirDefines: 'all',
skipDirOptimize: true,
preserveLicenseComments: true,
modules: [
{
name: 'js/config'
},
]
})
require.config({
baseUrl: '/static/',
paths: {},
shim: {}
});
......@@ -6,8 +6,7 @@
"url": "git://github.com/edx/course-discovery"
},
"dependencies": {
"bower": "^1.7.9",
"requirejs": "^2.2.0"
"bower": "^1.8.0"
},
"devDependencies": {
"gulp": "^3.9.1",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment