Skip to content

Commit

Permalink
initial commit 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
httpete-ire committed Mar 22, 2016
0 parents commit a5b2137
Show file tree
Hide file tree
Showing 10 changed files with 94 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .babelrc
@@ -0,0 +1,3 @@
{
"presets" : ["es2015", "react"]
}
3 changes: 3 additions & 0 deletions .eslintrc
@@ -0,0 +1,3 @@
{
"extends": "airbnb"
}
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
node_modules/
dist/
12 changes: 12 additions & 0 deletions app/index.html
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Redux pomodoro</title>
</head>
<body>

<div id="app"></div>

</body>
</html>
7 changes: 7 additions & 0 deletions app/index.js
@@ -0,0 +1,7 @@
import React from 'react';
import ReactDOM from 'react-dom';

// ReactDOM.render(
// ,
// document.getElementById('app')
// );
Empty file added app/scss/_variables.scss
Empty file.
1 change: 1 addition & 0 deletions app/scss/app.scss
@@ -0,0 +1 @@
@import "variables";
Empty file added app/scss/base/_reset.scss
Empty file.
36 changes: 36 additions & 0 deletions package.json
@@ -0,0 +1,36 @@
{
"name": "redux-pomodoro",
"version": "1.0.0",
"description": "Pomodoro timer built in React using Redux to manage the application state",
"main": "index.js",
"scripts": {
"build": "webpack -p",
"start": "webpack-dev-server --inline"
},
"author": "Pete Redmond <pete@httpete.com> (http://httpete.com)",
"license": "MIT",
"private": true,
"devDependencies": {
"babel-core": "^6.6.0",
"babel-loader": "^6.2.4",
"babel-preset-es2015": "^6.6.0",
"babel-preset-react": "^6.5.0",
"css-loader": "^0.23.1",
"eslint": "^2.4.0",
"eslint-config-airbnb": "^6.1.0",
"eslint-plugin-react": "^4.2.1",
"html-webpack-plugin": "^2.9.0",
"node-sass": "^3.4.2",
"sass-loader": "^3.2.0",
"style-loader": "^0.13.0",
"webpack": "^1.12.14",
"webpack-dev-server": "^1.14.1",
"worker-loader": "^0.7.0"
},
"dependencies": {
"react": "^0.14.7",
"react-dom": "^0.14.7",
"react-redux": "^4.4.1",
"redux": "^3.3.1"
}
}
30 changes: 30 additions & 0 deletions webpack.config.js
@@ -0,0 +1,30 @@
const HtmlWebpackPlugin = require('html-webpack-plugin');
const htmlConfig = new HtmlWebpackPlugin({
template: __dirname + '/app/index.html',
filename: 'index.html',
inject: 'body',
});

module.exports = {
entry: [
'./app/index.js',
],
output: {
path: __dirname + '/dist',
filename: 'index.bundle.js',
},
module: {
loaders: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader',
},
{
test: /\.scss$/,
loaders: ['style', 'css?sourceMap', 'sass?sourceMap'],
},
],
},
plugins: [htmlConfig],
};

0 comments on commit a5b2137

Please sign in to comment.