Sha256: bc2997800eb8901ac802b9acd4190d9b93396791a612c5d71450f346860cfc58
Contents?: true
Size: 1.14 KB
Versions: 3
Compression:
Stored size: 1.14 KB
Contents
require "generators/swift/version" require 'minke/generators/register' require 'minke/generators/config' module Minke module Generators module Swift # Register the template with minke config = Minke::Generators::Config.new config.name = 'minke-generator-swift' config.template_location = File.expand_path(File.dirname(__FILE__)) + '/swift/scaffold' config.build_settings = Minke::Generators::BuildSettings.new config.build_settings.build_commands = Minke::Generators::BuildCommands.new.tap do |bc| bc.fetch = [['/bin/bash', '-c', 'swift package fetch'], ['/bin/bash', '-c', 'find Packages/ -type d -name Tests | xargs rm -rf'], ['/bin/bash', '-c', 'swift package generate-xcodeproj']] bc.build = [['/bin/bash', '-c', 'swift build -Xcc -fblocks']] bc.test = [['/bin/bash', '-c', 'swift test']] end config.build_settings.docker_settings = Minke::Generators::DockerSettings.new.tap do |bs| bs.image = 'ibmcom/kitura-ubuntu' bs.binds = ["<%= src_root %>/src:/src"] bs.working_directory = '/src' end Minke::Generators.register config end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
minke-generator-swift-0.1.7 | lib/generators/swift.rb |
minke-generator-swift-0.1.6 | lib/generators/swift.rb |
minke-generator-swift-0.1.4 | lib/generators/swift.rb |