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

18 lines
279 B
Ruby
Raw Normal View History

2024-05-20 04:24:47 +02:00
# frozen_string_literal: true
desc "Run CI tasks"
task :ci do
2024-05-24 20:56:52 +02:00
##
# format
2024-05-20 04:24:47 +02:00
sh "bundle exec rubocop"
sh "npm exec eslint -- src/js/"
2024-05-24 20:56:52 +02:00
##
# tsc
sh "npm run tsc"
##
# build
2024-05-20 04:47:51 +02:00
Bundler.with_original_env { sh "buildenv=production rake nanoc:clean nanoc:build" }
2024-05-20 04:24:47 +02:00
end