Closed ddellacosta closed 7 years ago
@ddellacosta I was able to generate the extern using the following steps:
https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react-with-addons.js
(peer dependency)https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react-dom.js
(peer dependency)https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.14.0/moment.js
(peer dependency)https://cdn.rawgit.com/ddellacosta/fe3bfd51fe4440d88c98aa211fb3b942/raw/cce4795bfa9f3864e90abafc7702fd3f1eca200a/whatever.js
(this is the file you linked above)ReactDates
mkdir test && cd test
curl -LO https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react-with-addons.js
(peer dependency)curl -LO https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react-dom.js
(peer dependency)curl -LO https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.14.0/moment.js
(peer dependency)curl -LO https://cdn.rawgit.com/ddellacosta/fe3bfd51fe4440d88c98aa211fb3b942/raw/cce4795bfa9f3864e90abafc7702fd3f1eca200a/whatever.js
(this is the file you linked above)generate-extern -f react-with-addons.js,react-dom.js,moment.js,whatever.js -n ReactDates -o react-dates.ext.js
@jmmk Thank you so much!! That was a great help both in getting this file generated and in improving my understanding of how the extern generator works. I really appreciate it.
Using a file generated via running
boot package install target
via the cljsjs package (https://github.com/cljsjs/packages/pull/1062), I got:Am I doing something obviously wrong? I wasn't sure if this was the right file to attempt to generate externs from, but it wasn't obvious what to use otherwise. Any help or suggestions would be most appreciated!
Original codebase I'm working from in case it's helpful: https://github.com/airbnb/react-dates