"use strict";

var Recipe = require('./recipe');

var steps = {
    'deploy to github': require('./steps/deploy-to-github.js'),
    'deploy to s3': require('./steps/deploy-to-s3.js'),
    'less': require('./steps/less'),
    'js': require('./steps/browserify'),
    'watch': require('./steps/watch'),
    'dev server': require('./steps/dev-server.js'),
    'pages': require('./steps/pages.js'),
    'js config': require('./steps/js-config.js'),
    'write bootstrap': require('./steps/write-bootstrap.js'),
    'make build dir': require('./steps/make-build-dir'),
    'copy includes': require('./steps/copy-includes')
};

module.exports = function(){
    return new Recipe()
        .step('make build dir', steps['make build dir'])
        .step('copy includes', steps['copy includes'])
        .task('build', ['make build dir', 'copy includes']);
};

module.exports.Recipe = Recipe;
module.exports.Cookbook = require('./cookbook');

module.exports.steps = steps;

// mott quickstart ->
 // * set up package.json
 // * add index.html
 // * add simple mott.js
module.exports.starter = function(){
    return module.exports('mott starter')
        .step('less', steps.less)
        .step('js', steps.js)
        .step('watch', steps.watch)
        .step('run', steps['dev server'])
        .step('pages', steps.pages)
        .step('js config', steps['js config'])

        .task('build', ['js config', 'js', 'less', 'pages'])
        .task('run', ['build', 'run', 'watch'])

        .provide('config', {
            'url': 'http://localhost:8080'
        });
};

// var recipe = mott.recipe('single-page');
// New mini:
// var mott = require('mott');
// new mott.Cookbook({apps: {'web': mott.recipe('single-pager').configure()}}).cli();

// Ideal mini?
// require('mott').cli();

"use strict";

var Recipe = require('./recipe');

var steps = {
    'deploy to github': require('./steps/deploy-to-github.js'),
    'deploy to s3': require('./steps/deploy-to-s3.js'),
    'less': require('./steps/less'),
    'js': require('./steps/browserify'),
    'watch': require('./steps/watch'),
    'dev server': require('./steps/dev-server.js'),
    'pages': require('./steps/pages.js'),
    'js config': require('./steps/js-config.js'),
    'write bootstrap': require('./steps/write-bootstrap.js'),
    'make build dir': require('./steps/make-build-dir'),
    'copy includes': require('./steps/copy-includes')
};

module.exports = function(){
    return new Recipe()
        .task('build', [steps['make build dir'], steps['copy includes']]);
};

module.exports.Recipe = Recipe;
module.exports.Cookbook = require('./cookbook');

module.exports.steps = steps;

// mott quickstart ->
 // * set up package.json
 // * add index.html
 // * add simple mott.js
module.exports.starter = function(){
    return module.exports('mott starter')
        .task('build', [steps['js config'], steps.js, steps.less, steps.pages])
        .task('run', ['build', steps['dev server'], steps.watch])

        .provide('config', {
            'url': 'http://localhost:8080'
        });
};

// var recipe = mott.recipe('single-page');
// New mini:
// var mott = require('mott');
// new mott.Cookbook({apps: {'web': mott.recipe('single-pager').configure()}}).cli();

// Ideal mini?
// require('mott').cli();

Update built in recipes for no more step registry