Commit Graph

185 Commits

Author SHA1 Message Date
Slava Kim
88edda5557 Extract WebApp-Hashing and use it from tool for Cordova builds 2014-08-15 17:38:16 -07:00
Slava Kim
fcdeda957d Revert "Remove unused webapp_server code"
This reverts commit 963a16f5f1.

It is not unused
2014-08-15 16:43:04 -07:00
Matthew Arbesfeld
c463a62477 Omit autoupdateCordova from hash 2014-08-15 16:06:07 -07:00
Matthew Arbesfeld
963a16f5f1 Remove unused webapp_server code 2014-08-15 14:48:25 -07:00
Slava Kim
e3ae279a60 more code duplication for having a separate update version for cordova 2014-08-15 14:46:45 -07:00
Slava Kim
5fbe4aea66 Hot Code Push executes the saved code after the bundled code 2014-08-14 20:32:41 -07:00
Slava Kim
348d765f65 wip 2014-08-14 17:00:12 -07:00
Slava Kim
2feef6ec9f fix tests for webapp after merge 2014-08-06 14:56:36 -07:00
Matthew Arbesfeld
3c7ed69f6b Fix client.* -> web.* 2014-08-06 13:51:31 -07:00
Matthew Arbesfeld
9f2ee36e60 Merge branch 'packaging' into cordova-hcp
Conflicts:
	packages/constraint-solver/constraint-solver-tests.js
	packages/constraint-solver/constraint-solver.js
	packages/less/plugin/compile-less.js
	packages/meteor/plugin/basic-file-types.js
	packages/star-translate/translator.js
	packages/stylus/plugin/compile-stylus.js
	packages/templating/plugin/compile-templates.js
	packages/webapp/webapp_server.js
	tools/bundler.js
	tools/commands.js
	tools/compiler.js
	tools/package-source.js
	tools/run-app.js
	tools/selftest.js
	tools/tests/old/test-bundler-assets.js
	tools/tests/old/test-bundler-options.js
	tools/unipackage.js
2014-08-06 13:43:56 -07:00
Matthew Arbesfeld
8bcbd65344 Separate "browser" target into web.browser/cordova
Cordova projects often have a different set of files than web targets,
so we would like to be able to target different client architectures in
our bundles. Ideally, we allow the user to use arbitrary client
architectures - but this patch is a step in the right direction by
abstracting out more of the hard coded "browser"/"os" lines.

We accomplish this separation in a backwards compatible way by allowing
api.___ commands to target a "client" architecture. For example,
api.addFiles('a.js', 'client') adds 'a.js' to both the 'client.browser'
and 'client.cordova' targets.

Effects on 0.9 packaging stuff: packages don't have to change, but the
"data.json" file in ".meteor0" has "browser" in some places. We think we
have to fix the troposphere code where this data.json is created.

Some plugins will also be backwards-incompatible with this change, since
many have a "clientArch.matches("browser")" line in the plugin
code. Ideally, we fix plugins so that this stops being an issue, but for
now package authors can just patch that line.

At the compiled (unipackage) level the new names are 'web.browser' and
'web.cordova', replacing 'browser'. In package.js, the new names are
'client.browser' and 'client.cordova', serving as an adjunct to 'client'.
2014-07-31 14:12:15 -07:00
Matthew Arbesfeld
71f2798205 Add a DEFAULT_DDP_CONNECTION_URL and fix visible:hidden tag 2014-07-29 22:45:50 -07:00
Matthew Arbesfeld
3ea5e6d033 Hot code push works! yay 2014-07-29 15:43:32 -07:00
Matthew Arbesfeld
71966f407a Turn off auto-reload. Still not able to remove initial script from page 2014-07-29 04:38:46 -07:00
Matthew Arbesfeld
ae8c412c38 Fixed webapp tests for additional static files and __meteor_runtime_config__ 2014-07-28 11:57:28 -07:00
Slava Kim
c6b6e71fed Extract the Boilerplate generating code into a separate package 2014-07-25 18:56:14 -07:00
Slava Kim
dd74ae7564 Refactor out the boilerplate generator so it can be used from tool
doesn't work yet though
2014-07-25 17:06:37 -07:00
Matthew Arbesfeld
d2af5ea13b Add cordova boilerplate file 2014-07-25 13:53:35 -07:00
Matthew Arbesfeld
960f8907d3 Merge branch 'packaging' into cordova-hcp
Conflicts:
	packages/constraint-solver/constraint-solver.js
	packages/webapp/webapp_server.js
	tools/tests/package-tests.js
2014-07-25 13:52:34 -07:00
Matthew Arbesfeld
4ca9c9818c partial work towards a more general boilerplate ***GOING TO REBASE ON PACKAGING*** 2014-07-25 10:51:11 -07:00
Slava Kim
5649b0347f Bundle and serve all client programs by default
For several client programs 'client.browser', 'client.cordova', etc, build and
bundle manifest files and programs.

Then serve all client programs' static files on their subpaths except for the
default one served on root.

Ex.:

/app/code.js
/packages/client-package/code.js
/cordova/packages/cordova-package/code.js
2014-07-24 17:39:11 -07:00
Slava Kim
13c0d3e0ed Always serve the client manifest file 2014-07-24 16:02:37 -07:00
David Glasser
e82be799be Further cleanup from devel->packaging merge
- Update package.js for new packages from devel
- Typo fix
2014-07-21 16:23:47 -07:00
David Glasser
996d347139 Merge branch 'devel' into packaging
Conflicts:
	docs/client/api.html
	docs/client/concepts.html
	docs/client/introduction.html
	meteor
	packages/html-tools/package.js
	packages/spacebars-common/package.js
	packages/webapp/webapp_server.js
	tools/bundler.js
