Commit c5e63c98 authored by Andreas Knote's avatar Andreas Knote

Rakefile: explicitly only install dev dependencies for node, add comments, and...

Rakefile: explicitly only install dev dependencies for node, add comments, and create gem file with explicit filename "hci-theme.gem"
parent ba33f0a0
......@@ -8,9 +8,13 @@ require 'rake'
task :default => [:build]
task :build do
print 'Building HCI-Theme'
system 'npm install'
print 'Packing HCI-Theme'
# Webpack JS dependencies (partially extracted from node packages)
system 'npm install --dev-only'
system 'npx webpack -p --config webpack.config.js --mode=production'
# Add (S)CSS and other resources
FileUtils.mkdir_p('_sass')
FileUtils.copy_entry 'node_modules/slick-carousel', '_sass/slick-carousel'
FileUtils.mkdir_p('assets/css/fonts')
......@@ -35,5 +39,6 @@ CLOBBER << "_sass/slick-carousel"
CLEAN << "node_modules"
task :gem => [:build] do
system "gem build hci-theme.gemspec"
print 'Building HCI-Theme gem'
system "gem build hci-theme.gemspec -o hci-theme.gem"
end
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