Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upModify resources for publishing to npm. #3108
Conversation
rnicholus
commented
Jan 6, 2015
|
It would be great if angular-bootstrap could be published to npm. Looks like mostly everything is in place here. Any idea when this can be published to npm? |
|
It seems all of the angular-ui stuff using a specific publishing schema. I want to modify that to support publishing to NPM as well, but I jjust havent had the time. See here: angular-ui/ui-layout#71 |
rnicholus
commented
Jan 6, 2015
|
It will probably be easiest if someone just forks this project and publishes it to npm. I may do that in the near future in fact (unless someone beat me to it). |
|
Possibly, but there are a number of useful modules on here, and forking a bunch of them just to have publishable versions seems unnecessarily complicated. Short term easiest, yes, but long term certainly not ideal, unless theres pushback to allowing the publishing via the custom platform. |
rnicholus
commented
Jan 6, 2015
|
Hmm, I guess I'm not familiar with this "custom platform" for publishing. |
|
See here: angular-ui/ui-layout#72 (comment) Here is the repo that handles their publishing code: https://github.com/angular-ui/angular-ui-publisher |
|
For reference: angular-ui/angular-ui-publisher#3 |
- Build in support for npm consumption for users - Improve efficiency of travis tasks Closes angular-ui#3108
maxkorp commentedDec 15, 2014
This PR resolves #1636
This adds a .npmignore to reduce the size of a published NPM package (while allowing the built files in ./dist to be published), as well as setting npm's prepublish script to run grunt build, so the files don't have to be built after pulling in from npm.
Alternatively, we could have this be an install script (so once they pull the source from NPM, it compiles locally), but as described on the NPM site that is generally an antipattern, and where possible the ready-to-go concatenated scripts should be published instead.
With this NPMignore setting, the only files that should be present once published to NPM should be the compiles js in dist, the npmignore, the changelog, the readme, license, and package.json.