mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
34 lines
935 B
JavaScript
34 lines
935 B
JavaScript
Package.describe({
|
|
summary: "Compiler for Spacebars template language",
|
|
version: '1.0.5'
|
|
});
|
|
|
|
Package.onUse(function (api) {
|
|
api.export('SpacebarsCompiler');
|
|
|
|
api.use('htmljs');
|
|
api.use('html-tools');
|
|
api.use('blaze-tools');
|
|
|
|
api.use('underscore');
|
|
// The templating plugin will pull in minifiers, so that generated code will
|
|
// be beautified. But it's a weak dependency so that eg boilerplate-generator
|
|
// doesn't pull in minifiers.
|
|
api.use('minifiers', ['server'], { weak: true });
|
|
api.addFiles(['templatetag.js',
|
|
'optimizer.js',
|
|
'codegen.js',
|
|
'compiler.js']);
|
|
});
|
|
|
|
Package.onTest(function (api) {
|
|
api.use('underscore');
|
|
api.use('spacebars-compiler');
|
|
api.use('tinytest');
|
|
api.use('blaze-tools');
|
|
api.use('coffeescript');
|
|
api.addFiles('spacebars_tests.js');
|
|
api.addFiles('compile_tests.js');
|
|
api.addFiles('compiler_output_tests.coffee');
|
|
});
|