-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.js
More file actions
32 lines (24 loc) · 1.03 KB
/
package.js
File metadata and controls
32 lines (24 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Package.describe({
name: 'planettraining:ng-fullcalendar-lang-assets',
version: '2.3.2',
// Brief, one-line summary of the package.
summary: 'fullcalendar language files as assets',
git: 'https://github.com/planet-training/fullcalendar-lang-assets.git',
documentation: 'README.md'
});
Package.onUse(function (api) {
api.versionsFrom('1.1.0.2');
var fs = Npm.require('fs');
var path = Npm.require("path");
api.use('planettraining:ng-cache-buster@0.4.0', 'server');
var basePath = 'bower_components/fullcalendar/dist/lang';
var packagesPath = '';//'packages/fullcalendar-lang-assets';
var files = fs.readdirSync(path.join(packagesPath,basePath));
files.forEach(function (f) {
var fileName = path.basename(f)
api.addFiles('bower_components/fullcalendar/dist/lang/' + fileName, 'client', {isAsset: true});
});
//in case you need to access the version
api.addFiles('bower_components/fullcalendar/bower.json', 'server');
api.addFiles('cache_updater.js', 'server');
});