Sha256: 41a696dea65e705f8ea34ffe17687bdc0cb9de4f4fae0c21e750637d5a490a91

Contents?: true

Size: 1.73 KB

Versions: 9

Compression:

Stored size: 1.73 KB

Contents

module Pantograph
  class SetupAngular < Setup
    # attr_accessor :package_name

    def setup_angular
      # self.platform = :generic

      welcome_to_pantograph

      self.pantfile_content = pantfile_template_content

      fetch_information

      PantographCore::PantographFolder.create_folder!

      self.append_lane([
                         "desc 'Runs all the  tests'",
                         "lane :test do",
                         "  ng(task: 'clean test')",
                         "end"
                       ])

      self.append_lane([
                         "desc 'Publish new version to Artifactory'",
                         "lane :build do",
                         "  ng(task: 'clean build')",
                         "end"
                       ])

      self.append_lane([
                         "desc 'Deploy a new version to Artifactory'",
                         "lane :publish do",
                         "  ng(task: 'clean artifactoryPublish')",
                         "end"
                       ])

      self.lane_to_mention = "test"

      finish_up
    end

    def fetch_information
      # UI.message('')
      # UI.message("To avoid re-entering your package name and issuer every time you run pantograph, we'll store those in a so-called Appfile.")

      # self.package_name = UI.input("Package Name (com.krausefx.app): ")
      # puts("")
      # puts("To automatically upload builds and metadata to Google Play, pantograph needs a service account json secret file".yellow)
      # puts("Feel free to press Enter at any time in order to skip providing pieces of information when asked")
    end

    def finish_up
      # self.pantfile_content.gsub!(":generic", ":generic")

      super
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pantograph-0.1.19 pantograph/lib/pantograph/setup/setup_angular.rb
pantograph-0.1.17 pantograph/lib/pantograph/setup/setup_angular.rb
pantograph-0.1.16 pantograph/lib/pantograph/setup/setup_angular.rb
pantograph-0.1.15 pantograph/lib/pantograph/setup/setup_angular.rb
pantograph-0.1.14 pantograph/lib/pantograph/setup/setup_angular.rb
pantograph-0.1.13 pantograph/lib/pantograph/setup/setup_angular.rb
pantograph-0.1.12 pantograph/lib/pantograph/setup/setup_angular.rb
pantograph-0.1.10 pantograph/lib/pantograph/setup/setup_angular.rb
pantograph-0.1.8 pantograph/lib/pantograph/setup/setup_angular.rb