Sha256: 40cb06f74dbe540ef052f22ba722e855ba17a72d4e6c5e0e70e0fac3cbc7aacd

Contents?: true

Size: 337 Bytes

Versions: 18

Compression:

Stored size: 337 Bytes

Contents

class CustomProjectGenerator < BPM::ProjectGenerator

  def require_path
    "#{name}/main.js"
  end

  private

    def create_files
      empty_directory "lib"
      inside "lib" do
        template "main.js"
      end

      template "app.js"
    end

end

BPM.register_generator('custom_generator', :project, CustomProjectGenerator)

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
bpm-1.0.0 spec/fixtures/packages/custom_generator/templates/project_generator.rb
bpm-1.0.0.rc.4 spec/fixtures/packages/custom_generator/templates/project_generator.rb
bpm-1.0.0.rc.3 spec/fixtures/packages/custom_generator/templates/project_generator.rb
bpm-1.0.0.rc.2 spec/fixtures/packages/custom_generator/templates/project_generator.rb
bpm-1.0.0.rc.1 spec/fixtures/packages/custom_generator/templates/project_generator.rb
bpm-1.0.0.beta.13 spec/fixtures/packages/custom_generator/templates/project_generator.rb
bpm-1.0.0.beta.12 spec/fixtures/packages/custom_generator/templates/project_generator.rb
bpm-1.0.0.beta.11 spec/fixtures/packages/custom_generator/templates/project_generator.rb
bpm-1.0.0.beta.10 spec/fixtures/packages/custom_generator/templates/project_generator.rb
bpm-1.0.0.beta.9 spec/fixtures/packages/custom_generator/templates/project_generator.rb
bpm-1.0.0.beta.8 spec/fixtures/packages/custom_generator/templates/project_generator.rb
bpm-1.0.0.beta.6 spec/fixtures/packages/custom_generator/templates/project_generator.rb
bpm-1.0.0.beta.5 spec/fixtures/packages/custom_generator/templates/project_generator.rb
bpm-1.0.0.beta.4 spec/fixtures/packages/custom_generator/templates/project_generator.rb
bpm-0.1.4 spec/fixtures/custom_generator/templates/project_generator.rb
bpm-0.1.3 spec/fixtures/custom_generator/templates/project_generator.rb
bpm-0.1.2 spec/fixtures/custom_generator/templates/project_generator.rb
bpm-0.1.0 spec/fixtures/custom_generator/templates/project_generator.rb