Debian Codegraph @

meteor/package.js

raw symbols SCIP
1 // package metadata file for Meteor.js
2 'use strict';
3
4 var packageName = 'autolinker:autolinker'; // https://atmospherejs.com/autolinker/autolinker
5 var where = 'client'; // where to install: 'client' or 'server'. For both, pass nothing.
6
7 var packageJson = JSON.parse(Npm.require("fs").readFileSync('package.json'));
8
9 Package.describe({
10 name: packageName,
11 summary: "Autolinker.js (official) - Automatically Link URLs, Email Addresses, Phone Numbers, Mentions (Twitter, Instagram), and Hashtags in a given block of text/HTML",
12 version: packageJson.version,
13 git: "https://github.com/gregjacobs/Autolinker.js.git"
14 });
15
16 Package.onUse(function(api) {
17 api.versionsFrom(['[email protected]', '[email protected]']);
18 api.addFiles(['dist/Autolinker.js', 'meteor/export.js']);
19 api.addFiles('meteor/helpers.js', ['client']);
20 api.export('Autolinker');
21 });
22
23 Package.onTest(function(api) {
24 api.use(packageName, where);
25 api.use('tinytest');
26 api.addFiles('meteor/test.js');
27 });