Sha256: 75c331724fc3cd781c8978a740e6789381cd52457b16c0cb3df0dad9bd03b2a1
Contents?: true
Size: 1.05 KB
Versions: 9
Compression:
Stored size: 1.05 KB
Contents
require 'unpoly/rails/version' module Unpoly module Tasks SPROCKETS_MANIFESTS = %w( unpoly.js unpoly.css unpoly-migrate.js unpoly-bootstrap3.js unpoly-bootstrap3.css unpoly-bootstrap4.js unpoly-bootstrap4.css unpoly-bootstrap5.js unpoly-bootstrap5.css ) SPROCKETS_SOURCES = %w(lib/assets/javascripts lib/assets/stylesheets) SPROCKETS_OUTPUT_FOLDER = 'dist' NPM_MANIFEST = 'package.json' # VISIBLE_TASKS = %w( # publish:build # publish:clean # publish:commit # publish:release # publish:all # ) module_function def pre_release? Unpoly::Rails::VERSION =~ /rc|beta|pre|alpha/ end def gem_version version = Unpoly::Rails::VERSION if pre_release? version = version.sub(/-/, '.pre.') end version end def dist_paths Dir["#{SPROCKETS_OUTPUT_FOLDER}/**/*.{js,css}"] end def run(command) system(command) or raise "Error running command: #{command}" end extend self end end
Version data entries
9 entries across 9 versions & 1 rubygems