Giter VIP home page Giter VIP logo

generator-mn's Introduction

generator-mn

Modern setup for Marionette applications

Features

  • Bundling with webpack
    • Configures dev npm script with a live server for development
    • Configures prod npm script for production
    • Uses the newer webpack tools (webpack-command and webpack-serve)
  • Compilation with babel 6.x
    • Uses preset-env
    • Out of the box configured to support ie 11 and green browsers
  • Preconfigured service-worker using Workbox
  • Option to install CSS/UI frameworks
  • Option to install custom renderers
  • Option to install bottlejs (dependency injection micro library)
  • Option to install hygen templates (view, model, route)

Installation

First, install Yeoman and generator-mn using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-mn

Usage

Generate a new project

yo mn

The generator will ask for some options:

CSS/UI framework
  • none
  • Bootstrap 3
  • Bootstrap 4 - with font awesome
  • Framework7 v2
Renderers
  • Snabbdom
  • React
  • Inferno
  • Incremental-Bars (Handlebars + incremental-dom)
  • Virtual-Dom
  • Tinybind (based on rivets)

Some renderers offers specific options for addons like configuration of JSX or jade transformer

Backbone/Marionette plugins
  • backbone-computedfields
  • backbone.validation
  • backbone.syphon
  • backbone.localstorage
  • marionette.native
  • marionette.routing
  • marionette.modalservices
  • radio.service
Extra libraries
  • bottlejs (dependency injection micro library)
  • hygen templates for creating model, view, route (needs hygen installed globally)

Build the application

For development (a server will be started usually at http://localhost:8080)

npm run dev 

For production

npm run prod

License

MIT © Luiz Américo Pereira Câmara

generator-mn's People

Contributors

blikblum avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

generator-mn's Issues

Cannot find module

getting this error when I try to run yo mn on ubuntu 18
`internal/modules/cjs/loader.js:584
throw err;
^

Error: Cannot find module '../../utils/configbuilder'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
at Function.Module._load (internal/modules/cjs/loader.js:508:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object. (/usr/local/lib/node_modules/generator-mn/generators/a`

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.