mbp
Dead simple modular boilerplate.
Last updated a month ago by antoineboulanger .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install mbp 
SYNC missed versions from official npm registry.

modularBP

Dead simple modular boilerplate.

Installation

npm install mbp -g

Usage

# init your project
mbp init

# run the build system you chose
gulp

Modules

Build

Module Description
modularbp-gulp Build tasks modules with gulp

Styles

Module Description
modularbp-css CSS modules with cssnext and PostCSS
modularbp-sass SCSS modules with Sass
modularbp-less LESS modules with Less

Scripts

Module Description
modularbp-mjs JavaScript modules with modularJS and Babel
modularbp-js JavaScript modules with Babel

Views

Module Description
modularbp-hbs HTML modules with Handlebars
modularbp-liquid HTML modules with Liquid
modularbp-swig HTML modules with Swig

Customization

Base

If you want to further customize the boilerplate to your own structure and files, you can easily clone a GitHub repository with the init command, by specifying the repository name and optionally the destination directory. It will clone first, then install the mbp modules without overwriting your files.

mbp init <user/repo> <dir>

Config

You can create a mconfig.json file to change the default folders structure and set your modules choice to skip the cli questions.

{
  "src": "./src/",
  "dest": "./dist/",
  "build": "./build/",
  "styles": {
    "src": "./src/styles/",
    "dest": "./dist/styles/",
    "main": "main"
  },
  "scripts": {
    "src": "./src/scripts/",
    "dest": "./dist/scripts/",
    "main": "main"
  },
  "svgs": {
    "src": "./src/images/sprite/",
    "dest": "./dist/images/"
  },
  "views": {
    "src": "./src/",
    "partials": "./src/partials/"
  },
  "modules": {
    "build": "gulp",
    "style": "css",
    "script": "mjs",
    "view": "hbs"
  }
}

Current Tags

  • 1.3.0                                ...           latest (a month ago)

15 Versions

  • 1.3.0                                ...           a month ago
  • 1.2.0                                ...           a month ago
  • 1.1.3                                ...           a year ago
  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.9                                ...           2 years ago
  • 1.0.8                                ...           2 years ago
  • 1.0.7                                ...           2 years ago
  • 1.0.6                                ...           2 years ago
  • 1.0.5                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 32
Dependencies (3)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |