metamaps--metamaps/lib/tasks/extensions.rake
2016-10-04 17:59:13 +08:00

11 lines
292 B
Ruby

# frozen_string_literal: true
namespace :assets do
task :js_compile do
system 'npm install'
system 'npm run build'
system 'bin/build-apidocs.sh' if ENV['MAILER_DEFAULT_URL'] == 'metamaps.herokuapp.com'
end
end
Rake::Task[:'assets:precompile'].enhance([:'assets:js_compile'])