Sha256: 97a47c84111ec1f594d2f245b15aafd4c877f1f8d9d7cb762cdc7273a68b3f9d

Contents?: true

Size: 526 Bytes

Versions: 9

Compression:

Stored size: 526 Bytes

Contents

require "rails/generators"

module ReactOnRails
  module Generators
    class JsLintersGenerator < Rails::Generators::Base
      hide!
      source_root File.expand_path("../templates", __FILE__)

      # NOTE: linter modules are included via template in base/base/client/package.json.tt

      def copy_js_linter_config_files
        base_path = "js_linters/"
        %w(client/.eslintrc
           client/.eslintignore
           client/.jscsrc).each { |file| copy_file(base_path + file, file) }
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
react_on_rails-2.0.0.rc.1 lib/generators/react_on_rails/js_linters_generator.rb
react_on_rails-2.0.0.beta.3 lib/generators/react_on_rails/js_linters_generator.rb
react_on_rails-2.0.0.beta.2 lib/generators/react_on_rails/js_linters_generator.rb
react_on_rails-1.2.0 lib/generators/react_on_rails/js_linters_generator.rb
react_on_rails-1.2.0.rc1 lib/generators/react_on_rails/js_linters_generator.rb
react_on_rails-1.1.1 lib/generators/react_on_rails/js_linters_generator.rb
react_on_rails-1.1.0 lib/generators/react_on_rails/js_linters_generator.rb
react_on_rails-1.0.3 lib/generators/react_on_rails/js_linters_generator.rb
react_on_rails-1.0.2 lib/generators/react_on_rails/js_linters_generator.rb