diff --git a/.babelrc b/.babelrc new file mode 100644 index 00000000..c13c5f62 --- /dev/null +++ b/.babelrc @@ -0,0 +1,3 @@ +{ + "presets": ["es2015"] +} diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 00000000..b0c0c8bd --- /dev/null +++ b/.eslintrc @@ -0,0 +1,3 @@ +{ + "extends": "airbnb" +} diff --git a/.gitignore b/.gitignore index daeba5f9..ea9a506d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *~ node_modules .DS_Store +public/dist/bundle.js diff --git a/.node-version b/.node-version new file mode 100644 index 00000000..1d068c6e --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +4.4.2 diff --git a/comments.json b/comments.json index 7bef77ad..b5b90aed 100644 --- a/comments.json +++ b/comments.json @@ -8,5 +8,10 @@ "id": 1420070400000, "author": "Paul O’Shannessy", "text": "React is *great*!" + }, + { + "id": 1458637037232, + "author": "ahoeu", + "text": "aoehuaoeu" } -] +] \ No newline at end of file diff --git a/package.json b/package.json index e7491981..0475a60e 100644 --- a/package.json +++ b/package.json @@ -2,15 +2,28 @@ "name": "react-tutorial", "version": "0.0.0", "description": "Code from the React tutorial.", - "main": "server.js", "dependencies": { - "body-parser": "^1.4.3", - "express": "^4.4.5" + "body-parser": "^1.15.1", + "express": "^4.13.4", + "marked": "^0.3.5", + "react": "^15.0.2", + "react-dom": "^15.0.2" + }, + "devDependencies": { + "babel-core": "^6.8.0", + "babel-loader": "^6.2.4", + "babel-preset-es2015": "^6.6.0", + "babel-preset-react": "^6.5.0", + "babel-register": "^6.8.0", + "eslint": "^2.10.2", + "eslint-config-airbnb": "^9.0.1", + "eslint-plugin-import": "^1.8.0", + "eslint-plugin-jsx-a11y": "^1.2.0", + "eslint-plugin-react": "^5.1.1", + "webpack": "^1.13.0" }, - "devDependencies": {}, "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", - "start": "node server.js" + "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { "type": "git", @@ -27,7 +40,7 @@ "url": "https://github.com/reactjs/react-tutorial/issues" }, "homepage": "https://github.com/reactjs/react-tutorial", - "engines" : { - "node" : "0.12.x" + "engines": { + "node": "4.x.x" } } diff --git a/public/index.html b/public/index.html index 21340e72..67f95862 100644 --- a/public/index.html +++ b/public/index.html @@ -5,18 +5,9 @@