dolphins7.skeleton/twenty-client/Rakefile.rb

13 lines
314 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
2024-02-18 00:41:35 +01:00
path = File.join "..", "twenty-server"
2024-01-10 02:13:17 +01:00
Bundler.with_unbundled_env {
Dir.chdir(path) { sh "bundle exec rake schema:regen" }
}
sh "npm exec graphql-codegen"
end
end