Skip to content

Commit

Permalink
Switch to using workshopper-adventure
Browse files Browse the repository at this point in the history
* workshopper is not maintained anymore
  • Loading branch information
bulkan committed Jun 26, 2017
1 parent a8313df commit d2938f8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions async_you.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
#!/usr/bin/env node

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

workshopper({
const workshop = workshopper({
name: "async-you",
appDir: __dirname,
languages: ['en', 'fr', 'ru'],
helpFile: path.join(__dirname, "./i18n/help/{lang}.txt")
helpFile: path.join(__dirname, "./i18n/help/{lang}.txt"),
header: require('workshopper-adventure/default/header'),
footer: require('workshopper-adventure/default/footer')
});

workshop.addAll(require('./exercises/menu.json'));
workshop.execute(process.argv.slice(2));
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"license": "MIT",
"dependencies": {
"async": "^0.9.0",
"workshopper": "^2.3.1",
"workshopper-adventure": "^6.0.2",
"workshopper-exercise": "^2.3.0"
},
"bin": "./async_you.js",
Expand Down

0 comments on commit d2938f8

Please sign in to comment.