Sha256: 217ba5989b542ea0dddf1fb02ee50261cbed71c1f6ead18ff74519cd38de4d11

Contents?: true

Size: 1.14 KB

Versions: 15

Compression:

Stored size: 1.14 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', '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

15 entries across 15 versions & 1 rubygems

Version Path
joosy-1.2.0.alpha.22 src/joosy/generators/project/standalone.coffee
joosy-1.2.0.alpha.21 src/joosy/generators/project/standalone.coffee
joosy-1.2.0.alpha.20 src/joosy/generators/project/standalone.coffee
joosy-1.2.0.alpha.19 src/joosy/generators/project/standalone.coffee
joosy-1.2.0.alpha.18 src/joosy/generators/project/standalone.coffee
joosy-1.2.0.alpha.17 src/joosy/generators/project/standalone.coffee
joosy-1.2.0.alpha.16 src/joosy/generators/project/standalone.coffee
joosy-1.2.0.alpha.15 src/joosy/generators/project/standalone.coffee
joosy-1.2.0.alpha.14 src/joosy/generators/project/standalone.coffee
joosy-1.2.0.alpha.13 src/joosy/generators/project/standalone.coffee
joosy-1.2.0.alpha.12 src/joosy/generators/project/standalone.coffee
joosy-1.2.0.alpha.11 src/joosy/generators/project/standalone.coffee
joosy-1.2.0.alpha.10 src/joosy/generators/project/standalone.coffee
joosy-1.2.0.alpha.9 src/joosy/generators/project/standalone.coffee
joosy-1.2.0.alpha.8 src/joosy/generators/project/standalone.coffee