react-starter icon indicating copy to clipboard operation
react-starter copied to clipboard

Static site generator

Open josephfinlayson opened this issue 10 years ago • 5 comments

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 avatar Jun 18 '15 21:06 josephfinlayson

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?

sokra avatar Jun 19 '15 09:06 sokra

Cheers, I will look into this

josephfinlayson avatar Jun 22 '15 08:06 josephfinlayson

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

Does it apply here?

sokra avatar Jun 22 '15 08:06 sokra

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 avatar Jun 22 '15 22:06 josephfinlayson

It's now cross platform

josephfinlayson avatar Jun 23 '15 21:06 josephfinlayson