intercellular / cell

A self-driving web app framework
https://www.celljs.org
MIT License
1.5k stars 94 forks source link

website stuff #113

Closed devsnek closed 7 years ago

devsnek commented 7 years ago

*.js.org

the people at js.org provide free subdomains for your projects. I thought it might be cool to grab cell.js.org https://github.com/js-org/dns.js.org

Proper CDN with versioning

i think it would be best to serve cell from a versioned cdn cdn.celljs.org/1.0.0/cell.min.js perhaps using cdnjs as our main cdn

gliechtenstein commented 7 years ago

*.js.org

I was just looking into this, but looks like we will have to give up on celljs.org if we want to apply for cell.js.org because github allows only one CNAME... Let me know if you know a way around

Proper CDN with versioning

Great idea, do you know a way to automate this? Or is this something we manually update everytime there's a new release? (been an "avid user" of cdnjs but never really hosted my own library there before 😅) Or even a pointer to how to get this setup would be awesome too. Thanks!

devsnek commented 7 years ago

CNAME allows one host per line iirc (i might be wrong) EDIT: they removed this functionality a long long time ago

cdnjs works by having a friggin huge github repo with every version of every lib they host, and updates are just prs. This could be automated with travis. EDIT: cdnjs now has autoupdate

EDIT I'm looking into adding cell to cdnjs, as part of this can you add a 1.0.0 release for cdnjs auto update purposes. https://github.com/cdnjs/cdnjs/pull/11441

devsnek commented 7 years ago

@gliechtenstein could you tag a release sometime in the near future so cdnjs's auto update can run when they merge the pr

gliechtenstein commented 7 years ago

@devsnek Wow totally missed that entire cdnjs thread and just saw it, sorry about that.

I just went ahead and created a release from master branch https://github.com/intercellular/cell/releases/tag/v1.0.0

This would work right?

devsnek commented 7 years ago

@gliechtenstein https://cdnjs.cloudflare.com/ajax/libs/cell/1.0.0/cell.min.js 🎉

gliechtenstein commented 7 years ago

@devsnek Awesome! Thanks! 🔥🔥🔥

I'll close this since the cdnjs issue is taken care of and there's not much we can do about the CNAME thing at the moment. I guess we can revisit if something changes or there's a way to do this without giving up on the main domain :)

devsnek commented 7 years ago

@gliechtenstein i was thinking perhaps the links everywhere that go to celljs.org/cell.min.js should be changed to cdnjs links and also the cell.min.js should be removed from the develop branch

gliechtenstein commented 7 years ago

@devsnek done and done and done 👍