mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
This reduces the npm download done when updating the handlebars package by 2M. (Uglify is only used by bin/handlebars, not the handlebars API.)
43 lines
1.4 KiB
JavaScript
43 lines
1.4 KiB
JavaScript
Package.describe({
|
|
summary: "Simple semantic templating language",
|
|
internal: true
|
|
});
|
|
|
|
Npm.depends({
|
|
// Fork of 1.0.7 dropping a used-only-by-bin/handlebars dependency on the very
|
|
// large uglify-js 1.2.6.
|
|
handlebars: 'https://github.com/meteor/handlebars.js/tarball/543ec6689cf663cfda2d8f26c3c27de40aad7bd5'
|
|
});
|
|
|
|
Package.on_use(function (api) {
|
|
api.use('underscore');
|
|
api.use('spark', 'client');
|
|
|
|
api.export('Handlebars');
|
|
|
|
|
|
// If we have minimongo available, use its idStringify function.
|
|
api.use('minimongo', 'client', {weak: true});
|
|
|
|
// XXX these should be split up into two different slices, not
|
|
// different code with totally different APIs that is sent depending
|
|
// on the architecture
|
|
api.add_files('parse-handlebars.js', 'server');
|
|
api.add_files('evaluate-handlebars.js', '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.
|
|
});
|
|
|
|
Package.on_test(function (api) {
|
|
api.use('tinytest');
|
|
api.use('underscore');
|
|
});
|