Commit 93c90a7c authored by Evaryont's avatar Evaryont

add install_yarn task to build steps

parent 86368179
Pipeline #32 failed with stage
in 2 minutes and 5 seconds
......@@ -75,13 +75,18 @@ task :dirty_git do
desc "Build the middleman site"
task :build => ['build:syntax_css'] do
task :build => ['build:syntax_css', 'build:install_yarn'] do
cd File.expand_path('..', __FILE__)
sh "bundle exec middleman build --clean --verbose --environment=production"
cp '.tmp/dist/stats.json', 'build/assets/'
namespace :build do
task :install_yarn do
puts 'Installing node dependencies'
sh 'yarn install'
task :syntax_css do
puts 'Creating syntax.css from rouge theme.'
require 'rouge'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment