Skip to content

Commit

Permalink
Initialize client app
Browse files Browse the repository at this point in the history
  • Loading branch information
mfeniseycopes committed Aug 20, 2017
1 parent a5ea0c9 commit 2ab308a
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,2 +1,3 @@
.DS_Store
node_modules/
bundle.js*
1 change: 1 addition & 0 deletions client/index.js
@@ -0,0 +1 @@
export default {}
22 changes: 22 additions & 0 deletions client/package.json
@@ -0,0 +1,22 @@
{
"name": "client",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"react": "^15.6.1",
"react-dom": "^15.6.1",
"webpack": "^3.5.5"
},
"proxy": "http://localhost:3000"
}
26 changes: 26 additions & 0 deletions client/webpack.config.js
@@ -0,0 +1,26 @@
var path = require('path');

module.exports = {
context: __dirname,
entry: './index.js',
output: {
path: path.resolve(__dirname),
filename: 'bundle.js',
},
module: {
loaders: [
{
test: [/\.jsx?$/, /\.js?$/],
exclude: /(node_modules)/,
loader: 'babel-loader',
query: {
presets: ['es2015', 'react'],
},
}
]
},
devtool: 'source-map',
resolve: {
extensions: [".js", ".jsx", "*"],
},
};

0 comments on commit 2ab308a

Please sign in to comment.