canvas-lms/script/nuke_node.sh

14 lines
414 B
Bash
Executable File

#!/bin/bash
set -e
echo "removing node_modules and any cached/generated artifacts of any JS related files..."
git clean packages public spec/javascripts node_modules coverage-js gems/*/node_modules app/coffeescripts packages/*/node_modules -Xfd
rm -rfv gems/plugins/*/node_modules
echo "yarn installing..."
yarn install
echo "everything's clean, now compiling assets..."
bundle exec rake canvas:compile_assets