react-router-component icon indicating copy to clipboard operation
react-router-component copied to clipboard

Host on cdnjs

Open sdemjanenko opened this issue 11 years ago • 7 comments

It would be awesome if this could be hosted on cdnjs

sdemjanenko avatar Mar 26 '14 21:03 sdemjanenko

+1 for a standalone build of the library.

bitfrost avatar Apr 02 '14 10:04 bitfrost

Check out bower install react-router-component in the meantime which exports ReactRouter global symbol and is AMD module.

andreypopp avatar Apr 02 '14 11:04 andreypopp

+1 for standalone.

I tried installing bower and doing the bower install but there doesn't seem to be any file it produces that I can just do a script src into my page (seems to need require.js or something?).

The Readme on the project teases us with a "Its size is about 3.5kb gzipped." but no such minified drop-in-and-go file seems to exist.

davisable avatar Apr 20 '14 13:04 davisable

+1 Edit: I actually did make the file myself. For the project/environment I am working on though, I do not use npm or git (I use NuGet and TFS). In order to use this package, I had to install node, install git, install bower, build, and then pull the file over to my solution. If it was gzipped and hosted, I could have have done this a little easier. I would even +1 for a NuGet version.

Jabronironi avatar Jul 04 '14 17:07 Jabronironi

You can create the file yourself:

git clone [email protected]:andreypopp/react-router-component-bower.git && cd react-router-component-bower
npm install
# Update submodules
git submodule init
git submodule update
cd src 
# Optional; check out HEAD if you want 0.19.0
# git checkout master
npm install
cd ..
# Build
make react-router-component.min.js

STRML avatar Jul 04 '14 18:07 STRML

Seeing the last comment is from 2014, does this no longer work?

What are ways to compile react-router-component in a standalone JS file?

skiwi2 avatar May 05 '15 17:05 skiwi2

See commit: 3df703d01 The standalone build was removed a little over a year ago.

jsg2021 avatar May 05 '15 20:05 jsg2021