Skip to content

Commit

Permalink
stuff that doesn't have conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
glasser committed May 13, 2013
1 parent 6f05a29 commit 6b48e8b
Show file tree
Hide file tree
Showing 69 changed files with 1,006 additions and 90 deletions.
1 change: 1 addition & 0 deletions packages/accounts-base/accounts_common.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @export Accounts
if (typeof Accounts === 'undefined')
Accounts = {};

Expand Down
7 changes: 5 additions & 2 deletions packages/accounts-base/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ Package.describe({
});

Package.on_use(function (api) {
api.use('underscore', 'server');
api.use('underscore', ['client', 'server']);
api.use('localstorage', 'client');
api.use('accounts-urls', 'client');
api.use('accounts-urls', ['client', 'server']);
api.use('deps', 'client');
api.use('random', ['client', 'server']);

// need this because of the Meteor.users collection but in the future
// we'd probably want to abstract this away
Expand All @@ -24,5 +26,6 @@ Package.on_use(function (api) {
Package.on_test(function (api) {
api.use('accounts-base');
api.use('tinytest');
api.use('random');
api.add_files('accounts_tests.js', 'server');
});
1 change: 1 addition & 0 deletions packages/accounts-oauth1-helper/oauth1_binding.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
var crypto = Npm.require("crypto");
var querystring = Npm.require("querystring");

// @export OAuth1Binding
// An OAuth1 wrapper around http calls which helps get tokens and
// takes care of HTTP headers
//
Expand Down
5 changes: 4 additions & 1 deletion packages/accounts-oauth1-helper/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Package.describe({
});

Package.on_use(function (api) {
api.use('accounts-oauth-helper', 'client');
api.use('accounts-oauth-helper', ['client', 'server']);
api.use('accounts-base', ['client', 'server']);

api.add_files('oauth1_binding.js', 'server');
Expand All @@ -13,6 +13,9 @@ Package.on_use(function (api) {
});

Package.on_test(function (api) {
api.use('tinytest');
api.use('random');
api.use('accounts-base');
api.use('accounts-oauth1-helper', 'server');
api.add_files("oauth1_tests.js", 'server');
});
5 changes: 4 additions & 1 deletion packages/accounts-oauth2-helper/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@ Package.describe({
});

Package.on_use(function (api) {
api.use('accounts-oauth-helper', 'client');
api.use('accounts-oauth-helper', ['client', 'server']);
api.use('accounts-base', ['client', 'server']);

api.add_files('oauth2_common.js', ['client', 'server']);
api.add_files('oauth2_server.js', 'server');
});

Package.on_test(function (api) {
api.use('tinytest');
api.use('random');
api.use('accounts-base');
api.use('accounts-oauth2-helper', 'server');
api.add_files("oauth2_tests.js", 'server');
});
5 changes: 4 additions & 1 deletion packages/accounts-password/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Package.on_use(function(api) {
api.use('accounts-base', ['client', 'server']);
api.use('srp', ['client', 'server']);
api.use('email', ['server']);
api.use('random', ['server']);
api.use('underscore');

api.add_files('email_templates.js', 'server');
api.add_files('password_server.js', 'server');
Expand All @@ -14,7 +16,8 @@ Package.on_use(function(api) {
});

Package.on_test(function(api) {
api.use(['accounts-password', 'tinytest', 'test-helpers', 'deps']);
api.use(['accounts-password', 'tinytest', 'test-helpers', 'deps',
'accounts-base', 'random', 'email', 'underscore']);
api.add_files('password_tests_setup.js', 'server');
api.add_files('password_tests.js', ['client', 'server']);
api.add_files('email_tests_setup.js', 'server');
Expand Down
3 changes: 2 additions & 1 deletion packages/accounts-ui-unstyled/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ Package.describe({
});

Package.on_use(function (api) {
api.use(['accounts-urls', 'accounts-base', 'underscore', 'templating'], 'client');
api.use(['accounts-urls', 'accounts-base', 'underscore', 'templating',
'handlebars', 'spark', 'session'], 'client');

api.add_files([
'accounts_ui.js',
Expand Down
1 change: 1 addition & 0 deletions packages/accounts-urls/url_client.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @export Accounts
if (typeof Accounts === 'undefined')
Accounts = {};

Expand Down
1 change: 1 addition & 0 deletions packages/accounts-urls/url_server.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @export Accounts
if (typeof Accounts === 'undefined')
Accounts = {};

Expand Down
5 changes: 3 additions & 2 deletions packages/appcache/appcache-client.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
if (! window.applicationCache)
return;
if (window.applicationCache) {

var appCacheStatuses = [
'uncached',
Expand Down Expand Up @@ -65,3 +64,5 @@ window.applicationCache.addEventListener('obsolete', (function() {
Meteor._reload.reload();
}
}), false);

} // if window.applicationCache
1 change: 1 addition & 0 deletions packages/coffeescript/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Package.register_extension("coffee", coffeescript_handler);
Package.register_extension("litcoffee", coffeescript_handler);

Package.on_test(function (api) {
api.use(['coffeescript', 'tinytest']);
api.add_files([
'coffeescript_tests.coffee',
'coffeescript_strict_tests.coffee',
Expand Down
1 change: 1 addition & 0 deletions packages/deps/deps.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @export Deps
Deps = {};
Deps.active = false;
Deps.currentComputation = null;
Expand Down
2 changes: 2 additions & 0 deletions packages/domutils/domutils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// @export DomUtils
DomUtils = {};

var qsaFindAllBySelector = function (selector, contextNode) {
// If IE7 users report the following error message, you
// can fix it with "meteor add jquery".
Expand Down
4 changes: 3 additions & 1 deletion packages/domutils/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ Package.on_use(function (api) {
// cut this dependency.
api.use('jquery', 'client');

api.use('underscore', 'client');

api.add_files('domutils.js', 'client');
});

Package.on_test(function (api) {
api.use(['tinytest']);
api.use(['domutils', 'test-helpers'], 'client');
api.use(['domutils', 'test-helpers', 'underscore'], 'client');

api.add_files([
'domutils_tests.js'
Expand Down
4 changes: 3 additions & 1 deletion packages/ejson/ejson.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
EJSON = {}; // Global!
// @export EJSON
EJSON = {};

var customTypes = {};
// Add a custom type, using a method of your choice to get to and
// from a basic JSON-able representation. The factory argument
Expand Down
3 changes: 2 additions & 1 deletion packages/ejson/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ Package.describe({
});

Package.on_use(function (api) {
api.use('json');
api.use(['json', 'underscore']);
api.add_files('ejson.js', ['client', 'server']);
api.add_files('base64.js', ['client', 'server']);
});

Package.on_test(function (api) {
api.use('ejson', ['client', 'server']);
api.use(['tinytest', 'underscore']);

api.add_files('base64_test.js', ['client', 'server']);
api.add_files('ejson_test.js', ['client', 'server']);
Expand Down
1 change: 1 addition & 0 deletions packages/email/email.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @export Email
Email = {};

var Future = Npm.require('fibers/future');
Expand Down
29 changes: 11 additions & 18 deletions packages/handlebars/package.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@
// XXX this is hella confusing. this package really only has the
// handlebars *runtime*, for precompiled templates. so really it is an
// internal package that should get shipped down to the client iff you
// have a precompiled handlebars template in your project.

Package.describe({
summary: "Simple semantic templating language"
summary: "Simple semantic templating language",
internal: true
});

Package._require('parse.js'); // needed at bundle time

Package.on_use(function (api) {
// XXX should only be sent if we have handlebars templates in the app..
api.add_files('evaluate.js', 'client');
api.add_files('parse.js', 'server'); // needed on server for tests

api.use('underscore', 'client');
// XXX This package has been folded into the 'templating' package
// for now. Historically, you could see it in your package list
// (because it didn't have internal: true, which it probably should
// have), but adding it didn't do anything (because it just
// contained the handlebars precompiler and runtime, not any
// functions you could call yourself.) So leave it around as an
// empty package for the moment so as to not break the projects of
// anyone that happened to type 'meteor add handlebars' because they
// thought they had to.
});

// XXX lots more to do here .. registering this a templating engine,
// making it the default default, providing the compiler code,
// depending on the node package (or packaging the compiler
// ourselves..)
7 changes: 7 additions & 0 deletions packages/htmljs/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ var tag_names =
'P PARAM PRE Q S SAMP SCRIPT SELECT SMALL SPAN STRIKE STRONG SUB SUP ' +
'TABLE TBODY TD TEXTAREA TFOOT TH THEAD TR TT U UL VAR').split(' ');

// @export A, ABBR, ACRONYM, B, BDO, BIG, BLOCKQUOTE, BR, BUTTON, CAPTION
// @export CITE, CODE, COL, COLGROUP, DD, DEL, DFN, DIV, DL, DT, EM, FIELDSET
// @export FORM, H1, H2, H3, H4, H5, H6, HR, I, IFRAME, IMG, INPUT, INS, KBD
// @export LABEL, LEGEND, LI, OBJECT, OL, OPTGROUP, OPTION, P, PARAM, PRE, Q
// @export S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP
// @export TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR

for (var i = 0; i < tag_names.length; i++) {
var tag = tag_names[i];

Expand Down
3 changes: 3 additions & 0 deletions packages/http/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@ Package.describe({
});

Package.on_use(function (api) {
api.use('underscore');
api.add_files('httpcall_common.js', ['client', 'server']);
api.add_files('httpcall_client.js', 'client');
api.add_files('httpcall_server.js', 'server');
});

Package.on_test(function (api) {
api.use('underscore');
api.use('random');
api.use('jquery', 'client');
api.use('http', ['client', 'server']);
api.use('test-helpers', ['client', 'server']);
Expand Down
1 change: 1 addition & 0 deletions packages/jsparse/lexer.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ Lexeme.prototype.toString = function () {
// Thie flag can be read and set manually to affect the
// parsing of the next token.

// @export JSLexer
JSLexer = function (code) {
this.code = code;
this.pos = 0;
Expand Down
2 changes: 1 addition & 1 deletion packages/jsparse/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Package.on_use(function (api) {
});

Package.on_test(function (api) {
api.use('tinytest');
api.use(['tinytest', 'underscore']);
api.use('jsparse', 'client');

api.add_files('parser_tests.js',
Expand Down
1 change: 1 addition & 0 deletions packages/jsparse/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ var makeSet = function (array) {
};


// @export JSParser
JSParser = function (code, options) {
this.lexer = new JSLexer(code);
this.oldToken = null;
Expand Down
1 change: 1 addition & 0 deletions packages/jsparse/parserlib.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ var isArray = function (obj) {
return obj && (typeof obj === 'object') && (typeof obj.length === 'number');
};

// @export ParseNode
ParseNode = function (name, children) {
this.name = name;
this.children = children;
Expand Down
2 changes: 1 addition & 1 deletion packages/less/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ Package.register_extension(
Package.register_extension("lessimport", function () {});

Package.on_test(function (api) {
api.use('test-helpers');
api.use(['test-helpers', 'tinytest', 'less']);
api.add_files(['less_tests.less', 'less_tests.js'], 'client');
});
2 changes: 1 addition & 1 deletion packages/livedata/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Package.on_test(function (api) {
api.use('livedata', ['client', 'server']);
api.use('mongo-livedata', ['client', 'server']);
api.use('test-helpers', ['client', 'server']);
api.use('tinytest');
api.use(['underscore', 'tinytest', 'random', 'deps']);

api.add_files('livedata_connection_tests.js', ['client', 'server']);
api.add_files('livedata_tests.js', ['client', 'server']);
Expand Down
2 changes: 2 additions & 0 deletions packages/liverange/liverange.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ var wrapEndpoints = function (start, end) {
//
// XXX Should eventually support LiveRanges where start === end
// and start.parentNode is null.
//
// @export LiveRange
LiveRange = function (tag, start, end, inner) {
if (start.nodeType === 11 /* DocumentFragment */) {
end = start.lastChild;
Expand Down
2 changes: 1 addition & 1 deletion packages/liverange/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Package.on_use(function (api) {

Package.on_test(function (api) {
api.use(['tinytest']);
api.use(['liverange', 'test-helpers', 'domutils'], 'client');
api.use(['liverange', 'test-helpers', 'domutils', 'underscore'], 'client');

api.add_files([
'liverange_test_helpers.js',
Expand Down
1 change: 1 addition & 0 deletions packages/logging/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Package.on_use(function (api, where) {
});

Package.on_test(function (api) {
api.use('tinytest');
api.use('logging', 'client');
api.add_files('logging_test.js', 'client');
});
1 change: 1 addition & 0 deletions packages/meteor/client_environment.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @export Meteor
Meteor = {
isClient: true,
isServer: false
Expand Down
2 changes: 1 addition & 1 deletion packages/meteor/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Package.on_use(function (api, where) {
});

Package.on_test(function (api) {
api.use('tinytest');
api.use(['underscore', 'tinytest']);

api.add_files('client_environment_test.js', 'client');
api.add_files('server_environment_test.js', 'server');
Expand Down
1 change: 1 addition & 0 deletions packages/meteor/server_environment.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @export Meteor
Meteor = {
isClient: false,
isServer: true
Expand Down
1 change: 1 addition & 0 deletions packages/minimongo/minimongo.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

// LiveResultsSet: the return value of a live query.

// @export LocalCollection
LocalCollection = function () {
this.docs = {}; // _id -> document (also containing id)

Expand Down
6 changes: 4 additions & 2 deletions packages/minimongo/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ Package.on_use(function (api, where) {

// It would be sort of nice if minimongo didn't depend on
// underscore, so we could ship it separately.
api.use(['underscore', 'json', 'ejson', 'ordered-dict', 'random'], where);
api.use(['underscore', 'json', 'ejson', 'ordered-dict', 'deps',
'random', 'ordered-dict'], where);
api.add_files([
'minimongo.js',
'selector.js',
Expand All @@ -21,6 +22,7 @@ Package.on_use(function (api, where) {
Package.on_test(function (api) {
api.use('minimongo', 'client');
api.use('test-helpers', 'client');
api.use('tinytest');
api.use(['tinytest', 'underscore', 'ejson', 'ordered-dict',
'random', 'deps']);
api.add_files('minimongo_tests.js', 'client');
});
6 changes: 3 additions & 3 deletions packages/mongo-livedata/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ Package.describe({
Npm.depends({mongodb: "1.2.13"});

Package.on_use(function (api) {
api.use(['random', 'ejson', 'json', 'underscore', 'minimongo', 'logging', 'livedata'],
api.use(['random', 'ejson', 'json', 'underscore', 'minimongo', 'logging',
'livedata', 'deps'],
['client', 'server']);

api.add_files('mongo_driver.js', 'server');
Expand All @@ -26,8 +27,7 @@ Package.on_use(function (api) {

Package.on_test(function (api) {
api.use('mongo-livedata');
api.use('tinytest');
api.use('test-helpers');
api.use(['tinytest', 'underscore', 'test-helpers', 'ejson', 'random']);
// XXX test order dependency: the allow_tests "partial allow" test
// fails if it is run before mongo_livedata_tests.
api.add_files('mongo_livedata_tests.js', ['client', 'server']);
Expand Down
Loading

0 comments on commit 6b48e8b

Please sign in to comment.