Git Product home page Git Product logo

mimosa-fubumvc's Introduction

mimosa-fubumvc NPM version Build Status Coveralls Status Dependencies

Overview

Connects fubumvc concerns to mimosas asset pipeline

Mimosa expects all source asset files to come together into a common directory before being built. For us that directory will be "assets" although this is configurable if you want to change it.

This modules goal is to help move files from various fubumvc locations to mimosas "assets" directory so that they can be picked up, compiled / transformed as necessary and then mimosa moves them to your "public" folder which is what you can then serve as static content via your webserver

For more information regarding Mimosa, see http://mimosa.io

Usage

Add mimosa-fubumvc to your list of modules. That's all! Mimosa will install the module for you when you start up.

Functionality

fubu:init command

Run this from the folder of your fubu mvc web application (ie, the same folder your .csproj sits in)

Creates

  • bower.json
  • mimosa-config.js (or mimosa-config.coffee if "coffee" flag is passed)
  • assets/scripts
  • assets/styles
  • public

Workflow

From the command line, run "mimosa build" while in the folder that holds the mimosa-config file.

Rules for picking up files:

  • nothing at the root directory will get picked up, this is to avoid things like the bower.json and mimosa-config.js
  • must match the list of extensions provided by the mimosa copy modules config section, the defaults for it look like this:

["js","css","png","jpg","jpeg","gif","html","eot","svg","ttf","woff","otf","yaml","kml","ico","htc","htm","json","txt","xml","xsd","map","md","mp4","mp3"]

  • must not match excludePaths rules provided by fubumvc config section used to ignore things that come from bin/obj folders, and any folders that start with a . (hidden folders like .mimosa ,etc)

This means you can have assets side by side other source files in your solution and they will still get picked up.

Default Config

fubumvc: excludePaths: ["bin", "obj", /^./]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.