├── .gitignore ├── LICENSE ├── README.md ├── package.json ├── public ├── index.html └── js │ └── .gitkeep ├── src └── .gitkeep └── webpack.config.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Vinicius Vinhas 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # React Series 2 | Este pacote contém os arquivos básicos para iniciar as vídeo aulas 3 | de React do [Canal V++](https://youtube.com/user/VPlusPlus). 4 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vvinhas-react-series", 3 | "version": "0.0.0", 4 | "description": "Provides a basic structure to follow the v++ channel React series.", 5 | "main": "src/app.js", 6 | "dependencies": { 7 | "babel-core": "^6.22.1", 8 | "babel-loader": "^6.2.0", 9 | "babel-preset-es2015": "^6.3.13", 10 | "babel-preset-react": "^6.3.13", 11 | "babel-preset-stage-0": "^6.3.13", 12 | "react": "^15.4.2", 13 | "react-dom": "^15.4.2" 14 | }, 15 | "devDependencies": { 16 | "webpack": "^2.2.1", 17 | "webpack-dev-server": "^2.3.0" 18 | }, 19 | "scripts": { 20 | "dev": "webpack-dev-server --inline --hot --history-api-fallback --content-base public" 21 | }, 22 | "author": "Vinicius Vinhas", 23 | "license": "MIT" 24 | } 25 | -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | V++ React Series 6 | 7 | 8 |

Olá Mundo!

9 | 10 | 11 | -------------------------------------------------------------------------------- /public/js/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vvinhas/react-series/39b67d77aeb9060089326af4ee362d352dab341e/public/js/.gitkeep -------------------------------------------------------------------------------- /src/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vvinhas/react-series/39b67d77aeb9060089326af4ee362d352dab341e/src/.gitkeep -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- 1 | // Webpack configuration provided by LearnCode.academy (https://www.youtube.com/user/learncodeacademy) 2 | var debug = process.env.NODE_ENV !== "production"; 3 | var webpack = require('webpack'); 4 | var path = require('path'); 5 | 6 | module.exports = { 7 | context: path.join(__dirname, "src"), 8 | devtool: debug ? "inline-sourcemap" : null, 9 | entry: "./app.js", 10 | 11 | module: { 12 | loaders: [ 13 | { 14 | test: /\.jsx?$/, 15 | exclude: /(node_modules|bower_components)/, 16 | loader: 'babel-loader', 17 | query: { 18 | presets: ['react', 'es2015', 'stage-0'] 19 | } 20 | } 21 | ] 22 | }, 23 | 24 | output: { 25 | path: __dirname + "/public/js/", 26 | publicPath: "/js/", 27 | filename: "app.min.js" 28 | }, 29 | 30 | plugins: debug ? [] : [ 31 | new webpack.optimize.DedupePlugin(), 32 | new webpack.optimize.OccurenceOrderPlugin(), 33 | new webpack.optimize.UglifyJsPlugin({ mangle: false, sourcemap: false }), 34 | ], 35 | }; 36 | --------------------------------------------------------------------------------