From 17dac8909e327f28b55e08c6e202004aad8d8e9f Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Sun, 21 Apr 2024 17:05:54 -0300 Subject: [PATCH] Move nanoc.rake to the toplevel rake/tasks/ dir --- Rakefile.rb | 2 +- {twenty-client => rake}/tasks/nanoc.rake | 2 +- twenty-client/Rakefile.rb | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) rename {twenty-client => rake}/tasks/nanoc.rake (93%) diff --git a/Rakefile.rb b/Rakefile.rb index 65764dd..00b7425 100644 --- a/Rakefile.rb +++ b/Rakefile.rb @@ -1,6 +1,6 @@ require "bundler/setup" -load "twenty-client/tasks/nanoc.rake" +load "rake/tasks/nanoc.rake" load "rake/tasks/gem.rake" load "rake/tasks/rubocop.rake" load "rake/tasks/server.rake" diff --git a/twenty-client/tasks/nanoc.rake b/rake/tasks/nanoc.rake similarity index 93% rename from twenty-client/tasks/nanoc.rake rename to rake/tasks/nanoc.rake index c0c90f6..975240f 100644 --- a/twenty-client/tasks/nanoc.rake +++ b/rake/tasks/nanoc.rake @@ -1,6 +1,6 @@ namespace :nanoc do require "bundler/setup" - workdir = File.realpath File.join(__dir__, "..") + workdir = File.realpath File.join(__dir__, "..", "..", "twenty-client") desc "Clean the build/ directory" task :clean do diff --git a/twenty-client/Rakefile.rb b/twenty-client/Rakefile.rb index ef4c778..cdaf0b8 100644 --- a/twenty-client/Rakefile.rb +++ b/twenty-client/Rakefile.rb @@ -1,5 +1,4 @@ require "bundler/setup" -load 'tasks/nanoc.rake' namespace :schema do desc "Generate src/js/types/schema.ts" task :regen do