-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update boilerplate to match new Getting Started tutorial (#70)
- Loading branch information
Kylie Stewart
authored
Dec 21, 2018
1 parent
354c581
commit 6c5c79f
Showing
15 changed files
with
302 additions
and
225 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
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 |
---|---|---|
|
@@ -4,45 +4,53 @@ | |
|
||
- [Reference](#reference) | ||
- [Getting Started](#getting-started) | ||
- [Tutorial](#tutorial) | ||
- [Build & Deployment](#build-deployment) | ||
|
||
## Reference | ||
|
||
The Spectacle core API is available at [https://github.com/FormidableLabs/spectacle/blob/master/README.md](https://github.com/FormidableLabs/spectacle/blob/master/README.md). | ||
The Spectacle core API is available in the [Spectacle Docs](https://github.com/FormidableLabs/spectacle/blob/master/README.md). | ||
|
||
## Getting Started | ||
|
||
After downloading the boilerplate, your first order of business is to open a terminal and run | ||
```bash | ||
yarn | ||
``` | ||
or | ||
```bash | ||
npm install | ||
``` | ||
if you're about that life. | ||
1. Download the boilerplate | ||
|
||
Next, run | ||
```bash | ||
rm -R .git | ||
``` | ||
to remove the existing version control. | ||
```sh | ||
git clone [email protected]:Formidable.com/spectacle-boilerplate.git | ||
``` | ||
|
||
Then, to start up the local server, run | ||
```bash | ||
npm start | ||
``` | ||
2. Remove existing version control | ||
|
||
```sh | ||
rm -R .git | ||
``` | ||
|
||
3. Install dependencies | ||
|
||
Open a browser and hit [http://localhost:3000](http://localhost:3000), and we are ready to roll. | ||
```sh | ||
yarn install | ||
``` | ||
|
||
4. Start the webpack server. The server will run at [`localhost:3000`](http://localhost:3000). | ||
|
||
```sh | ||
yarn start | ||
``` | ||
|
||
## Tutorial | ||
|
||
If want you a step-by-step guide for getting started with Spectacle, a basic tutorial is available [here](https://github.com/FormidableLabs/spectacle/blob/master/docs/tutorial.md). | ||
|
||
## Build & Deployment | ||
|
||
Building the dist version of the project is as easy as running | ||
```bash | ||
npm run build | ||
|
||
```sh | ||
yarn build | ||
``` | ||
|
||
If you want to deploy the slideshow to surge, run | ||
```bash | ||
npm run deploy | ||
If you want to deploy the slideshow to surge, run | ||
|
||
```sh | ||
yarn deploy | ||
``` |
Binary file not shown.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Binary file not shown.
Binary file not shown.
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,13 +1,19 @@ | ||
<!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> | ||
<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
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 |
---|---|---|
|
@@ -4,14 +4,14 @@ | |
"description": "ReactJS Powered Presentation Framework", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"clean": "rimraf dist", | ||
"build": "npm run clean & cross-env NODE_ENV=production webpack --config webpack.config.production.js", | ||
"lint": "eslint --ext .js,.jsx .", | ||
"clean": "rimraf dist", | ||
"deploy": "npm run build && surge -p .", | ||
"export": "spectacle-renderer --delay 3000", | ||
"lint": "eslint --ext .js,.jsx .", | ||
"start": "cross-env NODE_ENV=development node server.js" | ||
}, | ||
"author": "", | ||
"author": "Formidable Labs <[email protected]> (https://formidable.com)", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@babel/polyfill": "^7.0.0", | ||
|
@@ -35,6 +35,7 @@ | |
"@babel/preset-react": "^7.0.0", | ||
"@babel/register": "^7.0.0", | ||
"@webpack-cli/migrate": "^0.1.2", | ||
"babel-eslint": "^10.0.1", | ||
"babel-loader": "^8.0.4", | ||
"babel-plugin-transform-react-remove-prop-types": "^0.4.18", | ||
"cross-env": "^5.2.0", | ||
|
@@ -43,6 +44,7 @@ | |
"eslint-config-formidable": "^4.0.0", | ||
"eslint-plugin-filenames": "^1.3.2", | ||
"eslint-plugin-import": "^2.14.0", | ||
"eslint-plugin-promise": "^4.0.1", | ||
"eslint-plugin-react": "^7.11.1", | ||
"express": "^4.16.3", | ||
"file-loader": "^2.0.0", | ||
|
Oops, something went wrong.