iodide-project / iodide

Literate scientific computing and communication for the web
Mozilla Public License 2.0
1.49k stars 142 forks source link

build system next steps #223

Closed bcolloran closed 6 years ago

bcolloran commented 6 years ago

now that we have Neutrino up and running, we can work on refining our build process a little bit. @wlach, i'll basically write out a wishlist, and we can figure out what makes sense, and break out more specific issues as needed

hamilton commented 6 years ago

Great idea. It would also be worth writing up how we bundle, publish, and ship a new version and keeping that on the wiki. I don't think it is as simple as updating package.json and hitting the "publish" button on GH.

bcolloran commented 6 years ago

@wlach any thoughts on this William? Now that I have jsmd export working, i want to move our examples to that (#224), among other experiments with jsmd export -- and I'd also like to be able to start sharing notebooks. But that's blocked on being able to build the serverless versions of the html file, js bundle, and css bundle without the neutrino hotloader middleware/bootstrapping stuff.

@hamilton at least in the early stages (between now and our target full release in the summer), the build/ship process could be that simple-- just have neutrino copy versioned app resources to docs/dist (or where we want) in the repo, and they automatically become publically available and hotlinkable on the github pages site. That process can work for now until we want to think about iodide.io, cdns, etc.

wlach commented 6 years ago

My immediate thought would be to customize where we output the assets:

https://neutrino.js.org/customization/#optionsoutput

I think it might be easier/simpler to version by directory, as opposed to by file name. I.e.

/0.8.5/index.css /0.8.5/index.js

You might be able to get some help on the #neutrino irc channel for this.

wlach commented 6 years ago

Started working on this, still have some details to sort out.