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

Question about publishing #13

Closed
dions00 opened this issue Dec 15, 2016 · 4 comments
Closed

Question about publishing #13

dions00 opened this issue Dec 15, 2016 · 4 comments

Comments

@dions00
Copy link

dions00 commented Dec 15, 2016

I'm trying to test the publish of a library. When I use 'npm pack', the ng2-your-library-0.0.0.tgz file doesn't contain any javascript or d.ts files

Can you explain to me what I should put inside the package.json? I tried:
...
"main": "ng2-your-library",
"typings": "index.d.ts",
...
What are the files the tgz file will have, the contain of the dist folder?

Thanks,
Stephane

@stratus1011
Copy link

I am wondering the same thing. I'm not sure how to generate the actual library files and package them

@gabwh
Copy link

gabwh commented Jan 7, 2017

+1

@NathanWalker
Copy link
Collaborator

Hi @dions00 @gabwh @stratus1011 sorry for late response; you don't need to use npm pack for publishing. Instead, please follow these instructions to publish (new simpler publishing prep steps):
https://github.com/preboot/angular-library-seed/blob/master/PUBLISHING.md

Repo was just updated to use new ngx prefix; also dependencies were updated.

@NathanWalker
Copy link
Collaborator

There's a couple other things I want to add to make this a bit nicer, please refer to this issue:
#10
mainly outputting a UMD bundle.

/cc @shlomiassaf thanks for tips there - will look at your resources - if you get a chance or have any interest in submitting a PR to add support for UMD bundling would be greatly appreciated.

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

No branches or pull requests

4 participants