🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

mvc-generator

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mvc-generator

A tool to scaffold your MVC project based on a simple JSON config.

1.0.0
latest
Source
npm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

node-contrib-mvcgenerator

A tool to scaffold your MVC project based on a simple JSON config.

Example config file:

exports.config = {
  // filename extensions - acceptable formats: js, hbs, html, coffee
	extension: {
		controllers: 'js',
		models: 'js',
		views: 'hbs'
	},

	// define the names of folders for each component
	models: 'models',
	controllers: 'controllers',
	views: 'views',
	partials: 'partials',

	// whether or not we use the standard convention of pluralizing models into collections (e.g. User -> Users)
	pluralize_collections: true,

	// the appended word for semantic consistency
	controller_prefix: 'Controller',

	// file names
	files: {
		models: ['dog', 'animal'],
		views: ['dog', 'pups', 'about'],
		controllers: ['dog', 'animal', 'pups']
	}};

Usage: Just add your config file in the same directory, tweak to your liking, and run: node generator.js

Keywords

mvc

FAQs

Package last updated on 10 Jul 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts