dolphins7.skeleton/twenty-client/Rakefile.rb

13 lines
315 B
Ruby
Raw Normal View History

2024-01-10 02:13:17 +01:00
require "bundler/setup"
load 'tasks/nanoc.rake'
2024-01-10 02:13:17 +01:00
namespace :schema do
desc "Generate src/js/types/schema.ts"
task :regen do
path = File.join "..", "twenty-backend"
Bundler.with_unbundled_env {
Dir.chdir(path) { sh "bundle exec rake schema:regen" }
}
sh "npm exec graphql-codegen"
end
end