Sha256: 2a6f1665d6a9bfd49b9723bf15514476a07831d2f502de57892e20ffe553e331

Contents?: true

Size: 1.22 KB

Versions: 7

Compression:

Stored size: 1.22 KB

Contents

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

#
# Possible options:
#
#   name: name of project
#
class ProjectStandalone extends @Base
  constructor: (@options, destination, templates) ->
    destination = @join process.cwd(), @options.name  if !destination? && process?
    super(@options, 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', 'haml', 'index.haml'], 
                                       ['source', 'haml', 'index.haml']

    @copy ['application', 'standalone', 'source', 'stylesheets', 'application.styl'],
                                       ['source', '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

7 entries across 7 versions & 1 rubygems

Version Path
joosy-1.2.0.alpha.41 src/joosy/generators/project/standalone.coffee
joosy-1.2.0.alpha.38 src/joosy/generators/project/standalone.coffee
joosy-1.2.0.alpha.37 src/joosy/generators/project/standalone.coffee
joosy-1.2.0.alpha.36 src/joosy/generators/project/standalone.coffee
joosy-1.2.0.alpha.35 src/joosy/generators/project/standalone.coffee
joosy-1.2.0.alpha.34 src/joosy/generators/project/standalone.coffee
joosy-1.2.0.alpha.33 src/joosy/generators/project/standalone.coffee