Skip to content

Precompile story #2

@sindresorhus

Description

@sindresorhus

Currently the truth is that actually writing the native extension is the easy part. The hard part is distributing it in a sane way. For most things you'd want cross-platform support, meaning Windows too. But the reality is that very few users have the required build chain, which makes using only a native dependency for reusable modules a no-go. Most that do have a JS fallback... Or, precompiled binaries.

Would be nice if this boilerplate would demonstrate that, or at least point it out so users are aware of the reality.

There's https://github.com/mapbox/node-pre-gyp and many does their own build thingy https://github.com/sass/node-sass/tree/master/scripts

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions