From 6b5633dd0b4803aa8397a7a1a3eb6c8fd664828c Mon Sep 17 00:00:00 2001 From: Nishant Arora Date: Fri, 19 Aug 2016 11:05:42 +0530 Subject: [PATCH] Added webpack, babel and react. Basic client setup --- .babelrc | 3 +++ .gitignore | 3 +++ client/app/index.jsx | 10 ++++++++++ client/index.html | 14 ++++++++++++++ db/matterwiki.sqlite | Bin 2048 -> 3072 bytes index.js | 4 +++- package.json | 12 ++++++++++-- webpack.config.js | 24 ++++++++++++++++++++++++ 8 files changed, 67 insertions(+), 3 deletions(-) create mode 100644 .babelrc create mode 100644 client/app/index.jsx create mode 100644 client/index.html create mode 100644 webpack.config.js diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000..ad8d1fe --- /dev/null +++ b/.babelrc @@ -0,0 +1,3 @@ +{ + "presets" : ["es2015", "react"] +} diff --git a/.gitignore b/.gitignore index 5148e52..537f58a 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,6 @@ jspm_packages # Optional REPL history .node_repl_history + +client/public +db/matterwiki.sqlite diff --git a/client/app/index.jsx b/client/app/index.jsx new file mode 100644 index 0000000..1ab0709 --- /dev/null +++ b/client/app/index.jsx @@ -0,0 +1,10 @@ +import React from 'react'; +import {render} from 'react-dom'; + +class App extends React.Component { + render () { + return

Hello React!

; + } +} + +render(, document.getElementById('app')); diff --git a/client/index.html b/client/index.html new file mode 100644 index 0000000..7d40c85 --- /dev/null +++ b/client/index.html @@ -0,0 +1,14 @@ + + + + Matterwiki + + + +
+ + + diff --git a/db/matterwiki.sqlite b/db/matterwiki.sqlite index 01f495abd9d629b38864f132b329cc86f8c40519..ba619a07b3678479c858ca03ae52ea104b384a6e 100644 GIT binary patch delta 297 zcmZn=Xpop7EvUf2z`zW|Fu*iX#~3K6`|>3(P>6}Si-GwRbJxZ~DP{*dCN^}`PDvQkgi`{>H0BhCF^xFIU`#_!Q5e&JQv}Ae