Commit Graph

716 Commits

Author SHA1 Message Date
Slava Kim
ace1f01849 style: Reduce code width to normal 80 chars 2014-02-03 21:58:28 -08:00
Slava Kim
ca71fc1920 Sourcemap chains for CSS
Now we support Less->CSS->CSS sourcemaps.
2014-02-03 21:58:28 -08:00
Slava Kim
2f78babda1 Enable less sourcemaps 2014-02-03 21:58:28 -08:00
Slava Kim
98f49d71d0 fileName -> filename for consistency 2014-02-03 21:58:28 -08:00
Slava Kim
6071b611d1 Sourcemaps for CSS!!11 2014-02-03 21:58:28 -08:00
Slava Kim
1d576de990 Base for CSS sourcemaps 2014-02-03 21:58:28 -08:00
Slava Kim
11cc8bbff7 Minor clean-up
unused linker reference, whitespace
2014-02-03 21:58:28 -08:00
Slava Kim
b93fe02ef5 Introduce the CSS Preprocessing step
To run meta-programming on CSS, concatenate files, etc.
Opens doors for future CSS manipulations.
2014-02-03 21:58:27 -08:00
Slava Kim
44ffad3794 Replace Clean-Css with a small and unfinished css minifier based on ast manipulations 2014-02-03 21:58:27 -08:00
Slava Kim
b8d4e93166 Spit out a warning if @charset rule found
Since Meteor will just ignore those.
2014-02-03 21:58:27 -08:00
Slava Kim
0393315e29 Nick's comments 2014-02-03 21:58:27 -08:00
Slava Kim
65e01162a2 Print a warning in case of buried @import's 2014-02-03 21:58:27 -08:00
Slava Kim
e1f34d3ab4 Better comments 2014-02-03 21:58:27 -08:00
Slava Kim
355d7e8944 Ignore @charset rules and comments, then pull up @import rules from the top of every file. 2014-02-03 21:58:27 -08:00
Slava Kim
9bad898e59 Better error reporting on CSS building 2014-02-03 21:58:26 -08:00
Slava Kim
21c8eaf8a5 Error reporting for CSS parsing 2014-02-03 21:58:26 -08:00
Slava Kim
ceea2a1cf2 Pull all imports with css-parse 2014-02-03 21:58:26 -08:00
Geoff Schmidt
9318b4c250 Fix misunderstanding of kexec arguments 2014-01-30 11:05:22 -08:00
David Glasser
a3b7213247 Clean up #1774 2014-01-29 14:39:35 -08:00
Marc-Andre Lafortune
5cfe47e1f6 Document 'where' parameter for packages 2014-01-29 14:39:35 -08:00
David Glasser
3104ddb6e5 Style change to skel to match shark. 2014-01-27 14:17:31 -08:00
David Glasser
8f4963ecd2 Use new exec 2014-01-27 13:52:54 -08:00
David Glasser
97ec2d3948 Update to newer http-proxy API
Take out workaround that's been incorporated into the branch we're using
2014-01-23 14:40:21 -08:00
David Glasser
a7d10d650d Update Node to 0.10.25. Remove bug workaround. 2014-01-23 12:15:29 -08:00
David Glasser
16b23ecb38 Close proxy/server websockets on client errors
Previously, certain errors on the client/proxy socket would result in
the proxy keeping the websocket to the server open forever rather than
closing it.  For example, disconnecting the client from the internet
without a graceful shutdown. This could easily be reproduced with any
app using `facts`, eg https://github.com/tarangp/test-observers.
Run the app, connect locally with one browser, connect from a second
computer, observe sessions going to 2, disconnect the second computer.
With this commit, sessions will go back to 1 in about a minute. Without
it, it never will.

This particular fix is not very compelling, since it uses undocumented
features of the stream interface. I will file an issue with the
node-http-proxy project tonight asking how we're supposed to do this.

This addresses #1769.  I'll close that once we have a more compelling
fix, and once the similar bug is fixed in the proxies used in the
`meteor deploy` server and in Galaxy.
2014-01-21 18:17:08 -08:00
David Glasser
178734b66d Fix test broken by 0f4a21f (thanks @awwx). 2013-12-23 15:17:36 -08:00
David Glasser
7341966f49 Fix incorrect Node version number
Fixes #1701
2013-12-20 14:34:06 -08:00
David Glasser
36bad38aa0 Merge branch 'master' into devel
Conflicts:
	tools/mongo_runner.js
2013-12-20 14:26:27 -08:00
David Glasser
d98b7ed423 Don't call onListen more than once
eg, maybe the replset loses and regains its PRIMARY.
2013-12-20 13:51:29 -08:00
David Glasser
96c9076544 Don't leave invalid METEOR-PORT files around
Could cause mongo startup to hang.

