Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
David Bashford
@dbashford
that is widely supported at this point
also, make sure you remove the node_modules/mimosa-stylus to force the reload of the latest module. Or you can update your modules list to have mimosa-stylus@1.4.0
hahahahahahahahahahahahahahahaha
@hahahahahahahahahahahahahahahaha
yeah, I'm using the latest version, it's all good, even going the standard supported way doesn't seem to be working, but I am getting the linenos
{
  "name": "mimosa-stylus",
  "version": "1.4.0",
But not seeing the sourcemap file being created, or the sourcemap ref being created at the bottom of the css file
My naming conventions are good enough and the code is organized enough that it's really overkill, at the same time I want it there for when the more junior or new people start looking into the code
David Bashford
@dbashford
you running mimosa watch?
Daniel Bartholomae
@dbartholomae
Hi there, I am currently struggeling with getting mimosa to work with requirejs on the server side:
When requirejs looks for modules, it uses the mimosa build dir as working directory instead of the project directory. Any ideas how to change this? :)
David Bashford
@dbashford
So you are using AMD within your server code as well as your UI code? mimosa-require definitely looks at the watch.sourceDir as do pretty much all the modules. Your options are probably 1) Get your server and UI code both within the watch.sourceDir or 2) run two projects, one for server, one for UI. Future releases will allow having a single project with entirely different profiles running differently on different folders, but for now its a single input folder.
Daniel Bartholomae
@dbartholomae
For the first solution, do you expect problems if I use jade for server and client? The server templates might get rendered to the client templates.js, if I understand mimosa correctly
Daniel Bartholomae
@dbartholomae

I managed to shim it with this configuration:

exports.startServer = (config, callback) ->
  requirejs = require 'requirejs'

  requirejs.config(
    nodeRequire = require
  )

  requirejs ["#{__dirname}/app"], (app) ->
    app.startServer config, callback

Thanks for Mimosa, it really helped me to get started on NodeJS! :)

David Bashford
@dbashford
:+1:
hahahahahahahahahahahahahahahaha
@hahahahahahahahahahahahahahahaha
does anyone else prototype over HTTPS rather than HTTP?
curious if anyone would like a flag in a skeleton for a BS certificate but eh LOE is low but ROI is also low lol
David Bashford
@dbashford
so I'm down to 5 files to test and convert, but they are the biggies.
Daniel Bartholomae
@dbartholomae
Hi there, one quick question: Is it possible to create a mimosa module that does something with a file outside the watched dir (e.g. assets)? I would like to write a module that automatically copies all .coffee files from /app/shared to /assets/javascript/shared before they are compiled, but I'm not sure this is possible.
David Bashford
@dbashford
Check this out and see if its close to what you need? https://github.com/dbashford/mimosa-import-source If not then at least its a good place to start a conversation. =)
Daniel Bartholomae
@dbartholomae
Great, that's exactly what I was looking for! :)
David Bashford
@dbashford
:+1:
Ken Carpenter
@mindjuice
Has anyone come across this issue with mimosa-browserify? JonET/mimosa-browserify#21
It crashes every time I rebuild
Or rather every time mimosa rebuilds after noticing a file change.
David Bashford
@dbashford
Not a browserify shop here, so not something I've seen.
that module hasn't changed in awhile, what may have changed for you locally? or may the versions have shifted because they were not pinned?
Ken Carpenter
@mindjuice
I'll check to see if anything else has been updated recently...thanks. Every once in a while, it actually works properly, so not sure if I was just getting lucky before.
Anachron
@Anachron
@dbashford how's it going? =)
David Bashford
@dbashford
Good! Was actually just getting some mimosa core stuff done for the first time since last weekend. Work has been killing me. But am on trip to SF this week, will get to be productive via travel.
Anachron
@Anachron
Sounds great! Which IDE are you using btw? (I would guess TextMate) I'm trying out VIM, but it's still very hard for me compared to GUI-Tools like Atom.io.
David Bashford
@dbashford
I usually use atom. I'm not an editor power user though. I don't memorize all the crazy hot keys.
John-Henry Liberty
@jhliberty
Once you get the basic vim commands down and add a couple plugins its not too bad but I still find myself using something like sublime more atm
http://vimawesome.com/ has some neat stuff and I really like vim.pathogen to handle packages
Anachron
@Anachron
@jhliberty I made myself a crazy task and remap most of the vim shortkeys to be more clear and easier to remember. already have 100 must have key combinations, now I need to find out how to do each of them. Only the basics like next char and prev char are working so far.
ln for example is next-line, lp is previous-line and so on :)
Ken Carpenter
@mindjuice
How do you go about debugging problems with mimosa and dependent modules? I've only done printf debugging with node so far. I'm still having this problem: JonET/mimosa-browserify#21
hahahahahahahahahahahahahahahaha
@hahahahahahahahahahahahahahahaha
I keep getting this error, any advice for tracking it down? I'm thinking it's bc I'm using nvm and 0.12.2...
http.Client will be removed soon. Do not use it.
[Error: Module did not self-register.]
js-bson: Failed to load c++ bson extension, using pure JS version

node_modules/bcrypt/node_modules/bindings/bindings.js:83
        throw e
              ^
Error: Module did not self-register.
But basically server-reload is fubar, live reload works fine though
David Bashford
@dbashford
So that's server reload on 12.2? I can take a look.
David Bashford
@dbashford
Just pushed a new version with an updated file watcher. If the problem persists let me know and I can dig further.
hahahahahahahahahahahahahahahaha
@hahahahahahahahahahahahahahahaha
okay awesome I will check it out tonight
also, was curious, is there a module to do a PhoneGap build, if not I'm going to try and piece together something with the jade-static-export and see what I can do
David Bashford
@dbashford
i've never seen a phonegap thing
Anachron
@Anachron
@dbashford no more progress on Mimosa? Busy working?
David Bashford
@dbashford
Yah, pretty much. I've had to choose between the open source stuff and the product development stuff at my work. It definitely pains me not to be making progress on the tests. Been a ton of travel too. Killing me.
David Bashford
@dbashford
I would say, a day later, that I intend to be responsive if folks find bugs anywhere. I can drop into modules or mimosa core for an hour or two here or there to patch things up. Just need a delay on 3.0, which sucks given I am fairly close getting through the pain in the ass part.
Anachron
@Anachron
@dbashford awww that sounds rough. Well I'm spending some time on Rust and Arch-Linux too lately, so I'm not that busy with web programming.
Take your time, there is no hurry as for now. I may have to update a lot of libraries, but that's not your fault anyway.
David Bashford
@dbashford
Lately I've been itching to dig into other languages, if only to play. Go, Rust, Elixir, not sure where I'd start really, but been aching to break away from just JavaScript. And I have no desire to go back to java =)
Ken Carpenter
@mindjuice
Cool. I just started learning Elixir. Seems like a very interesting language. I've also been learning a lot lately about functional languages, functional reactive programming, category theory and more (read through SICP). I have also done more than my share of Java programming. I can't stand it now, and I stay away from Java and all JVM languages. :smile:
Anachron
@Anachron
I also come from PHP and JAVA, while I do have nice things to say about both, I do really enjoy Rust and am very curious about it's future. The safety and speed coupled with good concepts really make it delightful.
Go is just as flexible as JavaScript with better IO and Sync/Threads, but safety is it's price.
Elixir wad unknown to me, however, after a short introduction it seems less powerful than Rust or Go and a smaller Community.