Package.describe({
  name: 'cosmos:browserify',
  version: '0.1.4',
  summary: 'Bundle NPM modules for client side with Browserify',
  git: 'https://github.com/elidoran/cosmos-browserify.git',
  documentation: 'README.md'
});

Package.registerBuildPlugin({
  name: "cosmosBrowserify",
  use: ['coffeescript@1.0.6','meteor'],
  sources: ['plugin/browserify.coffee'],
  npmDependencies: {"browserify": "9.0.8"}
});

Package.onTest(function(api) {
  api.use('tinytest');
  api.use('cosmos:browserify');
  api.addFiles('test/browserify-tests.js');
});

@@ -278,16 +278,64 @@
 erify%22,%0A
+  // need 'meteor' for Npm and Meteor.wrapAsync%0A
   use: %5B
@@ -366,16 +366,16 @@
 teor'%5D,%0A
-
   source
@@ -515,82 +515,466 @@
 ;%0A  
-api.use('cosmos:browserify');%0A  api.addFiles('test/browserify-tests.js
+// not testing by adding package in 'use'%0A  api.use('coffeescript@1.0.6');%0A  api.addFiles(%5B%0A    // export stuff for use in Testing, and to Mock things like Npm%0A    //'test/export.js',%0A    // fill in the exported mocks (separate so I can write in CoffeScript)%0A    'test/mocks.coffee',%0A    // the tests%0A    'test/browserify-tests.coffee',%0A    // add our plugin file directly instead of adding package in api.use%0A    'plugin/browserify.coffee'%0A  %5D, 'client
 ');%0A
+%0A
 %7D);%0A

enable testing plugin file with mocks