-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.js
37 lines (28 loc) · 933 Bytes
/
package.js
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
33
34
35
36
37
Package.describe({
summary: "angular-ui-router, the de-facto solution to flexible routing with nested views.",
version: "0.4.0",
git: "https://github.com/Urigo/meteor-angular-ui-router.git"
});
function packageExists(pkgname) {
var fs = Npm.require('fs');
var path = Npm.require('path');
var pkgpath = path.join('packages', pkgname);
return fs.existsSync(pkgpath);
}
Package.on_use(function(api) {
api.versionsFrom('[email protected]');
api.use('tinytest');
//api.use('bower', 'client');
api.use('templating', 'client');
api.export('UiRouter', 'client');
api.use('urigo:[email protected]', 'client');
api.addFiles('angular-ui-router.min.js', 'client');
// Install bower components.
api.addFiles('smart.json', 'client');
// Client files.
api.addFiles('init.js', 'client');
});
Package.onTest(function(api) {
api.use('tinytest');
api.addFiles('urigo:angular-ui-router-tests.js');
});