Skip to content
This repository was archived by the owner on Aug 3, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 0 additions & 2 deletions playbooks/roles/tinymce_adsk_plugin/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ tinymce_adsk_plugin_temp_dir: "{{ edxapp_code_dir }}/.temp_tinymce_adsk_plugin"
tinymce_dir: "{{ edxapp_code_dir }}/common/static/js/vendor/tinymce"
tinymce_plugins_dir: "{{ tinymce_dir }}/js/tinymce/plugins"

tinymce_adsk_plugin_minified_js_path: "{{ tinymce_plugins_dir }}/{{ tinymce_adsk_plugin_dir_name }}/plugin.min.js"

edx_jake_package: "{{ edxapp_code_dir }}/vendor_extra/tinymce/JakePackage.zip"

tinymce_themes:
Expand Down
14 changes: 9 additions & 5 deletions playbooks/roles/tinymce_adsk_plugin/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@
file:
state: absent
path: "{{ tinymce_adsk_plugin_temp_dir }}"
- name: Remove minified plugin javascript
file:
state: absent
path: "{{ tinymce_adsk_plugin_minified_js_path }}"
become_user: "{{ edxapp_user }}"

- name: Minify tinymce plugin files
Expand All @@ -26,10 +22,18 @@
src: "{{ edx_jake_package }}"
dest: "{{ tinymce_dir }}"
remote_src: yes
- name: Installs npm dependencies from archive
- name: Clean existing node modules
file:
state: absent
path: "{{ tinymce_dir }}/node_modules"
- name: Install npm dependencies from archive
shell: "npm install"
args:
chdir: "{{ tinymce_dir }}"
- name: Clean existing tinymce js files with jake
shell: "npx jake clean-js"
args:
chdir: "{{ tinymce_dir }}"
- name: Build tinymce with jake
shell: "npx jake minify bundle[themes:{{ tinymce_themes | join(',') }},plugins:{{ tinymce_plugins | join(',') }}]"
args:
Expand Down