Commit b142f4c1 by Tyler Hallada Committed by GitHub

Update Insights config for webpack (#3965)

* Insights: webpack instead of r.js, remove bower

* Use node 8 for insights

* Define NPM version to 5.0.4

* Remove extraneous space in nodeenv command

* Revert back to common node & npm version

* webpack-prod.config.js -> webpack.prod.config.js

* Do not run django compress

* Try using latest node version again (8.1.3)

* Revert "Try using latest node version again (8.1.3)"

This reverts commit 3ce0ea4a8181427defe18a99aed8280e8627f731.

* Update CHANGELOG
parent c2f6e267
......@@ -326,3 +326,8 @@
- Role: edxapp
- Added `EDXAPP_BASE_COOKIE_DOMAIN` for sharing cookies across edx domains.
- Role: insights
- Removed `bower install` task
- Replaced r.js build task with webpack build task
- Removed `./maange.py compress` task
\ No newline at end of file
......@@ -63,16 +63,6 @@
- install:app-requirements
environment: "{{ insights_environment }}"
- name: install bower dependencies
shell: ". {{ insights_venv_dir }}/bin/activate && . {{ insights_nodeenv_bin }}/activate && {{ insights_node_bin }}/bower install --production --config.interactive=false"
args:
chdir: "{{ insights_code_dir }}"
become_user: "{{ insights_user }}"
tags:
- install
- install:app-requirements
- name: migrate
shell: "DB_MIGRATION_USER='{{ COMMON_MYSQL_MIGRATE_USER }}' DB_MIGRATION_PASS='{{ COMMON_MYSQL_MIGRATE_PASS }}' {{ insights_venv_dir }}/bin/python {{ insights_manage }} migrate --noinput"
args:
......@@ -84,8 +74,8 @@
- migrate
- migrate:db
- name: run r.js optimizer
shell: ". {{ insights_nodeenv_bin }}/activate && {{ insights_node_bin }}/r.js -o build.js"
- name: run webpack
shell: ". {{ insights_nodeenv_bin }}/activate && {{ insights_node_bin }}/webpack --config webpack.prod.config.js"
args:
chdir: "{{ insights_code_dir }}"
become_user: "{{ insights_user }}"
......@@ -101,7 +91,6 @@
environment: "{{ insights_environment }}"
with_items:
- "collectstatic --noinput"
- "compress"
tags:
- assets
- assets:gather
......
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