Skip to content
pack your node_modules as *.tgz files for version control and easy deploys
JavaScript
Latest commit 624ca0e Jan 20, 2016 @mikefrey Merge pull request #19 from mikefrey/travis
travis ci support
Failed to load latest commit information.
bin removed unused packmod file Jun 25, 2013
lib travis ci support Jan 20, 2016
test
.gitignore feat(build): Added gulp script for running build and test May 3, 2014
.jshintrc
.travis.yml travis ci support Jan 20, 2016
README.md build indicator Jan 20, 2016
gulpfile.js travis ci support Jan 20, 2016
index.js feature(bower): Add bower support Feb 28, 2014
package.json travis ci support Jan 20, 2016

README.md

node-pac

Travis CI Gitter

Pack your node_modules as *.tgz files for version control and easy deploys

Why?

Because commiting the node_modules into source control sucks. It kills diffs and makes code reviews difficult.

Read more in my blog post.

Installation

npm install -g pac

Usage

  Usage: pac [options] [packageName ...]

  Options:

    -h, --help             output usage information
    -i, install            Install packages
    -P, --production       Install/Pack production packages
    -s, --strategy [type]  Uses specified strategy [npm|bower] to install/pack
                           packages. Default is "npm".
    -v, --verbose          Logs out verbose log messages

  Examples:

    $ pac -P install
    $ pac grunt
    $ pac -s bower install
    $ pac -s bower angular

From a command prompt, run pac from your project's root directory.

You'll see a new .modules directory that contains gzipped tarballs of your dependencies. When deploying, you can use pac to install the modules:

mkdir -p node_modules
pac install
npm rebuild
Something went wrong with that request. Please try again.