RndPhrase icon indicating copy to clipboard operation
RndPhrase copied to clipboard

Make a rndphrase.js on www so it is possible to include it from appspot

Open rlindsgaard opened this issue 11 years ago • 5 comments

Instead of the rndphrase javascript is included in index.html it should be located in a separate script

rlindsgaard avatar Jul 20 '13 17:07 rlindsgaard

I suggest making it a proper module with an UMD wrapper and also release it on npm and bower. That gives users of the library maximum flexibility

Munter avatar Jul 21 '13 10:07 Munter

I can take a stab at this. My idea is to split the javascript itself into a seperate repository. RndPhrase.js would be a good name. This repository contains all parts of the current RndPhrase repository that can be run in a browser or in node. It will be exposed in npm an in bower as a seperately versioned module, and the current RndPhrase browser extension repository will change it's build system to fetch the new javascript module with one of these package managers pre-build.

Munter avatar Jul 21 '13 11:07 Munter

You took my idea a little bit further. :) I'm working on making the module work https://github.com/rlindsgaard/RndPhrase/tree/commonjs and putting

off-topic: Making a new repository is a good idea, shouldn't we get around to create an organization to keep the projects in one place? I'd be happy to create it and invite people interested.

rlindsgaard avatar Jul 21 '13 13:07 rlindsgaard

Yes. RndPhrase org.

I'm porting cubehash to AMD/CommonJS right now so it can be pulled in using a proper package manager. We can plug that in in a minute.

Munter avatar Jul 21 '13 14:07 Munter

Done with cubehash: https://github.com/Munter/cubehash.js

Can now be used via npm and bower

Munter avatar Jul 21 '13 14:07 Munter