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
|
|
|
|
sh "bundle exec rubocop"
|
|
|
|
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]
|