nuke node so you can compile assets

Change-Id: Ifec01be0eb6534f7d4325c2761ee5a00d76d0dcc
Reviewed-on: https://gerrit.instructure.com/100510
Tested-by: Jenkins
QA-Review: August Thornton <august@instructure.com>
Reviewed-by: August Thornton <august@instructure.com>
Product-Review: Nathan Mills <nathanm@instructure.com>
This commit is contained in:
Nathan Mills 2017-01-25 15:28:14 -07:00
parent f01e450c7c
commit 25154ed4ce
1 changed files with 17 additions and 0 deletions

17
script/nuke_node.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
echo "removing node_modules and any cached/generated artifacts of any JS related files..."
git clean client_apps public spec/javascripts node_modules coverage-js gems/*/node_modules -Xfd
set -e
npm cache clean
echo "npm installing..."
npm install
echo "npm gems installing..."
script/gem_npm install
echo "everything's clean, now compiling assets..."
bundle exec rake canvas:compile_assets