-
Notifications
You must be signed in to change notification settings - Fork 31
Can we slim down "release" builds? #241
Comments
Posting as a question, not sure how feasible it is. Perhaps we can hook into GYP to delete some of the build state for release builds. |
Looking at the GYP documentation, doesn't appear to be any hooks or way we can execute code, and even if we could it would be tricky to make it platforn independent. I think an NPM hook for |
I thought we need |
Yes, it works.
|
Any progress on this? We'd love to take advantage of this slimmed down release. |
@gap777 There hasn't been, I am not entirely sure if it is possible from Protagonist alone. I haven't had chance to fully look into it, it might be up for discussion upstream in Node JS (node-gyp specifically: https://github.com/nodejs/node-gyp) since this can apply to all the C++ add-ons for Node. If you want a slimmed down build, you can take a look at drafter.js, it's a pure JavaScript version of Protagonist (https://github.com/apiaryio/drafter.js/). |
When you
npm install protagonist
into a project, it takes up around 100MB, over 90MB of that is built artefacts which are not needed by Protagonist at runtime, all that is really needed frombuild
at runtime isbuild/release/protagonist.node
.The text was updated successfully, but these errors were encountered: