GustavoFernandes / order-splitter

https://gustavofernandes.github.io/order-splitter/
MIT License
3 stars 3 forks source link

No longer deploy source #24

Closed dumbbillyhardy closed 7 years ago

dumbbillyhardy commented 7 years ago

You can use gulp, grunt or even just npm to run build tasks that can consolidate js files, reducing the number of round trips that pages have to make. You can also incorporate transpiling to earlier JS version, expanding the supported devices

jonsmithers commented 7 years ago

What if we had the traditional dist/ and src/ directories, and served both to github pages. Then we could have a "stable" url and a "latest" url.

https://gustavofernandes.github.io/order-splitter/      # redirects to ./dist/
https://gustavofernandes.github.io/order-splitter/dist/ # minified stable version
https://gustavofernandes.github.io/order-splitter/src/  # unminified "dev"

Project structure:

index.html (just redirects to ./dist/index.html)
dist/
└── index.html (minified)
src/
└── index.html
GustavoFernandes commented 7 years ago

@jonsmithers I don't see a need to deploy possibly-unstable source code when dealing with real-world money exchange. There would also need to be distinctions made when an split order goes public saying that it was calculated on an experimental branch.