2014-07-21 16:18:25 -07:00
Matthew Arbesfeld
03c5c425f8 Hard code in client.cordova and fix 'browser' references 2014-07-18 18:59:00 -07:00
Matthew Arbesfeld
f230eba62b Client CSS and template injection. 2014-07-09 10:31:44 -07:00
ekatek
b9a714f028 ripping out internal, name and test from package.js files 2014-07-07 20:50:50 -07:00
David Greenspan
dfbbde4aa7 Merge branch 'devel' into blaze-refactor
Conflicts:
	packages/webapp/webapp_server.js
2014-07-01 13:29:04 -07:00
David Greenspan
ab4bb8f993 Get rid of 3s/OLDSTYLE, start to exclude old code 2014-06-30 15:45:12 -07:00
David Greenspan
9dd5fac49c webapp_server works
This confirms that we can convert complicated templates (including #if, #each, and dynamic attributes) into HTML using Views.

Template#__lookup was moved to View#lookup, since webapp_server is an example of a case where we have lookup but no template!

Next steps: get rid of the “3” after some names, the OLDSTYLE flag, and dead code in the blaze package.  Then make Template features like events, `helper`, etc. work.
2014-06-30 15:36:33 -07:00
David Greenspan
c01a9df8de Introduce OLDSTYLE flag to not break webapp
Making webapp_server work requires #if and #each that work with toHTML.  Don’t want to have to write that code just to be able to run client code again.
2014-06-26 15:54:40 -07:00
Emily Stark
168f21654c Rename serveStaticFiles to staticFilesMiddleware 2014-06-26 15:15:24 -07:00
David Greenspan
d7ef9efe12 Support HTMLification
Breaks webapp_server pretty hard
2014-06-26 15:14:08 -07:00
Emily Stark
53936d3062 Wrap webapp test code in _noYieldsAllowed. 2014-06-26 15:08:41 -07:00
Emily Stark
afff81ffc5 New approach for reload safety belt testing.
Mutating global state in tests is still not a good idea. (Specifically,
in the previous version of the test, changing the value of
`WebAppInternals.inlineScriptsAllowed()` could mess with other
client-side tests that depend on it being one way or another -- of which
there are currently probably none, but there could be in theory.)

Instead, export the exact things we want to test (boilerplate HTML
generation and the static file handler). Now we are still mutating the
global `inlineScriptsAllowed()` state, but we don't yield before setting
it back to what it was.

Also simplify the reload-safetybelt test: instead of sending an HTTP
request, just check that the script gets adding to
`WebAppInternals.additionalStaticJs`.
2014-06-26 15:08:41 -07:00
Emily Stark
68b4c18627 Make more generic additionalStaticJs interface in webapp.
Now webapp doesn't need to know anything about the reload safetybelt; it
just exposes a generic interface that any package can use to include
additional static JS (inlined when possible) in the boilerplate
HTML. reload-safetybelt uses this interface, instead of webapp
weak-depending on reload-safetybelt.
2014-06-26 15:08:41 -07:00
Emily Stark
1c90d0410c galaxy-reload-safetybelt -> reload-safetybelt 2014-06-26 15:08:41 -07:00
Emily Stark
b76f3e67c8 Move reload safety belt into an opt-in package 2014-06-26 15:08:41 -07:00
ekatek
fb709c9563 remove versions files from core packages 2014-06-16 22:11:31 -07:00
David Greenspan
63b608a6a2 Port tests that were using old toHTML/materialize
Some tests were actually passing because they used old code!  Not anymore.

Create Blaze.toHTML(func) and Blaze.toText(func), like Blaze.render.  Generally you should always build the HTMLjs from inside the func — and our tests should always be wrapping test content in a function literal, not passing around unrendered HTMLjs trees — but if you’re just using tags and Isolate, it doesn’t matter.
2014-06-09 19:56:28 -07:00
David Greenspan
3df4e95845 Merge branch 'devel' into blaze-refactor
Conflicts:
	packages/spacebars-tests/template_tests.js
	packages/ui/domrange.js
2014-05-27 13:38:59 -07:00
David Glasser
e4000c6808 Merge branch 'devel' into packaging
Conflicts (around utils.quotemeta):
	tools/packages.js
	tools/utils.js
2014-05-12 17:06:11 -07:00
ekatek
beb0e59b9d new version files from teh new solver? Also, package.js correct with tests 2014-05-09 17:36:25 -07:00
Emily Stark
c044786e2f nim, glasser comments 2014-05-08 12:12:45 -07:00
Emily Stark
4afa54ca5a Set Content-Type header on js and css resources. 2014-05-08 12:12:45 -07:00
David Glasser
50b7f12922 Fix 0.8.1 regression in ROOT_URL with path
Fixes #2109.
2014-05-07 17:46:08 -07:00
David Glasser
08cf1e0974 shrinkwrap update from 314c8a1
Apparently not passing --force to npm install also allows us to do a
better job of not bundling duplicate npm packages.
2014-05-07 17:31:29 -07:00
David Greenspan
bc4339c1dc Replace old codegen with codegen2 2014-05-06 14:30:48 -07:00
David Greenspan
e5768a3c71 Port webapp_server 2014-05-06 14:21:19 -07:00
ekatek
031890d2c5 don't store buildtime deps in the catalog 2014-05-04 16:56:58 -07:00