Commit Graph

356 Commits

Author SHA1 Message Date
Sashko Stubailo
ec33215a7f Static HTML package and templating refactor
1. Make a package called `static-html` that just compiles `<head>` and `<body>` tags inside `.html` files. Much like templating but without the templates.
2. Refactor `templating` to avoid duplicating code.

Split out code that would be shared between `templating` and `static-html` into a new `templating-tools` package. These tools could also be used to simplify implementation of other build plugins, like `simple:markdown-templating`.

This also has the added benefit of moving as much code as humanly possible out of the `templating` package, so that it can be reused in other packages.

1. `templating-tools` package and its README
2. `static-html` package and its README
3. `caching-html-compiler` is not new code; it is just code factored out of the batch plugin version of `templating`, but the README and some comments are new.

1. `tools/tests/static-html.js` tests static html and error handling
2. `templating-tools/html-scanner-tests.js` tests `scanHtmlForTags` and `compileTagsWithSpacebars` together.

All unit tests pass on this branch.
2015-07-31 10:40:23 -07:00
Sashko Stubailo
10fd9ab74c Move Template.dynamic into templating from spacebars 2015-07-30 17:55:37 -07:00
Sashko Stubailo
0ef65cc782 Clean up all dependencies 2015-07-30 17:25:38 -07:00
Slava Kim
bdd3ef6686 bump versions for PLUGINS-PREVIEW@2 2015-07-27 09:45:22 -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
David Glasser
f7ee0ba385 new caching-compiler package
Implements caching for single-file compilers (those that don't implement
'import' directives) as a superclass, CachingCompiler.

Used in coffeescript and templating.
2015-07-20 15:29:37 -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 Glasser
76b711145d In-memory caching for templating plugin 2015-06-29 20:02:05 -07:00
Slava Kim
42978885c8 Add a null-case handling 2015-06-16 14:56:42 -07:00
Slava Kim
3c7ccbf169 Port Spacebars' templating package to batch plugins 2015-06-16 14:55:22 -07:00
David Glasser
d7be19b356 comments about other registerSourceHandler calls 2015-06-09 00:04:08 -07:00
David Greenspan
8557d054dc Merge branch 'master' into devel 2015-03-31 16:36:15 -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
Sashko Stubailo
acee5d0fcc Bump package versions 2015-03-27 10:37:27 -07:00
David Greenspan
bb271987e0 Improve errors when scanning .html file (#3758) 2015-03-27 10:00:33 -07:00
David Greenspan
696ce39c10 Fix "html scanner" tests when run in isolation
...and sometimes when running all tests, seemingly
2015-03-27 09:52:16 -07:00
David Greenspan
3940b29d29 Fix "html scanner" tests when run in isolation
...and sometimes when running all tests, seemingly
2015-03-27 09:51:49 -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
d770d81399 1.0.4-rc.4 2015-03-12 18:03:11 -07:00
David Glasser
7ffc3a44b0 1.0.4-rc.3 2015-03-10 22:00:24 -07:00
David Glasser
873018df44 Minor version bumps to packages with new features
* accounts-base: client-side login hooks
* accounts-password: emailTemplates features
* autoupdate: reload via Node IPC messages (and SIGHUP)
* blaze: template-level subscriptions and onRendered/etc hooks
* ddp: client-side onStop callback, permessage-deflate, subscriptionId
  on subscription handles
* http: npmRequestOptions, HTTPInternals.NpmModules
* mongo: validated against 2.6, oplog-backlog,
  rawCollection/rawDatabase, MongoInternals.NpmModules
* reactive-dict/session: Session.set({k1: v1, k2: v2})
* templating: attributes on <body>
* webapp: WebAppInternals.NpmModules
2015-03-05 22:30:22 -08:00
David Glasser
36ff10c08c Keep minifiers out of built programs
This breaks the path meteor-platform -> webapp -> boilerplate-generator
-> spacebars-compiler -> minifiers which ended up shipping all of uglify
with each built app, even though the code generated in
boilerplate-generator is just eval'd without ever being shown to humans.

Beautification still works on JS generated by templating (*.html),
though.
2015-03-05 16:45:20 -08:00
Sashko Stubailo
d5a278ddfc Make Template.body be a normal template
Fixes #3631
Instead of a collection of top-level views, which it was before
2015-02-24 18:02:21 -08:00
Sashko Stubailo
5cbe84e917 Remove error checking for <body> attrs 2015-02-24 17:14:56 -08:00
Netanel Gilad
d49af044d2 throw error instead of warning when two attributes with the same name are defined in the body. 2015-02-23 21:24:49 -08:00
Netanel Gilad
fa4e9c676e add body attributes tests 2015-02-23 21:24:49 -08:00
Netanel Gilad
48ecdf1d54 add warning when the same body attribute appears more than once. 2015-02-23 21:24:48 -08:00
Netanel Gilad
0eab851204 add body attributes to body 2015-02-23 21:24:48 -08:00
ekatek
4a8e5fde08 incrementing version numbers
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.
2015-02-16 15:25:25 -08:00
Sashko Stubailo
f29c954458 Bump a bunch of version numbers for new preview 2015-02-09 13:23:24 -08:00
Slava Kim
27f249bfed A lot of crazy package bumps 2015-01-21 14:03:55 -08:00
Sashko Stubailo
25f3b9f337 Bump a bunch of versions 2015-01-20 22:34:25 -08:00
Sashko Stubailo
c37342d504 Bump a bunch of package versions 2015-01-20 22:34:24 -08:00
ekatek
99124d881a increment package versions 2015-01-20 10:25:22 -08:00
ekatek
40fa95830f increment version numbers 2015-01-13 19:30:27 -08:00
Dan Dascalescu
6bc6abee85 Direct link to templating doc 2015-01-12 11:16:06 -08:00
David Glasser
6b204ca73a Bump package versions for 1.0.2 2014-12-19 10:31:59 -08:00
David Glasser
7239b4051c 1.0.2-rc.6 2014-12-17 00:22:47 -08:00
Ben Newman
f5dc40765c Package version bumps. 2014-12-15 21:51:25 -05:00
David Glasser
73b809c122 Bump versions for 1.0.2. 2014-12-11 22:44:41 -08:00
David Glasser
6ea8443f30 Update calls to addFiles, onUse, and onTest 2014-12-09 20:18:31 -08:00
David Glasser
e7bfa5202e Update packages to use Package.registerBuildPlugin 2014-12-09 20:09:34 -08:00
David Glasser
de5f68cf70 bump all versions (due to source-map upgrade) 2014-11-25 09:06:26 -08:00
Emily Stark
cb54ae18fb Merge branch 'master' into devel
Conflicts:
	History.md
	examples/localmarket/.meteor/release
	examples/localmarket/.meteor/versions
	packages/stylus/README.md
	tools/compiler.js
	tools/package-client.js
	tools/tests/old/app-with-private/.meteor/versions
	tools/tests/old/app-with-public/.meteor/versions
	tools/tests/old/empty-app/.meteor/versions
2014-10-28 10:42:30 -07:00
Avital Oliver
2ca942f9cb Correct links to www.meteor.com project pages 2014-10-28 02:54:45 -07:00
Emily Stark
b4c10d8f61 bump package versions 2014-10-28 02:49:54 -07:00
Emily Stark
fa3243bdd6 bump package versions for 1.0-rc.8 2014-10-24 14:45:14 -07:00