metamaps--metamaps/lib/tasks/extensions.rake

11 lines
260 B
Ruby
Raw Permalink Normal View History

2016-09-24 03:00:46 +00:00
# frozen_string_literal: true
namespace :assets do
task :js_compile do
2016-09-24 03:00:46 +00:00
system 'npm install'
system 'npm run build'
2016-10-04 15:43:42 +00:00
system 'bin/build-apidocs.sh' if Rails.env.production?
end
end
Rake::Task[:'assets:precompile'].enhance([:'assets:js_compile'])