Files
meteor/packages/html-tools/package.js
David Greenspan 15f56b4998 Make spacebars-compiler package; server-only
... unless you ask for it by name, in which case it can run on the client.

This means a smaller JS payload in production, without the HTML parser or Spacebars codegen.
2013-12-11 21:41:38 -08:00

28 lines
699 B
JavaScript

Package.describe({
summary: "Standards-compliant HTML tools"
});
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');
api.add_files(['scanner.js',
'charref.js',
'tokenize.js',
'parse.js',
'exports.js']);
});
Package.on_test(function (api) {
api.use('tinytest');
api.use('html-tools');
api.use('underscore');
api.use('spacebars-compiler'); // for `HTML.toJS`
api.add_files(['charref_tests.js',
'tokenize_tests.js',
'parse_tests.js']);
});