mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
A merge of the windows-cordova branch did not increment the version numbers of some packages before adding pre-release versions. This causes constraint solver errors, when, for example, trying to build a release from devel. This change should fix the most obvious candidates.
51 lines
1.5 KiB
JavaScript
51 lines
1.5 KiB
JavaScript
Package.describe({
|
|
summary: "Allows templates to be defined in .html files",
|
|
version: '1.0.12-winr.6'
|
|
});
|
|
|
|
// Today, this package is closely intertwined with Handlebars, meaning
|
|
// that other templating systems will need to duplicate this logic. In
|
|
// the future, perhaps we should have the concept of a template system
|
|
// registry and a default templating system, ideally per-package.
|
|
|
|
Package.registerBuildPlugin({
|
|
name: "compileTemplates",
|
|
use: ['spacebars-compiler'],
|
|
sources: [
|
|
'plugin/html_scanner.js',
|
|
'plugin/compile-templates.js'
|
|
]
|
|
});
|
|
|
|
// This onUse describes the *runtime* implications of using this package.
|
|
Package.onUse(function (api) {
|
|
// XXX would like to do the following only when the first html file
|
|
// is encountered
|
|
|
|
api.addFiles('templating.js', 'client');
|
|
api.export('Template', 'client');
|
|
|
|
api.use('underscore'); // only the subset in packages/blaze/microscore.js
|
|
|
|
// html_scanner.js emits client code that calls Meteor.startup and
|
|
// Blaze, so anybody using templating (eg apps) need to implicitly use
|
|
// 'meteor' and 'blaze'.
|
|
api.use('blaze');
|
|
api.imply(['meteor', 'blaze'], 'client');
|
|
});
|
|
|
|
Package.onTest(function (api) {
|
|
api.use('tinytest');
|
|
api.use('htmljs');
|
|
api.use('templating');
|
|
api.use('underscore');
|
|
api.use(['test-helpers', 'session', 'tracker',
|
|
'minimongo'], 'client');
|
|
api.use('spacebars-compiler');
|
|
|
|
api.addFiles([
|
|
'plugin/html_scanner.js',
|
|
'scanner_tests.js'
|
|
], 'server');
|
|
});
|