Sha256: 56aa41c376f7ba6b805452e35ed609a1b345f78511ff3aa3c778680d4508f196
Contents?: true
Size: 1.15 KB
Versions: 6
Compression:
Stored size: 1.15 KB
Contents
require 'rake' module RevealCK module Builders # Given a copy of reveal.js, this class knows which files are # vital to the presentation. class RevealJsFiles include Retrieve attr_reader :dir def initialize(args) @dir = retrieve(:dir, args) end def files [] .concat(css) .concat(js) .concat(lib) .concat(plugin) .concat(meta) .concat(index) end private def css FileList["#{dir}/css/reveal.css", "#{dir}/css/print/*", "#{dir}/css/theme/*.css"] end def js FileList["#{dir}/js/reveal.js"] end def lib FileList["#{dir}/lib/**/*.css", "#{dir}/lib/font/*", "#{dir}/lib/**/*.js"] end def plugin FileList["#{dir}/plugin/**/*.js", "#{dir}/plugin/**/*.html"] end def meta FileList["#{dir}/README.md", "#{dir}/LICENSE", "#{dir}/package.json"] end def index FileList["#{dir}/index.html"] end end end end
Version data entries
6 entries across 6 versions & 1 rubygems