Class: EmberCli::HerokuGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/ember/heroku/heroku_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_package_json_file ⇒ Object



7
8
9
# File 'lib/generators/ember/heroku/heroku_generator.rb', line 7

def copy_package_json_file
  template "package.json.erb", "package.json"
end

#identify_as_pnpm_project ⇒ Object



17
18
19
20
21
# File 'lib/generators/ember/heroku/heroku_generator.rb', line 17

def identify_as_pnpm_project
  if EmberCli.any?(&:pnpm?)
    template "pnpm-lock.yaml.erb", "pnpm-lock.yaml"
  end
end

#identify_as_yarn_project ⇒ Object



11
12
13
14
15
# File 'lib/generators/ember/heroku/heroku_generator.rb', line 11

def identify_as_yarn_project
  if EmberCli.any?(&:yarn?)
    template "yarn.lock.erb", "yarn.lock"
  end
end