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

Support pkg #849

Merged
merged 3 commits into from Aug 12, 2017
Merged

Support pkg #849

merged 3 commits into from Aug 12, 2017

Conversation

mafintosh
Copy link
Contributor

No description provided.

@joehand
Copy link
Collaborator

joehand commented Aug 12, 2017

Should be able to use travis to automatically create releases: https://docs.travis-ci.com/user/deployment/releases/.

Looking into it...

skip_join: true
on_success: change
on_failure: always

deploy:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this work?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trying to figure it out =)

  1. package binary with pkg (npm run package)
  2. travis automatically builds after tests pass
  3. uploads to github releases

I don't see the result of this last build anywhere though. Not sure how it works without the tags.

@joehand joehand merged commit 13fa2ca into master Aug 12, 2017
@joehand joehand deleted the support-pkg branch August 12, 2017 01:08
},
"pkg": {
"assets": [
"node_modules/utp-native/prebuilds/**",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why double * when globbing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that means it is recursive but I don't really know what I'm doing

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@joehand joehand mentioned this pull request Aug 12, 2017
@aschrijver
Copy link

aschrijver commented Aug 15, 2017

Does pkg also do bundle optimization such as the tree shaking in rollup? https://github.com/rollup/rollup#tree-shaking

Are you intend to use as executable app bundler, e.g. when used on android as a replacement for node-on-android? Can pkg do that?

@mafintosh
Copy link
Contributor Author

mafintosh commented Aug 15, 2017 via email

@aschrijver
Copy link

I was trying to run rollup to see what it does, but it cannot bundle this project by default because it uses request which in turn uses a buggy aws-sign2 (v0.6.0): request/request#2483

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants