Commit fdff3b80 authored by Andreas Knote's avatar Andreas Knote
Browse files

Rakefile: disable optional dependencies for node, adds comments

parent 184ca815
......@@ -8,13 +8,16 @@ require 'rake'
task :default => [:build]
task :build do
print 'Packing HCI-Theme'
# Webpack JS dependencies (partially extracted from node packages)
system 'npm install --dev-only'
puts '[Web-Packing HCI-Theme]'
system 'npm install --no-optional'
system 'npx webpack -p --config webpack.config.js --mode=production'
# Add (S)CSS and other resources
puts '[Gathering assets from Node]'
FileUtils.copy_entry 'node_modules/slick-carousel', '_sass/slick-carousel'
......@@ -39,6 +42,6 @@ CLOBBER << "_sass/slick-carousel"
CLEAN << "node_modules"
task :gem => [:build] do
print 'Building HCI-Theme gem'
puts '[Building HCI-Theme gem]'
system "gem build hci-theme.gemspec -o hci-theme.gem"
Supports Markdown
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