From 734fecc5467c5bdf33fdbee3f0cd5bda61dbe05b Mon Sep 17 00:00:00 2001 From: David Greenspan Date: Wed, 11 Dec 2013 20:10:05 -0800 Subject: [PATCH] Make package dependencies slightly more accurate --- packages/html-tools/.gitignore | 1 - packages/html-tools/package.js | 10 ---------- packages/html/package.js | 4 +++- packages/spacebars/package.js | 9 +++++++++ 4 files changed, 12 insertions(+), 12 deletions(-) delete mode 100644 packages/html-tools/.gitignore delete mode 100644 packages/html-tools/package.js diff --git a/packages/html-tools/.gitignore b/packages/html-tools/.gitignore deleted file mode 100644 index 677a6fc263..0000000000 --- a/packages/html-tools/.gitignore +++ /dev/null @@ -1 +0,0 @@ -.build* diff --git a/packages/html-tools/package.js b/packages/html-tools/package.js deleted file mode 100644 index 794a21e63c..0000000000 --- a/packages/html-tools/package.js +++ /dev/null @@ -1,10 +0,0 @@ -Package.describe({ - summary: "Standards-compliant HTML tools" -}); - -Package.on_use(function (api) { - api.use('htmljs'); - api.imply('htmljs'); - -// api.add_files(['scanner.js']); -}); diff --git a/packages/html/package.js b/packages/html/package.js index 059e540dfd..ebb28f6746 100644 --- a/packages/html/package.js +++ b/packages/html/package.js @@ -4,6 +4,8 @@ Package.describe({ }); Package.on_use(function (api) { + // we attach stuff to the global symbol `HTML`, exported + // by `htmljs`, so we both use and effectively imply it. api.use('htmljs'); api.imply('htmljs'); @@ -18,7 +20,7 @@ Package.on_test(function (api) { api.use('tinytest'); api.use('html'); api.use('underscore'); - api.use('ui'); // for `toCode` + api.use('spacebars'); // for `toJS` api.add_files(['charref_tests.js', 'tokenize_tests.js', 'parse_tests.js']); diff --git a/packages/spacebars/package.js b/packages/spacebars/package.js index 8a8b3fc0e9..ce3fbabaed 100644 --- a/packages/spacebars/package.js +++ b/packages/spacebars/package.js @@ -5,6 +5,15 @@ Package.describe({ Package.on_use(function (api) { api.export('Spacebars'); + // we attach stuff to the global symbol `HTML`, exported + // by `htmljs` via `html`, so we both use and effectively + // imply it. + // XXX Should separate out the Spacebars runtime support + // from the Spacebars compiler so we don't need html + // at runtime. + api.use('html'); + api.imply('html'); + api.use('underscore'); api.use('jsparse'); api.use('html');