smclab / titaniumifier

Get a Titanium™ SDK CommonJS module out of a Node package!
GNU Lesser General Public License v2.1
95 stars 15 forks source link

Gulp is a no-op (That #11

Closed sukima closed 9 years ago

sukima commented 9 years ago

Since the Gulp API handles promises you can call the titaniumifier API directly and return it's result inside a gulp task. This is line with how browserify integrate with Gulp and doesn't actually need a Gulp plugin:

Something like:

var pkg = require(__dirname + 'package.json');

gulp.task('build', function() {
  return  titaniumifier.packer.build({
    entry: '.',
    as: pkg.name,
    noDependencies: true
  })
  .then(function (zip) {
    return zip.writeModule(dest);
  });
});
yuchi commented 9 years ago

Would you consider building a gulp-titaniumifier to try this out? Actually I wanted to move to the latest browserify (streams based) before creating a gulp plugin.

Thank you for the info!

yuchi commented 9 years ago

Closing for inactivity. Gulp is used too little in the Titanium context to invest in a plugin for it.

We’ll reconsider once it gains popularity in our community.