al-quran.reflectslight.io/rake/tasks/ci.rake

23 lines
367 B
Ruby
Raw Normal View History

2024-05-20 04:24:47 +02:00
# frozen_string_literal: true
2024-07-29 04:55:06 +02:00
namespace :ci do
task :rubocop do
2024-08-23 01:14:17 +02:00
sh "bundle exec rubocop -c etc/rubocop.yml"
2024-07-29 04:55:06 +02:00
end
task :eslint do
2024-08-22 20:39:55 +02:00
sh "npm run eslint"
2024-07-29 04:55:06 +02:00
end
2024-05-24 20:56:52 +02:00
2024-07-29 04:55:06 +02:00
task :tsc do
sh "npm run tsc"
end
2024-05-24 20:56:52 +02:00
2024-07-29 04:55:06 +02:00
task :env do
ENV["buildenv"] = "production"
end
2024-05-20 04:24:47 +02:00
end
2024-07-29 04:55:06 +02:00
desc "Run CI tasks"
task ci: %i[ci:env ci:rubocop ci:eslint ci:tsc nanoc:clean nanoc:build]