Exemplo n.º 1
0
function startWorkshop() {
  workshopper({
      name        : 'node-debug-school'
    , title       : 'NODE.JS DEBUGGING IN PRODUCTION'
    , subtitle    : subtitle
    , exerciseDir : fullPath('./exercises/')
    , appDir      : __dirname
    , helpFile    : fullPath('help.txt')
    , footerFile  : fullPath('footer.md')
  });
}
#!/usr/bin/env node

const workshopper = require('workshopper'),
      path        = require('path')

function fpath (f) {
    return path.join(__dirname, f)
}

workshopper({
    name        : 'demo-workshopper',
    title       : 'Demo Workshopper',
    subtitle    : 'Learn how to create a workshopper lesson',
    appDir      : __dirname,
    menuItems   : [],
    exerciseDir : fpath('./exercises/')
})
#!/usr/bin/env node

const workshopper = require('workshopper')
    , path        = require('path')
    , credits     = require('./credits')
    , menu        = require('./exercises/menu')

    , name        = 'learnyounode'
    , title       = 'APRENDA O NODE.JS PARA A MAIS PLENA VITÓRIA!'
    , subtitle    = '\x1b[23mEscolha um exercício e pressione \x1b[3mEnter\x1b[23m para começar'


function fpath (f) {
  return path.join(__dirname, f)
}


workshopper({
    name        : name
  , title       : title
  , subtitle    : subtitle
  , exerciseDir : fpath('./exercises/')
  , appDir      : __dirname
  , helpFile    : fpath('help.txt')
  , menuItems   : [ {
        name    : 'Créditos'
      , handler : credits
    } ]
})
#!/usr/bin/env node

"use strict"

var Workshopper = require('workshopper')
var path = require('path')

Workshopper({
    name   : 'functional-javascript'
  , appDir : __dirname
  , languages   : ['en', 'fr', 'ko', 'zh-cn']
})
Exemplo n.º 5
0
#!/usr/bin/env node

const workshopper = require('workshopper')
    , path        = require('path')
    , credits     = require('./credits')

function fpath (f) {
  return path.join(__dirname, f)
}

workshopper({
      name        : 'learnyounode'
    , appDir      : __dirname
    , languages   : ['en', 'es', 'ja', 'zh-cn', 'zh-tw']
    , helpFile    : fpath('./i18n/help/{lang}.txt')
    , menuItems   : [ {
          name    : 'credits'
        , handler : credits
      } ]
  })
#!/usr/bin/env node

const workshopper = require('workshopper'),
      path        = require('path');


function fpath (f) {
    return path.join(__dirname, f)
}

workshopper({
    name        : 'javascript-workshopper',
    title       : 'JavaScript Workshopper',
    subtitle    : 'A story-based JavaScript lesson for beginner and novice programmers.',
    appDir      : __dirname,
    menuItems   : [],
    exerciseDir : fpath('./exercises/')
})
Exemplo n.º 7
0
#!/usr/bin/env node

const workshopper = require('workshopper')
  , path = require('path');

workshopper({
  name: "async-you",
  appDir: __dirname,
  languages: ['en', 'fr'],
  helpFile: path.join(__dirname, "./i18n/help/{lang}.txt")
});
Exemplo n.º 8
0
#!/usr/bin/env node

var workshopper = require('workshopper')
  , path = require('path')

workshopper({
    name: 'javascript-foundations'
  , title: 'learn the basics of javascript'
  , appDir: __dirname
  , exerciseDir: path.join(__dirname, 'exercises')
  , creditsFile: path.join(__dirname, 'credits.txt')
  , menuItems: []
  , menu: { bg: 232 }
})
#!/usr/bin/env node

const Workshopper = require('workshopper')
    , path        = require('path')

Workshopper({
    name     : 'modelling-with-mongoose'
  , title    : 'MODELLING WITH MONGOOSE!'
  , subtitle : 'Object Modelling for MongoDB'
  , appDir   : __dirname
  , helpFile : path.join(__dirname, 'help.txt')
  , prerequisitesFile : path.join(__dirname, 'prerequisites.txt')
  , creditsFile : path.join(__dirname, 'credits.txt')
  , menu: {
    	bg: 'red',
    	fg: 'white'
	}
}).init()
Exemplo n.º 10
0
#!/usr/bin/env node

const workshopper = require('workshopper'),
      path        = require('path')

function fpath (f) {
    return path.join(__dirname, f)
}

workshopper({
    name        : 'smithy',
    title       : 'Smithy Cli',
    subtitle    : 'A javascript learnign tool provided by Codesmith.io',
    appDir      : __dirname,
    menuItems   : [],
    exerciseDir : fpath('./exercises/')
})
Exemplo n.º 11
0
#!/usr/bin/env node

const Workshopper = require('workshopper')
    , path        = require('path')

