David Glasser
a77932e34b
fix typo
2013-07-15 13:29:18 -07:00
David Glasser
2b80e5b973
Generate a dummy package.js in unipackages, to make the downloader happy.
...
Change the downloader to no longer expect packages to contain package.js.
This actually requires us (already!) to bump BUILD_VERSION, since I've already
published packages without the package.js!
2013-07-15 13:25:26 -07:00
David Glasser
02a123a47c
Introduce concept of "build version" to unipackages.
...
We bump the "build version" of the tools precisely when we want to rebuild all
packages. This handles the "I ran meteor update, I may need to rebuild my
app/$PACKAGE_DIRS packages" case, as well as ensuring that warehouse package
version numbers are incremented when we need to rebuild all packages (but not on
EVERY tools directory change).
2013-07-15 12:36:02 -07:00
David Glasser
296ca6f0c0
Link to bug where we can't get syntax error line/column numbers.
2013-07-15 11:27:48 -07:00
Emily Stark
d2eb68c60b
Update package name guess to account for no slash in front of path
2013-07-12 16:00:53 -07:00
Slava Kim
3311517ecf
Logs continuation on ssh-tunnel reconnect.
2013-07-12 14:59:40 -07:00
David Glasser
cbda2bbae1
Make "meteor rebuild-all" in an app dir with programs also wipe the .build for
...
any programs.
2013-07-12 14:51:11 -07:00
David Glasser
b0b8b08b2f
Make bundler-test pass in the source maps world.
2013-07-12 13:29:08 -07:00
David Glasser
b9f343f8b4
Add Firefox instructions.
...
Change comment style to one which does not make FF print warnings. This breaks
Chrome, so start setting the header again.
2013-07-12 10:11:32 -07:00
David Glasser
73478a49f0
support sourceMapRoot in JSImage.load too
2013-07-12 10:11:32 -07:00
David Glasser
6eb9cdb69f
make it work in node too
2013-07-12 10:11:32 -07:00
David Glasser
4308b7c063
- switch from X-SourceMap header to //@ comment
...
- specify sourceMapUrl in browser manifest
- don't make source maps for app pure-JS files
- make URLs happy
- break traceback beauty
2013-07-12 10:11:31 -07:00
David Glasser
3205e33537
using source maps in JSImage.load now probably works
2013-07-12 10:11:31 -07:00
David Glasser
177a5684c9
checkpoint for using source maps in jsimage.load
...
syntax error parsing is broken, will fix
2013-07-12 10:11:31 -07:00
David Glasser
3fb6a8c602
add some comments to files.runJavaScript
2013-07-12 10:11:31 -07:00
David Glasser
a8ccc8786d
Add link to discussion of sourcemap XSSI header.
2013-07-12 10:11:31 -07:00
David Glasser
faf49921be
replace barely-used lineForLine/includePositionInErrors with use of source maps.
...
Note that this is only triggered when coffeescript manages to output invalid JS,
which should be unlikely.
This does remove the feature where lines and columns were suppressed for parse
errors in the output of template compilation. but (a) that shouldn't happen,
and (b) we'll fix this by implementing source maps for spacebars.
2013-07-12 10:11:31 -07:00
David Glasser
85ae17ae0f
Add instructions on enabling source maps to linked browser code.
2013-07-12 10:11:31 -07:00
David Glasser
56f663ea67
Add anti-XSSI header to source maps in client programs.
...
This is done at bundle time when constructing the manifest; it does not affect
source maps in unipackages, etc.
2013-07-12 10:11:31 -07:00
David Glasser
269434a44b
Inline source code in source maps instead of keeping another data structure.
2013-07-12 10:11:31 -07:00
David Glasser
01a1bc8d6b
On server, parse source maps less often.
2013-07-12 10:11:30 -07:00
David Glasser
96a1f43a3c
add a comment about line number comments on generated files
2013-07-12 10:11:30 -07:00
David Glasser
a13f330983
All sourceMap fields in data structures are now strings, not generators.
2013-07-12 10:11:30 -07:00
David Glasser
df5d48c9af
Fix to generation of source maps for concatenated files.
2013-07-12 10:11:30 -07:00
David Glasser
4e18439ae6
Source maps for coffeescript.
2013-07-12 10:11:30 -07:00
David Glasser
d823e57049
Rip @unit out of Meteor.
...
It's not used, it doesn't fully work yet, it's incompatible with the static
analysis, and it will make implementing CoffeeScript source maps significantly
more difficult.
2013-07-12 10:11:30 -07:00
David Glasser
040d97d6c0
Fix production mode bundles.
2013-07-12 10:11:30 -07:00
David Glasser
c329ebf90d
Serve sources as well, and use X-SourceMap header.
...
Source maps now work in Chrome, if you enable them (dev tools -> gears button ->
enable source maps). I can't get them to work in FF 24 though.
2013-07-12 10:11:30 -07:00
David Glasser
7ef61492da
refactor disk layout of client programs to get rid of static/static_cacheable
...
This introduces some hacks into how asset dirs work. Will fix later. Might have
broken server assets. Who knows.
2013-07-12 10:11:29 -07:00
David Glasser
f786fd6fa5
Write (but don't use) sourceMaps (but not sources) for client programs.
...
Add builder.writeToGeneratedFilename helper and use it a lot.
2013-07-12 10:11:29 -07:00
David Glasser
5b8e1c17f3
Use manifest, not directory serving, to serve static files.
2013-07-12 10:11:29 -07:00
David Glasser
34d563a7ed
put js image format at top of file
2013-07-12 10:11:29 -07:00
David Glasser
f0673cef7e
don't generate empty global import files
2013-07-12 10:11:29 -07:00
David Glasser
b3e752c86c
Source maps now are correct.
...
The header and footer of the linked file now is generated entirely at link
time. There is no more "boundary" __imports__asfdadsads blob.
Also, fix an inexplicable typo in js_analyze.
2013-07-12 10:11:29 -07:00
David Glasser
7456124102
Node stack traces are now rewritten based on (slightly wrong) source maps.
...
Also, assume that the program.json given to boot.js is relative to CWD, not
source file.
2013-07-12 10:11:29 -07:00
David Glasser
d05e83d958
paths in program.json should not start with /.
2013-07-12 10:11:29 -07:00
David Glasser
cb4db20d70
Fix reading JS Images.
2013-07-12 10:11:29 -07:00
David Glasser
0ceb174ae0
Write sourcemaps and source files to JSImages.
...
Have not done the reading code yet.
2013-07-12 10:11:29 -07:00
David Glasser
e61c64e26b
the path is packages/foo, not package/foo
2013-07-12 10:11:29 -07:00
David Glasser
366d4439d8
read fixed unipackage format
2013-07-12 10:11:28 -07:00
David Glasser
09cb871d15
Write slice JSON with source map and sources as separate files.
...
We have not written the corresponding read code yet.
2013-07-12 10:11:28 -07:00
David Glasser
b9bf08b45a
Correctly get the package name in the linker.
2013-07-12 10:11:28 -07:00
David Glasser
30f82aa5bf
Rename getLinked[Files/Output] -> getPrelinked$1
2013-07-12 10:11:28 -07:00
Geoff Schmidt
14b337ad5d
rebase fixups
2013-07-12 10:11:28 -07:00
Geoff Schmidt
685a4ffdcf
Source maps are generated, but they (1) are only
...
generated for server targets, not browser targets;
(2) aren't used for anything, (3) can only be generated
by linker (not by, say, coffeescript); (4) are stored
incorrectly (inline in control files, rather than as
separate files); (5) are wrong anyway (at minimum, they
need to be adjusted for boundary string replacement
during link)
But hey. Source maps.
2013-07-12 10:11:28 -07:00
Geoff Schmidt
013c9f82e7
groundwork
2013-07-12 10:11:27 -07:00
Slava Kim
82552022d8
Update dev_bundle's mongodb binaries
...
- Dev_bundle generation: Compile mongodb binaries (mongo, mongod) with ssl
support, statically linking compiled openssl libs.
- meteor mongo website: parse mongo url and pass ssl flag to mongo shell in case
of "?ssl=true" in mongo url from mother/galaxy.
- added script to generate all mongodb binaries with ssl support on linux
platform.
2013-07-10 12:42:29 -07:00
Emily Stark
6ff3afd164
Allow you to use a settings file when deploying to galaxy.
2013-07-10 11:06:39 -07:00
Slava Kim
bf1c57d153
Avi's comments.
2013-07-09 16:00:43 -07:00
Slava Kim
6ce0d28ce6
Fix identation.
2013-07-09 12:45:31 -07:00