Skip to content

Commit 4b286e8

Browse files
committed
New version for Meteor packaging system
1 parent 77813bf commit 4b286e8

File tree

4 files changed

+66
-25
lines changed

4 files changed

+66
-25
lines changed

package.js

Lines changed: 30 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,38 @@
11
Package.describe({
2-
summary: "The simplest no-conflict way to use AngularJS with Meteor, Meteorite and Atmosphere Smart Packages."
2+
summary: "The simplest no-conflict way to use AngularJS with Meteor, Meteorite and Atmosphere Smart Packages.",
3+
version: "0.2.0",
4+
git: "git@github.com:Urigo/ngMeteor.git"
35
});
46

57
Package.on_use(function (api) {
6-
// Exports the ngMeteor package scope
7-
api.export('ngMeteor', 'client');
8+
api.versionsFrom('METEOR@0.9.0.1');
9+
// Exports the ngMeteor package scope
10+
api.export('ngMeteor', 'client');
811

912
api.use('jquery', 'client');
1013

11-
// Files to load in Client only.
12-
api.add_files([
13-
// Lib Files
14-
'lib/angular.js',
15-
'lib/angular-csp.css',
16-
'lib/angular-animate.js',
17-
'lib/angular-cookies.js',
18-
'lib/angular-resource.js',
19-
'lib/angular-route.js',
20-
'lib/angular-sanitize.js',
21-
'lib/angular-touch.js',
22-
'lib/angular-hash-key-copier.js',
23-
// Module Files
24-
'modules/ngMeteor-collections.js',
25-
'modules/ngMeteor-template.js',
26-
// Finally load ngMeteor File
27-
'ngMeteor.js'
28-
], 'client');
14+
// Files to load in Client only.
15+
api.add_files([
16+
// Lib Files
17+
'lib/angular.js',
18+
'lib/angular-csp.css',
19+
'lib/angular-animate.js',
20+
'lib/angular-cookies.js',
21+
'lib/angular-resource.js',
22+
'lib/angular-route.js',
23+
'lib/angular-sanitize.js',
24+
'lib/angular-touch.js',
25+
'lib/angular-hash-key-copier.js',
26+
// Module Files
27+
'modules/ngMeteor-collections.js',
28+
'modules/ngMeteor-template.js',
29+
// Finally load ngMeteor File
30+
'urigo:ngmeteor.js'
31+
], 'client');
32+
});
33+
34+
Package.onTest(function(api) {
35+
api.use('tinytest');
36+
api.use('urigo:ngmeteor');
37+
api.addFiles('urigo:ngmeteor-tests.js');
2938
});

smart.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"name": "ngMeteor",
2+
"name": "urigo:ngmeteor",
33
"description": "The simplest no-conflict way to use AngularJS with Meteor",
4-
"homepage": "https://github.com/loneleeandroo/ngMeteor",
5-
"author": "Androo Lee",
6-
"git": "https://github.com/loneleeandroo/ngMeteor.git",
4+
"homepage": "https://github.com/Urigo/ngMeteor",
5+
"author": "Androo Lee & Uri Goldshtein",
6+
"git": "https://github.com/Urigo/ngMeteor.git",
77
"version": "0.2.0",
88
"packages": {}
99
}

urigo:ngmeteor-tests.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Write your tests here!
2+
// Here is an example.
3+
Tinytest.add('example', function (test) {
4+
test.equal(true, true);
5+
});

urigo:ngmeteor.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Define ngMeteor and its dependencies
2+
ngMeteor = angular.module('ngMeteor', [
3+
'ngMeteor.collections',
4+
'ngMeteor.template',
5+
'hashKeyCopier',
6+
'ngRoute',
7+
'ngTouch',
8+
'ngAnimate',
9+
'ngCookies',
10+
'ngResource',
11+
'ngSanitize'
12+
]);
13+
14+
// Change the data-bindings from {{foo}} to [[foo]]
15+
ngMeteor.config(['$interpolateProvider',
16+
function ($interpolateProvider) {
17+
$interpolateProvider.startSymbol('[[');
18+
$interpolateProvider.endSymbol(']]');
19+
}
20+
]);
21+
22+
// Manual initilisation of ngMeteor
23+
angular.element(document).ready(function() {
24+
if (!angular.element(document).injector()){
25+
angular.bootstrap(document, ['ngMeteor']);
26+
}
27+
});

0 commit comments

Comments
 (0)