|
|
|
// package metadata file for Meteor.js
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var packageName = 'rubaxa:sortable'; // http://atmospherejs.com/rubaxa/sortable
|
|
|
|
|
|
|
|
var packageJson = JSON.parse(Npm.require("fs").readFileSync('package.json'));
|
|
|
|
|
|
|
|
Package.describe({
|
|
|
|
name: packageName,
|
|
|
|
summary: 'Sortable: reactive minimalist reorderable drag-and-drop lists on modern browsers and touch devices',
|
|
|
|
version: packageJson.version,
|
|
|
|
git: 'https://github.com/RubaXa/Sortable.git',
|
|
|
|
readme: 'https://github.com/RubaXa/Sortable/blob/master/meteor/README.md'
|
|
|
|
});
|
|
|
|
|
|
|
|
Package.onUse(function (api) {
|
|
|
|
api.versionsFrom(['METEOR@0.9.0', 'METEOR@1.0']);
|
|
|
|
api.use('templating', 'client');
|
|
|
|
api.use('dburles:mongo-collection-instances@0.2.6'); // to watch collections getting created
|
|
|
|
api.export('Sortable');
|
|
|
|
api.addFiles([
|
|
|
|
'Sortable.js',
|
|
|
|
'meteor/template.html', // the HTML comes first, so reactivize.js can refer to the template in it
|
|
|
|
'meteor/reactivize.js'
|
|
|
|
], 'client');
|
|
|
|
api.addFiles('meteor/methods.js'); // add to both client and server
|
|
|
|
});
|
|
|
|
|
|
|
|
Package.onTest(function (api) {
|
|
|
|
api.use(packageName, 'client');
|
|
|
|
api.use('tinytest', 'client');
|
|
|
|
|
|
|
|
api.addFiles('meteor/test.js', 'client');
|
|
|
|
});
|