Sha256: dbef65106b9ff1e00ad3cfc10410797451b4a207a277008c5fd53db8cd5b0f28

Contents?: true

Size: 1.07 KB

Versions: 3

Compression:

Stored size: 1.07 KB

Contents

@Base = require '../base' if module?

class ProjectStandalone extends @Base
  constructor: (@name, destination, templates) ->
    destination = @join process.cwd(), @name  if !destination? && process?
    super(destination, templates)

  generate: ->
    @file ['public', '.gitkeep']
    @file ['vendor', '.gitkeep']

    @copy ['application', 'standalone', '.gitignore'],           ['.gitignore']
    @copy ['application', 'standalone', 'bower.json'],           ['bower.json']
    @copy ['application', 'standalone', 'Gruntfile.coffee'],     ['Gruntfile.coffee']
    @copy ['application', 'standalone', 'Procfile'],             ['Procfile']
    @copy ['application', 'standalone', 'source', 'index.haml'], ['source', 'index.haml']

    @copy ['application', 'standalone', 'stylesheets', 'application.styl'],
                                       ['stylesheets', 'application.styl']

    @template ['application', 'standalone', 'package.json'], ['package.json'],
      joosy_version: @version()

    @actions

if module?
  module.exports = ProjectStandalone
else
  @Generator = ProjectStandalone

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
joosy-1.2.0.alpha.7 src/joosy/generators/project/standalone.coffee
joosy-1.2.0.alpha.6 src/joosy/generators/project/standalone.coffee
joosy-1.2.0.alpha.5 src/joosy/generators/project/standalone.coffee