Commit Graph

172 Commits

Author SHA1 Message Date
Slava Kim
bdd3ef6686 bump versions for PLUGINS-PREVIEW@2 2015-07-27 09:45:22 -07:00
David Glasser
4e7b24dcb3 also catch sync errors thrown by less.render
(which wouldn't actually have caught the issue in 1e3b09d, because that
error got caught by some internal less try/catch, sigh)
2015-07-24 14:51:50 -07:00
Slava Kim
1e3b09df8f Less: Pass error in callback, don't throw 2015-07-24 14:51:10 -07:00
Slava Kim
03087d10cd Less compiler should use Plugin.path 2015-07-24 14:11:33 -07:00
Slava Kim
173bfb7c03 Expose and use wrapped fs/path moduldes in Plugins 2015-07-23 13:10:26 -07:00
David Glasser
43b4b30205 Release PLUGINS-PREVIEW@1
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.
2015-07-22 23:19:11 -07:00
Slava Kim
a41dcbbd66 Add some Windows-specific paths hacks to less/stylus 2015-07-21 17:15:44 -07:00
David Glasser
d0de782d58 Update npm-shrinkwrap.json files 2015-07-21 13:45:15 -07:00
Slava Kim
807be08456 Less plugin no longer need lru-cache
Because it subclasses the caching compiler that already loads it.
2015-07-21 10:53:51 -07:00
David Glasser
efbe277309 Factor cache logic out of less
And improve the cache (now in MultiFileCachingCompiler) to not rewrite
the whole cache on every operation
2015-07-21 02:49:20 -07:00
David Glasser
144be3c36d less README: a few tweaks 2015-07-17 22:52:54 -07:00
Slava Kim
e096c03acc Less has a readme now. 2015-07-17 13:26:06 -07:00
Slava Kim
a38a3eed62 Add more info about isImport: true to the Less Readme 2015-07-17 13:05:09 -07:00
Slava Kim
c99f15fbb3 Correct readme: imports is the name of the folder, not import 2015-07-17 12:36:35 -07:00
Slava Kim
1f4d218246 Add a Less README with instructions 2015-07-17 12:31:41 -07:00
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
David Glasser
bdf1968ceb Change less heuristic back to default-process
In addition to the old `*.lessimport` and `*.import.less` mechanisms for
telling the `less` package that a file isn't a root, you can also put it
in an `import` subdirectory or pass `{isImport: true}` to
`api.addFiles`. We no longer will need to rename every less file when we
upgrade.

Next commit will revert the changes to examples and docs.
2015-07-16 00:29:19 -07:00
David Glasser
5a17a2064b Mostly tweak comments
Replace "XXX BBP" with more specific #BBPFoo
2015-07-15 13:33:51 -07:00
David Glasser
4b8d5b9ab9 Delete large unused less dist files
This isn't as bad as it was with the older version of less we used where
they actually distributed *every version of less* in the dist directory,
not just the current one.  But every byte counts!