Workshopper({
    name              : 'learnyoucuke'
  , title             : 'Learn some basic Ruby and Cucumber'
  , appDir            : __dirname
  , helpFile          : path.join(__dirname, 'help.txt')
  , prerequisitesFile : path.join(__dirname, 'prerequisites.txt')
  , creditsFile       : path.join(__dirname, 'credits.txt')
}).init()
Exemplo n.º 12
0
#!/usr/bin/env node

var Workshopper = require('workshopper');
var path = require('path');
var credits = require('./credits');

var name = 'makemehapi';

function fpath (f) {
  return path.join(__dirname, f);
}

Workshopper({
    name : name,
    exerciseDir : fpath('./exercises/'),
    appDir : __dirname,
    languages : ['en', 'fr', 'ja', 'ko'],
    helpFile : fpath('./i18n/help/{lang}.txt'),
    menuItems : [{
        name : 'credits',
        handler : credits
    }]
});
Exemplo n.º 13
0
#!/usr/bin/env node

const workshopper = require('workshopper')
  , path = require('path');


workshopper({
  name: "promise-it-wont-hurt",
  title: "Promise It Won't Hurt",
  subtitle: "Learn to use promises in Node and browsers",
  appDir: __dirname,
  menu: {
    bg: "red",
    fg: "white"
  },
  helpFile: path.join(__dirname, "help.txt")
}).init();
const Workshopper = require('workshopper')
    , path        = require('path')
    , http = require('http')
    , fs = require('fs')
    , Server = require('./server.js');



if (process.argv[2] === 'server') {
	new Server(3333, path.resolve(process.cwd(), process.argv[3]));

} else {
	Workshopper({
	    name              : 'thinking-in-react'
	  , title             : 'LEARN YOU THE REACT.JS THINKING FOR MUCH WIN(D)!'
	  , appDir            : __dirname
	  , exerciseDir       : path.join(__dirname, '/exercises/')
	//   // , helpFile          : path.join(__dirname, 'help.txt')
	//   // , prerequisitesFile : path.join(__dirname, 'prerequisites.txt')
	//   // , creditsFile       : path.join(__dirname, 'credits.txt')
	});

}
Exemplo n.º 15
0
#!/usr/bin/env node

const Workshopper = require('workshopper')
    , path        = require('path')

Workshopper({
    name        : 'learnyounode'
  , title       : 'LEARN YOU THE NODE.JS FOR MUCH WIN!'
  , appDir      : __dirname
  , helpFile    : path.join(__dirname, 'help.txt')
  , creditsFile : path.join(__dirname, 'credits.txt')
}).init()
Exemplo n.º 16
0
    , credits     = require('./credits')
    , menu        = require('./exercises/menu')

    , name        = 'goingnative'
    , title       = 'Going Native'
    , subtitle    = '\x1b[23mSelect an exercise and hit \x1b[3mEnter\x1b[23m to begin'


function fpath (f) {
  return path.join(__dirname, f)
}


workshopper({
    name        : name
  , title       : title
  , subtitle    : subtitle
  , exerciseDir : fpath('./exercises/')
  , appDir      : __dirname
  , helpFile    : fpath('help.txt')
  , footerFile  : false
  , menu        : {
        fs: 'white'
      , bg: 'black'
    }
  , menuItems   : [ {
        name    : 'credits'
      , handler : credits
    } ]
})
Exemplo n.º 17
0
#!/usr/bin/env node

const Workshopper = require('workshopper'),
      path = require('path')

Workshopper({
  name: 'git-it',
  title: 'GIT + GITHUB : VERSION CONTROL + SOCIAL CODING',
  appDir: __dirname,
  helpFile: path.join(__dirname, 'help.txt'),
  menu: {
    bg: 'cyan',
    fg: 'white'
  }
}).init()
Exemplo n.º 18
0
#!/usr/bin/env node

const Workshopper = require('workshopper')
    , path        = require('path')

Workshopper({
    name   : 'learnyounode'
  , title  : 'LEARN YOU THE NODE.JS FOR MUCH WIN!'
  , appDir : __dirname
}).init()
Exemplo n.º 19
0
/* global __dirname */
'use strict';

var workshopper = require('workshopper'),
    path        = require('path');

function fpath (f) {
  return path.join(__dirname, f);
}

workshopper({
    name        : 'js-sunrise',
    title       : 'JavaScript Sunrise',
    subtitle    : 'Learn some JavaScript, be happy',
    appDir      : __dirname,
    menuItems   : [],
    exerciseDir : fpath('./exercises/')
});
Exemplo n.º 20
0
#!/usr/bin/env node

const workshopper = require('workshopper'),
      path        = require('path');

function fpath (f) {
    return path.join(__dirname, f)
}

workshopper({
    name        : 'express-lane',
    title       : 'Express Lane',
    subtitle    : 'Learn how to create an express webserver',
    appDir      : __dirname,
    menuItems   : [],
    exerciseDir : fpath('./exercises/')
});
Exemplo n.º 21
0
#!/usr/bin/env node

