diff --git a/05 SimpleApp_Navigation/.babelrc b/05 SimpleApp_Navigation/.babelrc new file mode 100644 index 0000000..03dfd13 --- /dev/null +++ b/05 SimpleApp_Navigation/.babelrc @@ -0,0 +1,10 @@ +{ + "presets": [ + [ + "env", + { + "modules": false + } + ] + ] +} diff --git a/05 SimpleApp_Navigation/package.json b/05 SimpleApp_Navigation/package.json new file mode 100644 index 0000000..150cf5a --- /dev/null +++ b/05 SimpleApp_Navigation/package.json @@ -0,0 +1,45 @@ +{ + "name": "sample", + "version": "1.0.0", + "description": "In this sample we are going to setup the basic plumbing to \"build\" our project and launch it in a dev server.", + "main": "index.js", + "scripts": { + "start": "webpack-dev-server --mode development --inline --hot --open", + "build": "webpack --mode development", + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "", + "license": "ISC", + "devDependencies": { + "@types/react": "^16.3.12", + "@types/react-dom": "^16.0.5", + "@types/react-redux": "^5.0.16", + "@types/react-router": "^3.0.15", + "@types/react-router-redux": "^4.0.51", + "@types/redux-thunk": "^2.1.0", + "awesome-typescript-loader": "^5.0.0", + "babel-core": "^6.26.0", + "babel-preset-env": "^1.6.1", + "css-loader": "^0.28.11", + "file-loader": "^1.1.11", + "html-webpack-plugin": "^3.2.0", + "mini-css-extract-plugin": "^0.4.0", + "style-loader": "^0.20.3", + "typescript": "^2.8.1", + "url-loader": "^1.0.1", + "webpack": "^4.5.0", + "webpack-cli": "^2.0.14", + "webpack-dev-server": "^3.1.0" + }, + "dependencies": { + "babel-polyfill": "^6.26.0", + "bootstrap": "^4.1.0", + "react": "^16.3.2", + "react-dom": "^16.3.2", + "react-redux": "^5.0.7", + "react-router": "^3.2.1", + "react-router-redux": "^4.0.8", + "redux": "^4.0.0", + "redux-thunk": "^2.2.0" + } +} diff --git a/06 SimpleApp_Navigation/readme.md b/05 SimpleApp_Navigation/readme.md similarity index 99% rename from 06 SimpleApp_Navigation/readme.md rename to 05 SimpleApp_Navigation/readme.md index ce87b0f..feebd70 100644 --- a/06 SimpleApp_Navigation/readme.md +++ b/05 SimpleApp_Navigation/readme.md @@ -1,4 +1,4 @@ -# 06 Simple App +# 05 Simple App This sample series takes as starting point _02 Change Name_ @@ -323,7 +323,8 @@ export const App = () => { - import {NameEditContainer} from './nameEditContainer'; + import { Link } from 'react-router' - export const App = (props: { children? }) => { +- export const App = () => { ++ export const App = (props: { children? }) => { return (