3 ms·
It would have been nice to see an update to Tracery. It's been over two years since Tracery was updated and it's still not available as a CommonJS module: https
by _Marak_ 9y ago
It would have been nice to see an update to Tracery. It's been over two years since Tracery was updated and it's still not available as a CommonJS module: https://github.com/galaxykate/tracery https://github.com/galaxykate/tracery
It looks like Bottery is using a custom Tracery build which has no documentation: https://github.com/galaxykate/tracery-sugar https://github.com/galaxykate/tracery-sugar
The reason I bring this up is because we've had multiple developers ask us to integrate Tracery into another popular open-source project and we couldn't really do it without making a new heavy fork of the project.
- lazerwalker 9y agoFWIW, I've used https://www.npmjs.com/package/tracery-grammar https://www.npmjs.com/package/tracery-grammar before. It's maintained by the creator of Cheap Bots Done Quick, which the creator of Tracery pretty explicitly endorses (she calls CBDQ out as an inspiration for Bottery)
- _Marak_ 9y agoThanks. We tested with that fork as well. It's based off the old version of Tracery and also has no unit tests. If use-case was for building an application or bot, I'd probably not worry as much. We were considering vendoring tracery into open-source project for improving a core API method for composing data. If anyone is interested in helping here is the issue: https://github.com/Marak/faker.js/issues/495 https://github.com/Marak/faker.js/issues/495
- j_s 9y agoFrom a practical perspective this looks eerily similar to the 'dump code to an FTP site' approach to open source.