Reproduction:

  $ meteor
  => Meteor server running on: http://localhost:3000/
  # ... wait for server to start, ctrl-c.
  # leaves '3002' in .meteor/local/db/METEOR-PORT
  $ meteor -p 5000
  # ctrl-c in about a second: once we've wiped the old local db
  # but before we've configured the new one.
  # before this commit, '3002' is still in the METEOR-PORT file.
  $ meteor
  # before this commit, hangs with:
  Initializing mongo database... this may take a moment.
2013-12-20 13:51:28 -08:00
David Glasser
995d728278 mongo_runner: Don't send rs.initiate too early
Fixes #1696. Thanks to @Maxpain177 for reporting and providing access to
a machine where this was easily reproducible.
2013-12-20 13:51:28 -08:00
David Glasser
c0626667ec Don't leave invalid METEOR-PORT files around
Could cause mongo startup to hang.

Reproduction:

  $ meteor
  => Meteor server running on: http://localhost:3000/
  # ... wait for server to start, ctrl-c.
  # leaves '3002' in .meteor/local/db/METEOR-PORT
  $ meteor -p 5000
  # ctrl-c in about a second: once we've wiped the old local db
  # but before we've configured the new one.
  # before this commit, '3002' is still in the METEOR-PORT file.
  $ meteor
  # before this commit, hangs with:
  Initializing mongo database... this may take a moment.
2013-12-19 18:21:20 -08:00
David Glasser
7424bb63cd mongo_runner: Don't send rs.initiate too early
Fixes #1696. Thanks to @Maxpain177 for reporting and providing access to
a machine where this was easily reproducible.
2013-12-19 17:49:53 -08:00
David Glasser
0f4a21f89f meteor_npm: don't lose interesting resolved
If an indirect dependency resolves to something other than a semver (or
a GitHub tarball), it will be stored in the 'resolved'. Our shrinkwrap
minifier (which helps to reduce spurious shrinkwrap file changes) needs
to recognize that.

Also, consistently use the "version" field in the minified shrinkwrap
file (which a comment already claimed we could do).

Fixes #1684.
2013-12-17 19:05:25 -08:00
David Glasser
ebb729f0f6 Fix crash with an empty programs/foo dir
We should never use the existence of a directory in our source tree to
make a decision, because git doesn't track directory existence, and it's
easy to end up with extraneous directories (containing gitignored files,
eg).  So we should ignore programs/foo directories in apps if they don't
contain package.js.
2013-12-17 18:35:31 -08:00
Nick Martin
9dfa0ee95f Update tools tests for Webapp bundled asset change 6eccf8c 2013-12-15 17:17:41 -08:00
ekatek
4ab6f8ee88 tags 2013-12-13 10:03:35 -08:00
Naomi Seyfer
276034617a First version of a reload safetybelt against javascript or css not being loaded properly 2013-12-13 10:03:35 -08:00
ekatek
7da8004ddf version as tag 2013-12-13 10:03:35 -08:00
Nick Martin
04fddf3a77 Update tools tests for Webapp bundled asset change 6eccf8c 2013-12-11 20:38:51 -08:00
David Glasser
8de5ebfc6f Become able to kill mongod spawned by pre-oplog branches 2013-12-11 17:04:06 -08:00
Nick Martin
89ec9ddf62 Up timeout for printing mongo message. This way it doesn't happen normally during cold start (3--4 sec). 2013-12-10 22:13:12 -08:00
David Glasser
b4c14af032 Fix find_mongo_pids regexp
Also add some comments to mongod options.
2013-12-10 19:09:41 -08:00
Nick Martin
f9b394de4f Use smaller oplog (8MB instead of 256MB default).
This uses less space on disk and starts up faster. It might mean
people hit the end of the oplog if the server gets really slow.
But, hey, then we can debug and test more oplog error modes.
2013-12-10 17:47:49 -08:00
Nick Martin
1b08ac2d9d Upgrade to stock Node 0.10.22.
This discards our fix for stream pausing. We'll monkey patch it in
at startup instead of relying on a custom build.
2013-12-10 15:27:40 -08:00
David Glasser
d16cd33242 Improve bundler comment 2013-12-06 13:38:51 -08:00
Emily Stark
6eccf8cbbb Add an optional prefix for bundled js and css files.
Set it with `WebAppInternals.setBundledJsCssPrefix(prefix)`.
2013-12-05 17:52:35 -08:00
David Glasser
593d980ba6 implement 'test-packages --disable-oplog' 2013-12-04 12:54:27 -08:00
David Glasser
e9e39d2cb2 Rename $OPLOG_URL to $MONGO_OPLOG_URL 2013-12-02 19:17:39 -08:00
Nick Martin
5f1b721823 Fix meteor run to look at the OPLOG_URL environment variable. 2013-12-02 19:17:36 -08:00