Files
meteor/packages/less/package.js
David Glasser cf737183ca Change import subdirectory name to 'imports'
@dgreensp:

    The more I think about it, the more I don't like naming a directory
    after a singular noun like `import`.  We have `packages/` already,
    and I want to put my modules in a directory called `modules/`, not
    `module/`, just like I don't want to put my assets in `asset/`, or
    my stylesheets in `stylesheet/`, etc.  It's ok to have a singular
    suffix and a plural directory name: to have `.import` files go in
    `imports` or `.template` files go in `templates`.  Directory names
    like `doc` and `lib` follow an old Unix convention of three-letter
    names.  And if the `import` directory name is actually a verb, not a
    noun, that is confusing because putting files in the `import`
    directory does not import them.  It just causes them to be
    considered imports (noun).
2015-07-16 12:48:53 -07:00

39 lines
1.1 KiB
JavaScript

Package.describe({
name: 'less',
version: '2.5.0_1',
summary: 'Leaner CSS language',
documentation: null // XXX #BBPDocs
});
Package.registerBuildPlugin({
name: "compileLessBatch",
use: ['underscore'],
sources: [
'plugin/compile-less.js'
],
npmDependencies: {
// Fork of 2.5.0, deleted large unused files in dist directory.
"less": "https://github.com/meteor/less.js/tarball/8130849eb3d7f0ecf0ca8d0af7c4207b0442e3f6",
"lru-cache": "2.6.4"
}
});
Package.onUse(function (api) {
api.use('isobuild:compiler-plugin@1.0.0');
});
Package.onTest(function(api) {
api.use('less');
api.use(['tinytest', 'test-helpers']);
api.addFiles(['tests/top.import.less',
'tests/top3.import.less',
'tests/imports/not-included.less',
'tests/dir/in-dir.import.less',
'tests/dir/in-dir2.import.less',
'tests/dir/root.less',
'tests/dir/subdir/in-subdir.import.less']);
api.addFiles('tests/top2.less', 'client', {isImport: true});
api.addFiles('less_tests.js', 'client');
});