diff --git a/exercises/components/exercise.js b/exercises/components/exercise.js index 5b819d1..e1aa9f5 100644 --- a/exercises/components/exercise.js +++ b/exercises/components/exercise.js @@ -69,7 +69,7 @@ exercise.addProcessor(function (mode, callback) { }); }); -// delayed for 5000ms to wait for servers to start so we can start +// delayed for 3000ms to wait for servers to start so we can start // playing with them function query(mode) { var exercise = this; diff --git a/exercises/css/exercise.js b/exercises/css/exercise.js index 5b819d1..e1aa9f5 100644 --- a/exercises/css/exercise.js +++ b/exercises/css/exercise.js @@ -69,7 +69,7 @@ exercise.addProcessor(function (mode, callback) { }); }); -// delayed for 5000ms to wait for servers to start so we can start +// delayed for 3000ms to wait for servers to start so we can start // playing with them function query(mode) { var exercise = this; diff --git a/exercises/css/solution/solution.js b/exercises/css/solution/solution.js index 6ed84db..f8cd9e7 100644 --- a/exercises/css/solution/solution.js +++ b/exercises/css/solution/solution.js @@ -4,14 +4,15 @@ var app = express(); app.set('port', (process.argv[2] || 3000)); app.set('view engine', 'jsx'); app.set('views', __dirname + '/views'); -app.engine('jsx', require('express-react-views').createEngine({ transformViews: false })); +app.engine('jsx', require('express-react-views').createEngine({transformViews: false})); require('babel/register')({ - ignore: false + ignore: false }); -app.use('/', function(req, res) { - res.render('index', ''); +app.use('/', function (req, res) { + res.render('index', ''); }); -app.listen(app.get('port'), function() {}); +app.listen(app.get('port'), function () { +}); diff --git a/exercises/css2/exercise.js b/exercises/css2/exercise.js index 1eea3a2..23636e0 100644 --- a/exercises/css2/exercise.js +++ b/exercises/css2/exercise.js @@ -82,7 +82,7 @@ exercise.addProcessor(function (mode, callback) { }); }); -// delayed for 5000ms to wait for servers to start so we can start +// delayed for 3000ms to wait for servers to start so we can start // playing with them function query(mode) { var exercise = this diff --git a/exercises/css2/solution/solution.js b/exercises/css2/solution/solution.js index 37acdbf..eb9e9fb 100644 --- a/exercises/css2/solution/solution.js +++ b/exercises/css2/solution/solution.js @@ -19,6 +19,7 @@ app.engine('jsx', require('express-react-views').createEngine()); require('babel/register')({ ignore: false }); + var TodoBox = require('./views/index.jsx'); var data = [ diff --git a/exercises/event/exercise.js b/exercises/event/exercise.js index 55eb352..d61164d 100644 --- a/exercises/event/exercise.js +++ b/exercises/event/exercise.js @@ -82,7 +82,7 @@ exercise.addProcessor(function (mode, callback) { }); }); -// delayed for 5000ms to wait for servers to start so we can start +// delayed for 3000ms to wait for servers to start so we can start // playing with them function query(mode) { var exercise = this diff --git a/exercises/hello_react/exercise.js b/exercises/hello_react/exercise.js index df60d7c..af14474 100644 --- a/exercises/hello_react/exercise.js +++ b/exercises/hello_react/exercise.js @@ -69,7 +69,7 @@ exercise.addProcessor(function (mode, callback) { }); }); -// delayed for 5000ms to wait for servers to start so we can start +// delayed for 3000ms to wait for servers to start so we can start // playing with them function query(mode) { var exercise = this; diff --git a/exercises/hello_react/problem.md b/exercises/hello_react/problem.md index fb371f1..866b6a1 100644 --- a/exercises/hello_react/problem.md +++ b/exercises/hello_react/problem.md @@ -10,8 +10,6 @@ `$ npm install react react-dom express body-parser express-react-views@0.9.0 babel@5.8.23` -`@5.8.23` - `node_modules` というフォルダが作成されたかと思います。その中にモジュールのフォルダがあります。 次に `program.js` を作成します。 diff --git a/exercises/isomorphic/exercise.js b/exercises/isomorphic/exercise.js index 1eea3a2..23636e0 100644 --- a/exercises/isomorphic/exercise.js +++ b/exercises/isomorphic/exercise.js @@ -82,7 +82,7 @@ exercise.addProcessor(function (mode, callback) { }); }); -// delayed for 5000ms to wait for servers to start so we can start +// delayed for 3000ms to wait for servers to start so we can start // playing with them function query(mode) { var exercise = this diff --git a/exercises/isomorphic/solution/solution.js b/exercises/isomorphic/solution/solution.js index 45ef19e..f81f85a 100644 --- a/exercises/isomorphic/solution/solution.js +++ b/exercises/isomorphic/solution/solution.js @@ -30,11 +30,11 @@ var data = [ app.use('/bundle.js', function (req, res) { res.setHeader('content-type', 'application/javascript'); - browserify({ debug: true }) + browserify({debug: true}) .transform(babelify.configure({ presets: ["react", "es2015"] })) - .require("./app.js", { entry: true }) + .require("./app.js", {entry: true}) .bundle() .pipe(res); }); diff --git a/exercises/prop_and_state/exercise.js b/exercises/prop_and_state/exercise.js index f87264c..9a4c247 100644 --- a/exercises/prop_and_state/exercise.js +++ b/exercises/prop_and_state/exercise.js @@ -82,7 +82,7 @@ exercise.addProcessor(function (mode, callback) { }); }); -// delayed for 5000ms to wait for servers to start so we can start +// delayed for 3000ms to wait for servers to start so we can start // playing with them function query(mode) { var exercise = this diff --git a/exercises/props/exercise.js b/exercises/props/exercise.js index 5b819d1..e1aa9f5 100644 --- a/exercises/props/exercise.js +++ b/exercises/props/exercise.js @@ -69,7 +69,7 @@ exercise.addProcessor(function (mode, callback) { }); }); -// delayed for 5000ms to wait for servers to start so we can start +// delayed for 3000ms to wait for servers to start so we can start // playing with them function query(mode) { var exercise = this; diff --git a/exercises/props_from_server/exercise.js b/exercises/props_from_server/exercise.js index 184466e..9b5b5d1 100644 --- a/exercises/props_from_server/exercise.js +++ b/exercises/props_from_server/exercise.js @@ -82,7 +82,7 @@ exercise.addProcessor(function (mode, callback) { }); }); -// delayed for 5000ms to wait for servers to start so we can start +// delayed for 3000ms to wait for servers to start so we can start // playing with them function query(mode) { var exercise = this; diff --git a/exercises/props_from_server/solution/solution.js b/exercises/props_from_server/solution/solution.js index 1d772ab..4150227 100644 --- a/exercises/props_from_server/solution/solution.js +++ b/exercises/props_from_server/solution/solution.js @@ -4,19 +4,20 @@ var app = express(); app.set('port', (process.argv[2] || 3000)); app.set('view engine', 'jsx'); app.set('views', __dirname + '/views'); -app.engine('jsx', require('express-react-views').createEngine({ transformViews: false })); +app.engine('jsx', require('express-react-views').createEngine({transformViews: false})); require('babel/register')({ - ignore: false + ignore: false }); var data = [ - { title: 'Shopping', detail: process.argv[3] }, - { title: 'Hair cut', detail: process.argv[4] } + {title: 'Shopping', detail: process.argv[3]}, + {title: 'Hair cut', detail: process.argv[4]} ]; -app.use('/', function(req, res) { - res.render('index', {data: data}); +app.use('/', function (req, res) { + res.render('index', {data: data}); }); -app.listen(app.get('port'), function() {}); +app.listen(app.get('port'), function () { +}); diff --git a/exercises/proptypes/exercise.js b/exercises/proptypes/exercise.js index 5b819d1..e1aa9f5 100644 --- a/exercises/proptypes/exercise.js +++ b/exercises/proptypes/exercise.js @@ -69,7 +69,7 @@ exercise.addProcessor(function (mode, callback) { }); }); -// delayed for 5000ms to wait for servers to start so we can start +// delayed for 3000ms to wait for servers to start so we can start // playing with them function query(mode) { var exercise = this; diff --git a/exercises/proptypes/solution/solution.js b/exercises/proptypes/solution/solution.js index 6ed84db..f8cd9e7 100644 --- a/exercises/proptypes/solution/solution.js +++ b/exercises/proptypes/solution/solution.js @@ -4,14 +4,15 @@ var app = express(); app.set('port', (process.argv[2] || 3000)); app.set('view engine', 'jsx'); app.set('views', __dirname + '/views'); -app.engine('jsx', require('express-react-views').createEngine({ transformViews: false })); +app.engine('jsx', require('express-react-views').createEngine({transformViews: false})); require('babel/register')({ - ignore: false + ignore: false }); -app.use('/', function(req, res) { - res.render('index', ''); +app.use('/', function (req, res) { + res.render('index', ''); }); -app.listen(app.get('port'), function() {}); +app.listen(app.get('port'), function () { +}); diff --git a/exercises/state/exercise.js b/exercises/state/exercise.js index 0a4ce80..4bca705 100644 --- a/exercises/state/exercise.js +++ b/exercises/state/exercise.js @@ -69,7 +69,7 @@ exercise.addProcessor(function (mode, callback) { }); }); -// delayed for 5000ms to wait for servers to start so we can start +// delayed for 3000ms to wait for servers to start so we can start // playing with them function query(mode) { var exercise = this; diff --git a/exercises/state/solution/solution.js b/exercises/state/solution/solution.js index 6ed84db..f8cd9e7 100644 --- a/exercises/state/solution/solution.js +++ b/exercises/state/solution/solution.js @@ -4,14 +4,15 @@ var app = express(); app.set('port', (process.argv[2] || 3000)); app.set('view engine', 'jsx'); app.set('views', __dirname + '/views'); -app.engine('jsx', require('express-react-views').createEngine({ transformViews: false })); +app.engine('jsx', require('express-react-views').createEngine({transformViews: false})); require('babel/register')({ - ignore: false + ignore: false }); -app.use('/', function(req, res) { - res.render('index', ''); +app.use('/', function (req, res) { + res.render('index', ''); }); -app.listen(app.get('port'), function() {}); +app.listen(app.get('port'), function () { +});