Sha256: f56ff5a027b24ab9eb2c4f5483a4ec54ba0faf728f6fe09b43208b1a266bdd04
Contents?: true
Size: 1.25 KB
Versions: 1
Compression:
Stored size: 1.25 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 -c release -Xcc -fblocks -Xlinker -rpath -Xlinker .build/release']] bc.test = [['/bin/bash', '-c', 'swift test']] end config.build_settings.docker_settings = Minke::Generators::DockerSettings.new.tap do |bs| bs.image = 'nicholasjackson/minke-generator-swift' bs.binds = ["<%= src_root %>/src:/src"] bs.working_directory = '/src' end Minke::Generators.register config end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
minke-generator-swift-0.5 | lib/generators/swift.rb |