Amazing! Looking forward 1.2 release!
I found something strange when I added the angular package (meteor add angular)
The angular integration worked but as soon as I added the package the status bar on my mobile app that was connected disapeared, it kinda went full screen at the top, when I remove angular and run the app again on the device the status bar show up again.
@sashko have you noticed any slowdowns caused by browserify? My reload is actually slower now with 1.2 RC7
Before it was 10.4 seconds avg to reload a change and now itās 12.7 seconds Thereās around 400 files in the project using tree
.
I think the plan is that the browserify package should convert to the new compiler API to enable better caching, then it should be a lot faster/better. I assume right now the package recompiles everything on every file change, even if you donāt change anything related to browserify?
Oh ok that makes sense! I didnāt try to change a non React part of the app, perhaps that might have been faster. I just edited a bit of the JSX to test.
Are you using Browserify to compile your JSX files? Or are you using the jsx
package? The JSX package doesnāt use Browserify at all.
Oh right, I was thinking React was getting imported in browserify
Itās just this:
var Alt = require('alt');
connectToStores = require('alt/utils/connectToStores');
alt = new Alt();
classNames = require('classnames');
I noticed that when I tried adding in redux & react-router through browserify it became super slow so I ended up taking it out (20+ seconds per reload). I would bet itās recompiling everything on each load.
Yeah. I just recently updated jsx
so that part should be fast and caching now. Iāll see if I can poke @elidoran to update Browserify for the new API.
cosmos:browserify 0.5.0 caches the generated files (.js.cached and source map file). Itās a little faster, but, the processing Meteor does to the files when delivered to the CompileStep object is still very slow. Someone posted an issue about it so I tested it by loading up the client.browserify.js file with a ton of requirements. Even having the file cached to immediately provide to CompileStep it takes a long time. The plugin is done almost immediately. Then, whatever CompileStep does after that to review the code can take minutes. I think the new API is going to solve this issue so Meteorās build system knows the plugin files havenāt changed.
I have a 0.6.0 release which has been waiting for some feedback. It uses an alternate method. It generates a .js file for Meteor to handle the way it does with any user made JS file. It handles that smarter by seeing it hasnāt changed and makes things a lot faster. The new API will replace this functionality too, and be better.
Iāve seen the new API and began a branch for it as well. I havenāt rushed to publish it yet because Meteor 1.2 wasnāt available. I see there are some release candidates to play with so Iāll finish it up and publish it.
Sounds great! Let me know when you have a branch thatās testable and iāll let you know how it works.
Awesome! Is there a new tutorial yet? And what is the new estimated release date?
New RC 12. Seems that infinite loop on rebuild is solved.
Good work MDG!!
Now debug is a pleasure!
What new tutorial are you looking for?
Is something changed in the way of connecting and logging in between different meteor apps using ddp protocol?
Because old tricks not working for me now. Meteor.user() is undefined after successful login.
Oh, almost forgot to ask! Will Meteor 1.2 allow us to use Mongo 3.0 as the default db that runs when you run meteor locally?
Not yet - the upgrade guide linked in the original post is a complete guide of the new features.
If anyone having issues with meteorhacks:npm
. Follow these steps:
rm -rf packages/npm-container
meteor remove npm-container
meteor update meteorhacks:npm
meteor
Read More: https://github.com/meteorhacks/npm/issues/95#issuecomment-137613557
Right, Iām wondering what the new tutorial would have that this one doesnāt. āIs there a new tutorial yetā implies that there is a need for one, and I was just wondering what it would include.
However the answer is no, there is no new tutorial in this release except a React port of the Angular and Blaze one.
Testable branch ready: cosmos:browserify meteor-1.2-api
If you use app scoped stuff be sure to follow the instructions @arunoda wrote about meteorhacks:npm.
Thank you