Package.describe({
  summary: "Compiler for Spacebars template language"
});

Package.on_use(function (api) {
  api.use('spacebars-common');
  api.imply('spacebars-common');

  // we attach stuff to the global symbol `HTML`, exported
  // by `htmljs` via `html-tools`, so we both use and effectively
  // imply it.
  api.use('html-tools');
  api.imply('html-tools');

  api.use('underscore');
  api.use('minifiers', ['server']);
  api.add_files(['tokens.js', 'tojs.js', 'templatetag.js',
                 'spacebars-compiler.js']);
});

Package.on_test(function (api) {
  api.use('underscore');
  api.use('spacebars');
  api.use('spacebars-compiler');
  api.use('tinytest');
  api.add_files('spacebars_tests.js');
  api.add_files('compile_tests.js');
  api.add_files('token_tests.js');
});

Package.describe({
  summary: "Compiler for Spacebars template language"
});

Package.on_use(function (api) {
  api.use('spacebars-common');
  api.imply('spacebars-common');

  // we attach stuff to the global symbol `HTML`, exported
  // by `htmljs` via `html-tools`, so we both use and effectively
  // imply it.
  api.use('html-tools');
  api.imply('html-tools');

  api.use('underscore');
  api.use('minifiers', ['server']);
  api.add_files(['tokens.js', 'tojs.js', 'templatetag.js',
                 'spacebars-compiler.js']);
});

Package.on_test(function (api) {
  api.use('underscore');
  api.use('spacebars-compiler');
  api.use('tinytest');
  api.add_files('spacebars_tests.js');
  api.add_files('compile_tests.js');
  api.add_files('token_tests.js');
});

Remove spacebars-compiler -> spacebars test dependency.
Remove spacebars-compiler -> spacebars test dependency.

This fixes a circular build-time dependency when building test slices.
