mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
This included removing some internal version constraints. It would be nice if package A could say "use B@2.0.0" (when both have changed), but when they're both in the release, we need to make a release that has a B@2.0.0-rc in it, which doesn't match that constraint. Fortunately, constraints aren't necessary within a release anyway.
34 lines
687 B
JavaScript
34 lines
687 B
JavaScript
Package.describe({
|
|
summary: "JavaScript and CSS minifiers",
|
|
version: "1.1.6-plugins.0"
|
|
});
|
|
|
|
Npm.depends({
|
|
"uglify-js": "2.4.20",
|
|
"css-parse": "2.0.0",
|
|
"css-stringify": "2.0.0"
|
|
});
|
|
|
|
Npm.strip({
|
|
"uglify-js": ["test/"],
|
|
"css-parse": ["test/"],
|
|
"css-stringify": ["test/"]
|
|
});
|
|
|
|
Package.onUse(function (api) {
|
|
api.use('underscore', 'server');
|
|
api.export(['CssTools', 'UglifyJSMinify', 'UglifyJS']);
|
|
api.addFiles(['minification.js', 'minifiers.js'], 'server');
|
|
});
|
|
|
|
Package.onTest(function (api) {
|
|
api.use('minifiers', 'server');
|
|
api.use('tinytest');
|
|
|
|
api.addFiles([
|
|
'beautify-tests.js',
|
|
'minifiers-tests.js',
|
|
'urlrewriting-tests.js'
|
|
], 'server');
|
|
});
|