Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[api] Support .jitsuignore file
During packaging application, make `fstream-npm` read `.jitsuignore`
file to find files which should be ignored.

Depends on npm/fstream-npm#3.
Fixes #83.
  • Loading branch information
mmalecki committed Oct 20, 2012
1 parent 2291442 commit e5f0636
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/jitsu/package.js
Expand Up @@ -369,7 +369,10 @@ package.createTarball = function (dir, version, callback) {
var name = [jitsu.config.get('username'), pkg.name, version || pkg.version].join('-') + '.tgz',
tarball = path.join(jitsu.config.get('tmproot'), name);

fstreamNpm({ path: dir })
fstreamNpm({
path: dir,
ignoreFiles: ['.jitsuignore', '.npmignore', '.gitignore', 'package.json']
})
.on('error', callback)
.pipe(tar.Pack())
.on('error', callback)
Expand Down

0 comments on commit e5f0636

Please sign in to comment.