Sha256: 767dabecbe9dcd73c52cb4a6c5f6a472cb51b243394f1956629eb09058cbb442

Contents?: true

Size: 1.13 KB

Versions: 6

Compression:

Stored size: 1.13 KB

Contents

require "bridgetown"

Bridgetown.load_tasks

#
# Standard set of tasks, which you can customize if you wish:
#
desc "Build the Bridgetown site for deployment"
task :deploy => [:clean, "frontend:build"] do
  Bridgetown::Commands::Build.start
end

desc "Build the site in a test environment"
task :test do
  ENV["BRIDGETOWN_ENV"] = "test"
  Bridgetown::Commands::Build.start
end

desc "Runs the clean command"
task :clean do
  Bridgetown::Commands::Clean.start
end

namespace :frontend do
  desc "Build the frontend with Webpack for deployment"
  task :build do
    sh "yarn run webpack-build"
  end

  desc "Watch the frontend with Webpack during development"
  task :dev do
    sh "yarn run webpack-dev --color"
  rescue Interrupt
  end
end

#
# Add your own Rake tasks here! You can use `environment` as a prerequisite
# in order to write automations or other commands requiring a loaded site.
#
# task :my_task => :environment do
#   puts site.root_dir
#   automation do
#     say_status :rake, "I'm a Rake tast =) #{site.config.url}"
#   end
# end

# Run rake without specifying any command to execute a deploy build by default.
task default: :deploy

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bridgetown-core-1.0.0.alpha6 lib/site_template/Rakefile
bridgetown-core-1.0.0.alpha5 lib/site_template/Rakefile
bridgetown-core-1.0.0.alpha4 lib/site_template/Rakefile
bridgetown-core-1.0.0.alpha3 lib/site_template/Rakefile
bridgetown-core-1.0.0.alpha2 lib/site_template/Rakefile
bridgetown-core-1.0.0.alpha1 lib/site_template/Rakefile