Sha256: a17c21733685eb542d36e3ead8c811c8950947dfba72499be184a6ce84d723e1
Contents?: true
Size: 1.17 KB
Versions: 3
Compression:
Stored size: 1.17 KB
Contents
require "bridgetown" Bridgetown.load_tasks # Run rake without specifying any command to execute a deploy build by default. task default: :deploy # # 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 <%- if frontend_bundling_option == "esbuild" -%> namespace :frontend do desc "Build the frontend with esbuild for deployment" task :build do sh "npm run esbuild" end desc "Watch the frontend with esbuild during development" task :dev do sh "npm run esbuild-dev" rescue Interrupt end 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
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bridgetown-core-2.0.0.beta3 | lib/site_template/Rakefile.erb |
bridgetown-core-2.0.0.beta2 | lib/site_template/Rakefile.erb |
bridgetown-core-2.0.0.beta1 | lib/site_template/Rakefile.erb |