const workshopper = require('workshopper')
    , path        = require('path');

workshopper({
    name        : '<%= name %>'
  , title       : '<%= description %>'
  , exerciseDir : path.join(__dirname, 'exercises')
  , appDir      : __dirname
});
Exemplo n.º 22
0
var workshopper = require('workshopper');
var path = require('path');

var menu = require('./exercises/menu');
var name = 'node workshop.js';
var title = 'Написание тестов для БЭМ блоков';
var subtitle = '\x1b[23mВыберите задание и нажмите \x1b[3mEnter\x1b[23m для начала';

workshopper({
	name: name,
	title: title,
	subtitle: subtitle,
	exerciseDir: path.join(__dirname, 'exercises'),
	appDir: __dirname
});
Exemplo n.º 23
0
#!/usr/bin/env node

const Workshopper = require('workshopper')
    , path        = require('path')

Workshopper({
    name     : 'tamethekraken'
  , title    : 'TAME THE KRAKEN!'
  , subtitle : 'Taming the Kraken with MongoDB'
  , appDir   : __dirname
  , helpFile : path.join(__dirname, 'help.txt')
  , prerequisitesFile : path.join(__dirname, 'prerequisites.txt')
  , creditsFile : path.join(__dirname, 'credits.txt')
  , menu: {
    	bg: 'green',
    	fg: 'white'
	}
}).init()
Exemplo n.º 24
0
#!/usr/bin/env node

var workshopper = require('workshopper');
var path = require('path');

var config = require('../config.json');

workshopper({
  name: config.name,
  title: config.title,
  subtitle: config.subtitle,
  appDir: path.join(__dirname, '../'),
  menu: {
    bg: config.background,
    fg: config.foreground
  },
  helpFile : path.join(__dirname, '../help.txt')
}).init();
#!/usr/bin/env node

var path = require("path"),

    Workshopper = require("workshopper");

Workshopper({
    name: "node-js-greenhorn-workshopper",
    title: "Node.js FDD Workshop - Future Processing - 2014",

    appDir: __dirname,

    helpFile: path.join(__dirname, "help.txt"),
    creditsFile: path.join(__dirname, "credits.txt"),

    menu: {
        bg: "green"
    }
}).init()
#!/usr/bin/env node

const workshopper = require('workshopper')
    , path        = require('path')
    , name        = 'nodebot-workshop'
    , title       = 'Nodebot Workshop'
    , subtitle    = '\x1b[23mSelect an exercise and hit \x1b[3mEnter\x1b[23m to begin'

function fpath (f) {
  return path.join(__dirname, f)
}

workshopper({
    name        : name
  , title       : title
  , subtitle    : subtitle
  , exerciseDir : fpath('./exercises/')
  , appDir      : __dirname
  , helpFile    : fpath('help.txt')
  , menuItems   : []
  , menu        : {fg: 'black', bg: /^win/.test(process.platform) ? 'yellow' : 220}
})
Exemplo n.º 27
0
#!/usr/bin/env node

"use strict";

var workshopper = require("workshopper");
var path = require("path");

workshopper({
    name: "count-to-6",
    exerciseDir: path.resolve(__dirname, "exercises"),
    appDir: __dirname,
    languages: ['en', 'fr'],
    helpFile: path.resolve(__dirname, "i18n/help/{lang}.txt")
});
Exemplo n.º 28
0
#!/usr/bin/env node

const Workshopper = require('workshopper')
    , path        = require('path')

Workshopper({
    name     : 'downunder'
  , title    : 'GO DOWNUNDER AND LEARN SOME UNDERSCORE'
  , appDir   : __dirname
  , helpFile : path.join(__dirname, 'help.txt')
}).init()
Exemplo n.º 29
0
#!/usr/bin/env node

const Workshopper = require('workshopper')
    , path        = require('path')

function fpath (f) {
  return path.join(__dirname, f)
}

Workshopper({
    name      : 'expressworks'
  , appDir    : __dirname
  , languages : ['en', 'fr', 'ko', 'zh-tw', 'ja']
  , helpFile  : fpath('./i18n/help/{lang}.txt')
})
Exemplo n.º 30
0
#!/usr/bin/env node

"use strict";

var workshopper = require("workshopper");
var path = require("path");

workshopper({
    name: "count-to-6",
    title: "COUNT UP TO VERSION 6 OF JAVASCRIPT",
    subtitle: "\x1b[23mSelect an exercise and hit \x1b[3mEnter\x1b[23m to begin",
    exerciseDir: path.resolve(__dirname, "exercises"),
    appDir: __dirname,
    helpFile: path.resolve(__dirname, "help.txt"), // doesn't seem to be working
    menuItems: [] // https://github.com/rvagg/workshopper/commit/cef8219ca2919964113c6daedd78a5db8404051b
});