(This is what Npm.strip is made for, but that doesn't support plugins.)
2015-07-15 00:03:19 -07:00
David Glasser
bb50ed099d remove outdated XXX BBP comment
error handling works and is tested
2015-07-14 13:46:11 -07:00
David Glasser
0629678414 Use registerCompiler via isobuild:compiler-plugin
Previously, registerCompiler was enabled by the *real* package
`compiler-plugin`, which arranged to only be available in versions of
the tool that support registerCompiler via... well, mostly via wishful
thinking.

Now this is implemented via a fake package called
isobuild:compiler-plugin. "isobuild" is a real Atmosphere organization
that will never publish any packages. The tool pretends that packages
isobuild:compiler-plugin@1.0.0, isobuild:linter-plugin@1.0.0, and
isobuild:minifier-plugin@1.0.0 exist, and carefully arranges for them to
be avoided in the actual process of building and app; they just are
referenced in Version Solver.

When we add future features like this, users of this version of Meteor
who try to depend on packages that need the feature will get a nice
error message pointing to
https://github.com/meteor/meteor/wiki/Isobuild-Feature-Packages

Users of current versions of Meteor who try to depend on packages that
require isobuild:compiler-plugin will get a slightly confusing message
about isobuild:compiler-plugin not existing.  Users of current versions
of Meteor who try to depend on packages only some of whose versions
require isobuild:compiler-plugin will get a version that doesn't require
it.
2015-07-14 10:30:42 -07:00
David Greenspan
3196d6e27d Treat main.less files like *.main.less files
This means `foo/bar/main.less` is also a "main" file.
2015-07-07 14:03:06 -07:00
Slava Kim
9d610e8d26 Prefer source-maps in memory in a parsed JSON form 2015-07-06 15:25:11 -07:00
David Glasser
dd548edd72 less: better error for unknown @import
also, fix coffee/less self-test
2015-06-30 00:09:42 -07:00
Slava Kim
f23ea43168 Fix files' display paths for compiled Less in sourcemaps 2015-06-25 16:59:00 -07:00
David Glasser
c7f7dcb4fb comment tweaks 2015-06-15 17:12:19 -07:00
Slava Kim
7c729b90a4 Minify CSS and split it into several stylesheets when the rules count exceeds the IE limit
Fixes #1876
2015-06-15 14:09:29 -07:00
Slava Kim
534980e3f4 Implement standard-minifiers and the Minifier build plugin API 2015-06-11 15:32:08 -07:00
David Glasser
02b3263961 implement (bad) cache for less too
but the magic of plugin-provided caching is that making the cache better
doesn't involve touching tools!
2015-06-09 12:40:35 -07:00
David Glasser
44c815a955 coffee uses on-disk cache
Also combine the two coffee registerCompiler calls into one

it's a bad on-disk cache that should be improved to not write out all
the unchanged files every time too.  but the tests do show that it skips
the unnecessary recompile

less doesn't use an on-disk cache yet
2015-06-09 12:33:46 -07:00
David Glasser
774b9754ec Test less caching, and improve client refresh
Specifically, ensure that we don't even include client-specific files in
the server WatchSet by making sure we pass a precise set of extensions
to initFromAppDir.  We still also rule out wrong-arch files at a later
stage too (because sourceExtensions only affects initFromAppDir).

Without the change to compiler.js, the final test (adding
yet-another-root.main.less) restarts the server rather than printing
"Client modified -- refreshing".
2015-06-08 22:41:55 -07:00
David Glasser
456d19a65e coffeescript self-test w/ local package file 2015-06-08 21:02:48 -07:00
David Glasser
01404de8fe start of a self-test showing coffee/less caching
doesn't do less yet
2015-06-04 22:49:42 -07:00
David Glasser
a0775e14a8 precise caching for less
needs tests!
2015-06-04 21:24:30 -07:00
Slava Kim
b167d6446f Checkpoint: coffeescript ported to BBP 2015-06-04 01:19:13 -07:00
David Glasser
d2b151aea8 Require compiler-plugin use for registerCompiler
Specifically, the *plugin* has to use compiler-plugin. This creates the
appropriate dependency which will hopefully prevent you from using
new-style plugin packages with old Meteor tools.
2015-06-04 01:19:12 -07:00
Slava Kim
ce77532fc1 Remove temp xxx APIs of batch plugin 2015-06-04 01:19:11 -07:00
David Glasser
836a3fab7e comments 2015-06-04 01:19:10 -07:00
David Glasser
78bd7e3101 fix accounts-ui 2015-06-04 01:19:10 -07:00
David Glasser
478e1f00f9 new less package (accounts-ui not yet working) 2015-06-04 01:19:10 -07:00
Sashko Stubailo
75a00fc279 Un-prerelease version numbers 2015-03-31 12:03:53 -07:00
Sashko Stubailo
82948d5054 Bump package versions for hopefully final RC 2015-03-31 11:45:57 -07:00
Avital Oliver
d2427c9b8e 1.1-rc.3 2015-03-28 12:17:28 -07:00
Sashko Stubailo
fc92ea6858 Bump more versions 2015-03-25 16:21:39 -07:00
Sashko Stubailo
26c040179b Bump a bunch of versions to be the newest 2015-03-25 16:17:48 -07:00
David Glasser
4daaa76b12 METEOR@1.0.4 2015-03-17 13:06:07 -07:00
David Glasser
af0469da35 Bump other packages to -rc.0 2015-03-05 22:54:07 -08:00
Slava Kim
3c68cebf0d bump 2015-02-02 13:38:01 -08:00
Slava Kim
27f249bfed A lot of crazy package bumps 2015-01-21 14:03:55 -08:00
Sashko Stubailo
c37342d504 Bump a bunch of package versions 2015-01-20 22:34:24 -08:00