Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide Extern generation task #38

Open
Deraen opened this issue Sep 7, 2016 · 0 comments
Open

Provide Extern generation task #38

Deraen opened this issue Sep 7, 2016 · 0 comments
Assignees

Comments

@Deraen
Copy link
Member

Deraen commented Sep 7, 2016

npm package externs-generator provides a way to build extern file programmatically. Probably won't work for all libs, but should be useful.

It is possible to create a task which builds a temp dir with source files (library file and dependencies) and then shell out to npm. npm is already available at the CI and we can install the externs-generator globally.

(extern :files ["cljsjs/pouchdb/development/poucbdb.inc.js"
                ;; dependencies
                "cljsjs/jquery/development/jquery.inc.js"]
        :object "PouchDB"
        :output "cljsjs/pouchcb/common/pouchdb.ext.js")

Assigning to myself to keep track of this for my TODO list, but if someone want's to implement this, feel free.

@Deraen Deraen self-assigned this Sep 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant