From 6188af6c30f3a56f8b658b83ff66d77f19f4353e Mon Sep 17 00:00:00 2001 From: Ivan Krechetov Date: Fri, 10 Jun 2016 14:38:56 +0200 Subject: [PATCH 1/3] Allow `npm run server` without a global babel-cli Fixes the https://github.com/DrBoolean/classroom-coding/issues/1 --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 2f67ec9..c07ca91 100644 --- a/package.json +++ b/package.json @@ -47,6 +47,7 @@ }, "devDependencies": { "async": "^1.4.2", + "babel-cli": "^6.9.0", "babel-core": "^6.2.1", "babel-loader": "^6.2.0", "css-loader": "^0.15.6", From 3f34945b190a141f74001b48ba3c909ea8cb443b Mon Sep 17 00:00:00 2001 From: Ivan Krechetov Date: Fri, 10 Jun 2016 14:41:02 +0200 Subject: [PATCH 2/3] Fix the 404-s on build.js & vendors.js Plug the correct file system path to the Web root --- src/backend/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/app.js b/src/backend/app.js index 999501d..31de9e7 100644 --- a/src/backend/app.js +++ b/src/backend/app.js @@ -9,7 +9,7 @@ app.set('port', 3000); app.set('views', __dirname + '/views'); app.set('view engine', 'ejs'); app.use(bodyParser.json()); -app.use(express.static(path.resolve(__dirname, 'public'))); +app.use(express.static(path.resolve(__dirname, '../../public'))); const main = () => { server(app) From 85656f880c409630eefb963b71b0132fa8c8c381 Mon Sep 17 00:00:00 2001 From: Ivan Krechetov Date: Fri, 10 Jun 2016 14:42:09 +0200 Subject: [PATCH 3/3] A script tag should not be a direct child of Moved it to the . According to the HTML specification, a -