forked from breatheco-de/exercise-terminal-challenge
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e8b8f76
commit f841735
Showing
14 changed files
with
354 additions
and
1,682 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"presets": [ | ||
[ "es2015", { "loose": true, "modules" : false } ], | ||
"stage-0", | ||
"react" | ||
], | ||
"plugins": [ | ||
"react-hot-loader/babel", | ||
"transform-decorators-legacy" | ||
], | ||
"env": { | ||
"production": { | ||
"plugins": [ | ||
"transform-es2015-modules-commonjs", | ||
"transform-react-remove-prop-types", | ||
"transform-react-constant-elements", | ||
"transform-react-inline-elements", | ||
"transform-runtime", | ||
"transform-decorators-legacy" | ||
] | ||
}, | ||
"test": { | ||
"plugins": [ | ||
"transform-es2015-modules-commonjs" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
.c9 | ||
php.ini | ||
php.ini | ||
|
||
node_modules/ | ||
|
||
*.log |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
<html> | ||
<head> | ||
<title>The Command Line Challenge</title> | ||
</head> | ||
<body> | ||
Hello! Read the README.md to start the challenge! | ||
</body> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width initial-scale=1 user-scalable=no" /> | ||
<title>Spectacle Boilerplate</title> | ||
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet"> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script src="./dist/bundle.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import React from "react"; | ||
import PropTypes from "prop-types"; | ||
import ReactDOM from "react-dom"; | ||
import { AppContainer } from "react-hot-loader"; | ||
import Redbox from "redbox-react"; | ||
|
||
import Presentation from "./slides"; | ||
|
||
const CustomErrorReporter = ({ error }) => <Redbox error={ error } />; | ||
|
||
CustomErrorReporter.propTypes = { | ||
error: PropTypes.instanceOf(Error).isRequired | ||
}; | ||
|
||
ReactDOM.render( | ||
<AppContainer errorReporter={CustomErrorReporter}> | ||
<Presentation /> | ||
</AppContainer>, | ||
document.getElementById("root") | ||
); | ||
|
||
if (module.hot) { | ||
module.hot.accept("./slides", () => { | ||
const NextPresentation = require("./slides").default; ReactDOM.render( | ||
<AppContainer errorReporter={CustomErrorReporter}> | ||
<NextPresentation /> | ||
</AppContainer>, | ||
document.getElementById("root") | ||
); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ | ||
"name": "spectacle-boilerplate", | ||
"version": "1.0.1", | ||
"description": "ReactJS Powered Presentation Framework", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"clean": "rimraf dist", | ||
"build": "cross-env NODE_ENV=production webpack --config webpack.config.production.js", | ||
"lint": "eslint --ext .js,.jsx .", | ||
"deploy": "npm run clean & npm run build && surge -p .", | ||
"export": "spectacle-renderer --delay 3000", | ||
"start": "cross-env NODE_ENV=development node server.js" | ||
}, | ||
"author": "", | ||
"license": "MIT", | ||
"dependencies": { | ||
"normalize.css": "7.0.0", | ||
"react": "^16.0.0", | ||
"react-dom": "^16.0.0", | ||
"spectacle": "^4.0.0", | ||
"spectacle-renderer": "^0.0.3" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.26.0", | ||
"babel-core": "^6.26.0", | ||
"babel-eslint": "^8.0.1", | ||
"babel-loader": "^7.1.2", | ||
"babel-plugin-react-transform": "^3.0.0", | ||
"babel-plugin-transform-decorators-legacy": "^1.3.4", | ||
"babel-plugin-transform-react-constant-elements": "^6.23.0", | ||
"babel-plugin-transform-react-inline-elements": "^6.22.0", | ||
"babel-plugin-transform-react-remove-prop-types": "^0.4.10", | ||
"babel-plugin-transform-runtime": "^6.23.0", | ||
"babel-polyfill": "^6.26.0", | ||
"babel-preset-es2015": "^6.24.1", | ||
"babel-preset-react": "^6.24.1", | ||
"babel-preset-stage-0": "^6.24.1", | ||
"babel-runtime": "^6.26.0", | ||
"cross-env": "^5.1.0", | ||
"css-loader": "^0.28.7", | ||
"eslint": "^4.9.0", | ||
"eslint-config-formidable": "^3.0.0", | ||
"eslint-plugin-filenames": "^1.2.0", | ||
"eslint-plugin-import": "^2.8.0", | ||
"eslint-plugin-react": "^7.4.0", | ||
"express": "^4.16.2", | ||
"file-loader": "^1.1.5", | ||
"html-loader": "^0.5.1", | ||
"is-buffer": "^1.1.5", | ||
"markdown-loader": "^2.0.1", | ||
"node-libs-browser": "^2.0.0", | ||
"raw-loader": "^0.5.1", | ||
"react-hot-loader": "^3.1.1", | ||
"react-transform-catch-errors": "^1.0.2", | ||
"redbox-react": "^1.5.0", | ||
"rimraf": "^2.6.2", | ||
"style-loader": "^0.19.0", | ||
"surge": "latest", | ||
"url-loader": "^0.6.2", | ||
"webpack": "3.8.1", | ||
"webpack-dev-middleware": "^1.12.0", | ||
"webpack-dev-server": "^2.9.3", | ||
"webpack-hot-middleware": "^2.20.0" | ||
} | ||
} |
Oops, something went wrong.