| Server IP : 157.230.181.24 / Your IP : 216.73.217.11 Web Server : Apache/2.4.58 (Ubuntu) System : Linux conductive 6.8.0-117-generic #117-Ubuntu SMP PREEMPT_DYNAMIC Tue May 5 19:26:24 UTC 2026 x86_64 User : ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/vhosts/convo/node_modules/bootstrap-sass/tasks/ |
Upload File : |
require 'find'
require 'json'
require 'pathname'
namespace :bower do
find_files = ->(path) {
Find.find(Pathname.new(path).relative_path_from(Pathname.new Dir.pwd).to_s).map do |path|
path if File.file?(path)
end.compact
}
desc 'update main and version in bower.json'
task :generate do
require 'bootstrap-sass'
Dir.chdir Bootstrap.gem_path do
spec = JSON.parse(File.read 'bower.json')
spec['main'] =
find_files.(File.join(Bootstrap.stylesheets_path, '_bootstrap.scss')) +
find_files.(Bootstrap.fonts_path) +
%w(assets/javascripts/bootstrap.js)
spec['version'] = Bootstrap::VERSION
File.open('bower.json', 'w') do |f|
f.puts JSON.pretty_generate(spec)
end
end
end
end