Skip to content

Commit

Permalink
bootstrap webpack files
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagoxvo committed Aug 23, 2016
1 parent ab87dc6 commit 45a267b
Show file tree
Hide file tree
Showing 9 changed files with 19,819 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .babelrc
@@ -0,0 +1,3 @@
{
"presets": ["es2015", "react"]
}
81 changes: 81 additions & 0 deletions .eslintrc.yml
@@ -0,0 +1,81 @@
---
parser: "babel-eslint"
extends:
- plugin:react/recommended

env:
browser: true
node: true
es6: true

ecmaFeatures:
jsx: true
modules: true

globals:
__DEV__: true
__SERVER__: true

plugins:
- react

rules:
react/jsx-uses-vars: 1

semi:
- 1
- 'never'
key-spacing: 1
curly: 0
consistent-return: 0
space-infix-ops: 1
camelcase: 0
no-spaced-func: 1
no-alert: 1
eol-last: 1
comma-spacing: 1
eqeqeq: 1

# possible errors
comma-dangle: 0
no-cond-assign: 2
no-console: 0
no-constant-condition: 2
no-control-regex: 2
no-debugger: 2
no-dupe-args: 2
no-dupe-keys: 2
no-duplicate-case: 2
no-empty-character-class: 2
no-empty: 2
no-ex-assign: 2
no-extra-boolean-cast: 2
no-extra-parens: 0
no-extra-semi: 2
no-func-assign: 2
no-inner-declarations: 2
no-invalid-regexp: 2
no-irregular-whitespace: 2
no-negated-in-lhs: 2
no-obj-calls: 2
no-regex-spaces: 2
no-sparse-arrays: 2
no-unexpected-multiline: 2
no-unreachable: 2
use-isnan: 2
valid-jsdoc: 2
valid-typeof: 2

no-redeclare: 2

init-declarations: 2
no-catch-shadow: 2
no-delete-var: 2
no-label-var: 2
no-shadow-restricted-names: 2
no-shadow: 2
no-undef-init: 2
no-undef: 2
no-undefined: 2
no-unused-vars: 2
no-use-before-define: 2
12 changes: 12 additions & 0 deletions getting-started/index.jsx
@@ -0,0 +1,12 @@
import React from 'react'
import ReactDOM from 'react-dom'

export class App extends React.Component {
render() {
return (
<div>Hello World</div>
)
}
}

ReactDOM.render(<App/>, document.querySelector("#app"))
10 changes: 10 additions & 0 deletions index.html
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<div id="app"></div>
<script src="./bundle.js" type="text/javascript"></script>
</body>
</html>
35 changes: 35 additions & 0 deletions package.json
@@ -0,0 +1,35 @@
{
"name": "redux-courses-exercises",
"version": "1.0.0",
"description": "Egghead Redux Courses Exercises",
"main": "index.js",
"scripts": {
"dev": "webpack-dev-server --progress --profile --colors"
},
"repository": {
"type": "git",
"url": "git+https://github.com/thiagoxvo/redux-courses-exercises.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/thiagoxvo/redux-courses-exercises/issues"
},
"homepage": "https://github.com/thiagoxvo/redux-courses-exercises#readme",
"dependencies": {
"babel-core": "^6.13.2",
"babel-eslint": "^6.1.2",
"babel-loader": "^6.2.5",
"babel-preset-es2015": "^6.13.2",
"babel-preset-react": "^6.11.1",
"copy-webpack-plugin": "^3.0.1",
"eslint": "^3.3.1",
"eslint-plugin-react": "^6.1.2",
"jsx-loader": "^0.13.2",
"react": "^15.3.1",
"react-dom": "^15.3.1",
"react-hot-loader": "^1.3.0",
"webpack": "^1.13.2",
"webpack-dev-server": "^1.15.0"
}
}

0 comments on commit 45a267b

Please sign in to comment.