1.3.0 • Published 5 years ago

mbp v1.3.0

Weekly downloads
34
License
MIT
Repository
github
Last release
5 years ago

Installation

npm install mbp -g

Usage

# init your project
mbp init

# run the build system you chose
gulp

Modules

Build

ModuleDescription
modularbp-gulpBuild tasks modules with gulp

Styles

ModuleDescription
modularbp-cssCSS modules with cssnext and PostCSS
modularbp-sassSCSS modules with Sass
modularbp-lessLESS modules with Less

Scripts

ModuleDescription
modularbp-mjsJavaScript modules with modularJS and Babel
modularbp-jsJavaScript modules with Babel

Views

ModuleDescription
modularbp-hbsHTML modules with Handlebars
modularbp-liquidHTML modules with Liquid
modularbp-swigHTML 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"
  }
}
1.3.0

5 years ago

1.2.0

5 years ago

1.1.3

6 years ago

1.1.1

6 years ago

1.1.0

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.1.0

7 years ago