Skip to content

Commit

Permalink
slides for the challenge
Browse files Browse the repository at this point in the history
  • Loading branch information
alesanchezr committed Aug 22, 2018
1 parent e8b8f76 commit f841735
Show file tree
Hide file tree
Showing 14 changed files with 354 additions and 1,682 deletions.
28 changes: 28 additions & 0 deletions .babelrc
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"
]
}
}
}
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
.c9
php.ini
php.ini

node_modules/

*.log
14 changes: 0 additions & 14 deletions CHALLENGES.md

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ Note: Your students don't know GIT, and that is ok. Please make them clone there

# Start Playing!

Now start asking the students for the different challenges!
As a teacher, and after cloning the project and doing `npm install`, open the presentation by doing `npm run start`.
Empty file added Untitled
Empty file.
19 changes: 12 additions & 7 deletions index.html
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>
31 changes: 31 additions & 0 deletions index.js
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")
);
});
}
65 changes: 65 additions & 0 deletions package.json
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"
}
}
Loading

0 comments on commit f841735

Please sign in to comment.