Rakefile in goodcheck-2.4.3 vs Rakefile in goodcheck-2.4.4

- old
+ new

@@ -17,17 +17,31 @@ namespace :docs do desc "Install dependencies for the documentation website" task :install_deps do on_docs_dir do - sh "yarn install" + sh "yarn", "install" end end desc "Build the documentation website" task :build => [:install_deps] do on_docs_dir do - sh "yarn run build" + sh "yarn", "run", "build" + end + end + + desc "Update the version of the documentation website" + task :update_version => [:install_deps] do + on_docs_dir do + sh "yarn", "run", "version", Goodcheck::VERSION + end + end + + desc "Publish the documentation website" + task :publish => [:build] do + on_docs_dir do + sh "yarn", "run", "publish-gh-pages" end end def on_docs_dir(&block) Dir.chdir "docusaurus/website", &block