4 ms·
I'm a bit confused, how are we supposed to use this without node? Definitely interested in the standalone version.
by wdewind 12y ago
I'm a bit confused, how are we supposed to use this without node? Definitely interested in the standalone version.
- quarterto 12y agoNote that if you're using the standalone version, the API is published under the rome global. If you're using CJS, then you'll have to require('rome'). You can use Browserify[1] or WebPack[2] as a CommonJS module loader. [1]: http://browserify.org/ http://browserify.org/ [2]: http://webpack.github.io/ http://webpack.github.io/
- wdewind 12y agoRight, so when he says dependency free...
- quarterto 12y agoBy that reasoning nothing is dependency-free, as it requires a browser, or a computer, or a universe... Dependency-free almost always refers to runtime dependencies. A build tool is not a dependency. (Rome isn't dependency-free in that sense either[1], but hey...) [1]: https://github.com/bevacqua/rome/blob/master/package.json#L20 https://github.com/bevacqua/rome/blob/master/package.json#L2...
- wdewind 12y agoWhy isn't a build tool a dependency? Seems arbitrary to me.
- quarterto 12y agoBecause it isn't needed at runtime. Definitely not arbitrary. scons isn't a dependency of Google Chrome.
- wdewind 12y agoYeah I guess that makes sense. Fair enough.
- coldtea 12y agoBecause when we talk about dependencies we usually talk about runtime dependencies. If you'll need to load other stuff to run this as an end user. Do you count gcc and make as "dependencies" on installing and/or running some software built with them?
- rhizome 12y agoI would suggest something analogous to "static build" rather than anything having to do with dependencies.
- micampe 12y agoBy that reasoning everything is dependency free, because I can just static link all the required libraries, or provide them in a vendor directory in the download.
- bevacqua 12y agoJust take the assets in the `dist` directory and the API is accessible on the `rome` global.
- deleted 12y ago[deleted]
- wdewind 12y agoI think maybe don't advertise it as dependency free. The modifications to get it to native js aren't massive, but it's not dependency free. For one thing if I make those modifications I then lose all future updates (or they become a massive pain in the ass). Edit: I'm wrong, I misunderstood dependency free. It would be great to have a native js version of this anyway.
- bshimmin 12y agoI don't understand how this can be considered dependency free in any sense - it has a dependency on Moment.js, which is a fairly large (and very popular and good) library for working with dates in JavaScript. Without Moment.js, this library would not work - therefore it is "dependent" on that. This is what the word "dependency" means. Just because you can bundle up that library in the dist doesn't mean it's not a dependency.