Questions tagged [mimosa]

Mimosa is a build tool for JavaScript

Mimosa is a modular build tool for JavaScript, written in Node.js. It provides features like compilers for JavaScript / CSS / templates, linting, optimization, serving, RequireJS support and Live Reload built right in. Pluggable for authoring your own functionality.

Where to Start with Development?

You've got four choices, all detailed below:

  1. Start by cloning/downloading a demo application if you want something meaty.
  2. Use one of Mimosa's application skeletons if you just want a little boilerplate, some client libraries and some sample code.
  3. Start with a fresh Mimosa generated scaffold.
  4. Hook up your existing application.

Pre-Built Skeletons execute "mimosa skel:list" and see what's available

A skeleton is a small application that utilizes and configures a group of components.

Mimosa maintains a "skeleton registry" that you can pull from to start your application. From the command line execute mimosa skel:list to get a list of pre-built skeletons.

18 questions
5
votes
1 answer

node.js server leaking TCP connections?

Note: see my edit at the end of the post. I have a node.js (Express) server which is serving approximately 15-30 requests/second. I am serving a bunch of simple JADE templates, and a Durandal SPA application, with the bulk of the requests being for…
pmarchezz
  • 81
  • 6
2
votes
1 answer

Compile all angular templates to one js file

I am trying to compile all angulara templates into a single js file. Something like what ember does with ember-cli. So I successfully managed to minify and concat all the javascript files. I have just 2 files now vendor.js and application.js and…
r.sendecky
  • 9,933
  • 9
  • 34
  • 62
2
votes
1 answer

Mimosa karma configuration

Using mimosa I am trying to set the https://github.com/karma-runner/karma-ng-html2js-preprocessor in karma.conf.js using ... files = [ JASMINE, JASMINE_ADAPTER, ... {pattern: "source/apps/common/partials/*.html", included:…
danday74
  • 52,471
  • 49
  • 232
  • 283
2
votes
1 answer

With mimosa is it possible to separate bower assets?

Mimosa provides for the directory structure ... assets (the watch.sourceDir) assets/JavaScript files (Bower installs to a vendor directory here) public extract from mimosa-config.coffee ... vendor: # settings for…
danday74
  • 52,471
  • 49
  • 232
  • 283
2
votes
1 answer

Hosting a nodejs express site on Windows Azure

I created a new NodeJS site based on the documentation of Durandal. It works locally. I set up Windows Azure to pull in the changes of my GitHub repository, which it does correctly. However, (after enabling errors) I'm getting the an internal server…
Peter
  • 13,733
  • 11
  • 75
  • 122
1
vote
2 answers

How to pass a variable to coffeescript depending on build profile in mimosa

I have a typical mimosa front-end project with coffeescript for scripting. I want a certain variable (api path) to have different values, depending on build profile (dev or prod). How can I achieve this in mimosa? Example of what I…
ironic
  • 8,368
  • 7
  • 35
  • 44
1
vote
1 answer

Mimosa csslint configuration not being picked up from csslintrc file

I have created a .csslintrc file in my Mimosa project as documented in mimosa-config-documented.coffee I have also created a .jshintrc file The css lint file IS NOT being picked up The JS hint file IS being picked up This is confirmed when I run ...…
danday74
  • 52,471
  • 49
  • 232
  • 283
1
vote
1 answer

How to setup Jasmine js with Mimosa / Bower

Hey I am new to Mimosa / Bower / Jasmine js and I am trying to make jasmine JS a Development dependency within my mimosa config. Below is my mimosa config. Notice that I am pulling in jasmine but the catch is.... it will not copy the jasmine css…
floor
  • 1,519
  • 11
  • 24
1
vote
1 answer

Mimosa - Change name of minified asset at compiled dir

I've found Mimosa past month but now I am finally starting to use it. Consider this configuration snippet: exports.config = { "modules": [ "copy", "minify-js" ], "watch": { "sourceDir": "src", "compiledDir": "dist", …
J. Bruni
  • 20,322
  • 12
  • 75
  • 92
1
vote
2 answers

Change mimosa web package build directory

I am trying to change the directory of Mimosa's "dist" folder. It is currently set via the node package "mimosa-web-package", and there is a config file in there. However, I do not want this config to be overridden if I update my node modules. I…
1
vote
3 answers

Installing durandal template with mimosa seems to break when giving a path

Node, mimosa, durandal newb. I'm attempting to install the mimosa skeleton of durandal on windows, as detailed on the durandal website. Running this command: mimosa skel:new durandal "C:\Users\Anthony\node projects\typelearn" (quotes because…
sennett
  • 8,014
  • 9
  • 46
  • 69
1
vote
1 answer

Mimosa.io | including socket.io client library with require.js

I am currently loading socket.io client library through the automatic URL provided: requirejs.config({ urlArgs: "b=" + ((new Date()).getTime()), baseURL: "/javascripts/", paths: { /*other libaries here*/ io:…
Paul
  • 1,190
  • 3
  • 12
  • 24
1
vote
2 answers

Create an android app using durandal

I just started with durandal yesterday to try-out android app development. This is my first try in app development also. I was going through docs using mimosa, and it didn't workout as expected. Steps covered Downloaded starter-kit from…
Okky
  • 10,338
  • 15
  • 75
  • 122
1
vote
1 answer

How to start mimosa coffeescript project on command line

I used mimosa to generate an express app, and work with it using mimosa watch --server. Everything is great. There is a server.coffee file, autogenerated by mimosa and requirejs compliant, that contains the line exports.startServer =…
Jim Mack
  • 1,437
  • 11
  • 16
0
votes
1 answer

When starting a node JS server how do you detect if it was started with mimosa watch -s

i have a server.js file written in node.js i can start the server with ... node server or i can start it with ... mimosa watch -s in the server.js file i want to do ... if (this was started with mimosa) { do something } else { do something…
danday74
  • 52,471
  • 49
  • 232
  • 283
1
2