Skip to content
This repository has been archived by the owner on Jan 16, 2018. It is now read-only.

Static site generator #82

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

josephfinlayson
Copy link

This PR creates a new NPM task (npm run build-static) that makes it easy to get a static site running on github pages.

It stops the generation of async modules, includes a skeleton index.html folder, and provides a shell script that automates the creation of a github page - you can see the results here: http://josephfinlayson.github.io/react-starter/

@josephfinlayson josephfinlayson mentioned this pull request Jun 19, 2015
@sokra
Copy link
Member

sokra commented Jun 19, 2015

pretty cool...

gh-pages-deploy.sh is propably platform dependend. I think there is some module on npm that does the same. Could you use this instead?

@josephfinlayson
Copy link
Author

Cheers, I will look into this

@sokra
Copy link
Member

sokra commented Jun 22, 2015

You could also look into https://github.com/markdalgleish/static-site-generator-webpack-plugin.

Does it apply here?

@josephfinlayson
Copy link
Author

It wouldn't help make this platform independent, I think something like this https://github.com/douglasduteil/node-git-deployor would help here. I'll test it when I get some time.

What's cool about this is it gives you the simplest path to deploy react-starter, which means it spans from something that's almost production ready, so something than can be placed on the internet in ten minutes, without even splinning up a server

@josephfinlayson
Copy link
Author

It's now cross platform

@@ -0,0 +1,15 @@
require('shelljs/global');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add shelljs to the package.json

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants