1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2025-12-13 00:33:49 +00:00

Refactor generators to CoffeeScript classes.

This commit is contained in:
hacksalot
2016-02-02 13:38:12 -05:00
parent 63a0c78fc5
commit f72b02a0f4
26 changed files with 276 additions and 183 deletions

View File

@@ -1,25 +1,19 @@
###*
Definition of the BaseGenerator class.
@module base-generator.js
@module generators/base-generator
@license MIT. See LICENSE.md for details.
###
# Use J. Resig's nifty class implementation
Class = require '../utils/class'
###*
The BaseGenerator class is the root of the generator hierarchy. Functionality
common to ALL generators lives here.
###
BaseGenerator = module.exports = Class.extend
module.exports = class BaseGenerator
###* Base-class initialize. ###
init: ( outputFormat ) -> @format = outputFormat
constructor: ( @format ) ->
###* Status codes. ###
codes: require '../core/status-codes'