Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 721 Bytes

output.md

File metadata and controls

33 lines (25 loc) · 721 Bytes

While we're at it, we'll also create a bitly directory inside packages, and initialize our new Bitly package with a package.js file. All our Bitly-related functions will run on the server, so we don't need to add the package client-side.

Package.describe({
  summary: "Bitly package"
});

Package.on_use(function (api) {
  api.add_files('bitly.js', 'server');
  if(api.export)
    api.export('Bitly');
});

~~~coffee
Package.describe summary: "Bitly package"
Package.on_use (api) ->
  api.add_files "bitly.js", "server"
  api.export "Bitly"  if api.export
  return

Some random text, say with my name on it.

console.log("test");
console.log "test"

this is the end of the file