4 ms·
Note 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 c
by quarterto 12y ago
Note 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.