lib/jekyll/typescript/manager.rb
# Once all the site files have been processed, compile and replace the content
# of any typescript files.
#
Once all the site files have been processed, compile and replace the content
of any typescript files.
Once all the site files have been processed compile and replace the content of any typescript files .
def post_render(*args)
        setup
        Jekyll.logger.debug('Typescript', 'clearing out temporary build directory.')
        FileUtils.rm_rf(Dir.glob(File.join(temp_dir, '*')))
        populate_temp_dir
        @pages.select.each do |page|
          next unless typescript_ext? page.ext
          command = compile_command(in_temp_dir(page.relative_path))
          Jekyll.logger.debug('Typescript') {
            "running compile command: #{Shellwords.join(command[1..])}" }
          compile_output = IO.popen(command, &:read).chomp 
          unless $?.success?
            puts compile_output
            raise SyntaxError, "typescript failed to convert: #{page.path}\n"
          end
          page.output = File.read(page_to_output_path(page))
        end
      end
def post_render ( * args ) setup Jekyll . logger . debug ( 'Typescript' , 'clearing out temporary build directory.' ) FileUtils . rm_rf ( Dir . glob ( File . join ( temp_dir , '*' ) ) ) populate_temp_dir @pages . select . each do | page | next unless typescript_ext? page . ext command = compile_command ( in_temp_dir ( page . relative_path ) ) Jekyll . logger . debug ( 'Typescript' ) { "running compile command: #{Shellwords.join(command[1..])}" } compile_output = IO . popen ( command , & :read ) . chomp unless $? . success? puts compile_output raise SyntaxError , "typescript failed to convert: #{page.path}\n" end page . output = File . read ( page_to_output_path ( page ) ) end end
Once all the site files have been processed, compile and replace the content
of any typescript files.
Once all the site files have been processed compile and replace the content of any typescript files .
# spawn a cmd & read process output.
args
<not_specific>