• Jump To … +
    backer-util.coffee badge-util.coffee history-util.coffee install-util.coffee license-util.coffee projectz-util.coffee projectz.litcoffee
  • install-util.coffee

  • ¶
    module.exports = installUtil =
    
    	getInstallInstructions: (opts) ->
    		result = "## Install"
    
    		if opts.packages.package
    			result += """
    				\n
  • ¶

    Node, Browserify

    				- Use: `require('#{opts.name}')`
    				- Install: `npm install --save #{opts.name}`
  • ¶

    Ender

    				- Use: `require('#{opts.name}')`
    				- Install: `ender add #{opts.name}`
    				"""
    
    		if opts.packages.component
    			result += """
    				\n
  • ¶

    Component

    				- Use: `require('#{opts.name}')`
    				- Install: `component install #{opts.repo}`
    				"""
    
    		if opts.packages.bower
    			result += """
    				\n
  • ¶

    Bower

    				- Use: `require('#{opts.name}')`
    				- Install: `bower install #{opts.name}`
    				"""
    
    		return result