muleify
A zero configuration static site generator and asset preprocessor compiler.
Last updated 23 days ago by alexanderelias .
MPL-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install muleify 
SYNC missed versions from official npm registry.

Star Issue Watch

Muleify

Static Site Generator | Website Bundler | Asset Compiler | Templating | Preprocessor

Build Status

Overview

Muleify is the one stop shop for your web front end needs, it is a command line tool that handles all your website development needs. Muleify has a unique no configuration required interface. It automatically handles many tasks such as compiling Sass, Scss, Less, Css, ES6 to ES5, bundling, and minifying. Muleify uses extensions and sub-extensions to automatically handle these tasks. With almost almost zero configuration or changes to existing projects you can get started. If there is a feature you want let me know or make a PR.

Features

Another static site and asset generator you might say.

  • zero configuration
  • quick and easy
  • no learning curve
  • based on extensions and sub-extensions
  • single page applications support (spa's)
  • imports, includes, partials, templates, and layouts
  • preprocessor types JavaScript, CSS, SCSS, SASS, LESS, HTML, MD

Install

npm i -g muleify

Changes

  • 3.x.x uses async/awiat so node version >=7.6.0
  • 2.7.0 removes default sass/scss support. After install if you want to use sass run muleify install-node-sass.

CLI

  • muleify -p [options] <input> <output> Packs a folder or file

    • input path to folder or file
    • output path to folder or file
    • -b, --bundle Bundles the output
    • -m, --minify Minifies the output
    • -t, --transpile Transpile the output
    • -w, --watch Watches a file or folder
    • -p, --path <path> Defines the path to watch
    • -s, --serve Serves a folder or file
  • muleify -s [options] <input> [output] Serves a folder or file

    • input path to folder
    • output path to folder (optional)
    • -s, --spa Enables single page application mode
    • -c, --cors Enables cross origin resource sharing mode
  • muleify -m [options] <input> <output> Creates XML sitemap

    • input path to a folder to generate the sitemap
    • output path to a folder to output sitemap.xml
    • -d, --domain <domain> Inserts domain into sitemap
  • muleify -e [options] <input> <output> Creates folders and files from a json file

    • input path to a JSON file
    • output path to a folder
  • muleify -i Installs sass/scss compiler (might require sudo)

Extensions

Muleify uses extensions and sub-extensions to process specail file types. Sub-extensions are period separated names. They can be combined in any order or combination. The generated file will not contain the sub-extensions. For example a file in the src folder could be named file.b.e.js and the dist folder it would be named file.js.

Options

ALL

  • i - ignore

HTML

  • l - layout wraps all view files
  • v - view inserted into layout
  • p - partial allows file to be imported
  • m - minify minify code (under development)

MD

JS

  • b - bundle modules ESM to UMD
  • t - transpile
  • m - minify minify code
    • @preserve will persist comments.
    • @banner will place comment at document start.

CSS

SCSS

  • m - minify minify code

LESS

  • m - minify minify code

Includes/Imports/Partials/Layouts

The path includes/imports/partials/layouts are relative from the input folder.

Options

HTML

Note partial relative path from file

  • layout a placeholder: <!-- { "layout": "*" } -->
  • import a partial: <!-- { "partial": "./header.p.html" } -->
  • define a variable: <!-- { "title": "I Am Title" } -->
  • import a variable: <!-- { "variable": "title" } -->

MD

Converts to HTML.

JS

Supports ESM import relative path from file and also the node resolution algorithm. For node resolution it will search the node_modules package.js files for "module": "file" or main: "file".

CSS

Note @import relative path from file

SCSS

Sass automatically bundles imports. Note @import relative path from file

LESS

Less automatically bundles imports. Note @import relative path from file

Authors

AlexanderElias

License

Why You Should Choose MPL-2.0 This project is licensed under the MPL-2.0 License

Current Tags

  • 5.3.0                                ...           latest (23 days ago)

125 Versions

  • 5.3.0                                ...           23 days ago
  • 5.2.3                                ...           2 months ago
  • 5.2.2                                ...           2 months ago
  • 5.2.0                                ...           2 months ago
  • 5.1.3                                ...           2 months ago
  • 5.1.2                                ...           2 months ago
  • 5.1.1                                ...           a year ago
  • 5.1.0                                ...           a year ago
  • 5.0.9                                ...           a year ago
  • 5.0.8                                ...           a year ago
  • 5.0.7                                ...           a year ago
  • 5.0.6                                ...           a year ago
  • 5.0.5                                ...           a year ago
  • 5.0.4                                ...           a year ago
  • 5.0.3                                ...           a year ago
  • 5.0.2                                ...           a year ago
  • 5.0.1                                ...           a year ago
  • 5.0.0                                ...           a year ago
  • 4.0.8                                ...           a year ago
  • 4.0.7                                ...           a year ago
  • 4.0.6                                ...           a year ago
  • 4.0.5                                ...           2 years ago
  • 4.0.4                                ...           2 years ago
  • 4.0.3                                ...           2 years ago
  • 4.0.2                                ...           2 years ago
  • 4.0.1                                ...           2 years ago
  • 4.0.0                                ...           2 years ago
  • 3.0.7                                ...           2 years ago
  • 3.0.6                                ...           2 years ago
  • 3.0.5                                ...           2 years ago
  • 3.0.4                                ...           2 years ago
  • 3.0.3                                ...           2 years ago
  • 3.0.2                                ...           2 years ago
  • 3.0.1                                ...           2 years ago
  • 3.0.0                                ...           2 years ago
  • 2.7.18                                ...           2 years ago
  • 2.7.17                                ...           2 years ago
  • 2.7.16                                ...           2 years ago
  • 2.7.15                                ...           2 years ago
  • 2.7.14                                ...           2 years ago
  • 2.7.13                                ...           2 years ago
  • 2.7.12                                ...           2 years ago
  • 2.7.11                                ...           2 years ago
  • 2.7.10                                ...           2 years ago
  • 2.7.9                                ...           2 years ago
  • 2.7.8                                ...           2 years ago
  • 2.7.7                                ...           2 years ago
  • 2.7.6                                ...           2 years ago
  • 2.7.5                                ...           2 years ago
  • 2.7.4                                ...           2 years ago
  • 2.7.3                                ...           2 years ago
  • 2.7.2                                ...           2 years ago
  • 2.7.1                                ...           2 years ago
  • 2.7.0                                ...           2 years ago
  • 2.6.1                                ...           2 years ago
  • 2.6.0                                ...           2 years ago
  • 2.5.98                                ...           2 years ago
  • 2.5.97                                ...           2 years ago
  • 2.5.96                                ...           2 years ago
  • 2.5.95                                ...           2 years ago
  • 2.5.94                                ...           2 years ago
  • 2.5.93                                ...           2 years ago
  • 2.5.92                                ...           2 years ago
  • 2.5.91                                ...           2 years ago
  • 2.5.90                                ...           2 years ago
  • 2.5.9                                ...           2 years ago
  • 2.5.8                                ...           2 years ago
  • 2.5.7                                ...           2 years ago
  • 2.5.6                                ...           3 years ago
  • 2.5.5                                ...           3 years ago
  • 2.5.4                                ...           3 years ago
  • 2.5.1                                ...           3 years ago
  • 2.5.0                                ...           3 years ago
  • 2.4.9                                ...           3 years ago
  • 2.4.7                                ...           3 years ago
  • 2.4.6                                ...           3 years ago
  • 2.4.5                                ...           3 years ago
  • 2.4.4                                ...           3 years ago
  • 2.4.3                                ...           3 years ago
  • 2.4.2                                ...           3 years ago
  • 2.3.2                                ...           3 years ago
  • 2.3.1                                ...           3 years ago
  • 2.3.0                                ...           3 years ago
  • 2.2.9                                ...           3 years ago
  • 2.2.8                                ...           3 years ago
  • 2.2.7                                ...           3 years ago
  • 2.2.6                                ...           3 years ago
  • 2.2.5                                ...           3 years ago
  • 2.1.4                                ...           3 years ago
  • 2.0.3                                ...           3 years ago
  • 2.0.2                                ...           3 years ago
  • 2.0.1                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
  • 1.8.2                                ...           3 years ago
  • 1.8.1                                ...           3 years ago
  • 1.8.0                                ...           3 years ago
  • 1.7.9                                ...           3 years ago
  • 1.7.8                                ...           3 years ago
  • 1.7.6                                ...           3 years ago
  • 1.7.5                                ...           3 years ago
  • 1.7.4                                ...           3 years ago
  • 1.7.3                                ...           3 years ago
  • 1.7.2                                ...           3 years ago
  • 1.7.1                                ...           3 years ago
  • 1.7.0                                ...           3 years ago
  • 1.6.9                                ...           3 years ago
  • 1.6.8                                ...           3 years ago
  • 1.6.7                                ...           3 years ago
  • 1.6.6                                ...           3 years ago
  • 1.6.5                                ...           3 years ago
  • 1.5.5                                ...           3 years ago
  • 1.5.4                                ...           3 years ago
  • 1.1.3                                ...           3 years ago
  • 1.1.2                                ...           3 years ago
  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.9                                ...           3 years ago
  • 1.0.8                                ...           3 years ago
  • 1.0.6                                ...           3 years ago
  • 1.0.5                                ...           3 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 4
This Month 8
Last Day 0
Last Week 2
Last Month 152
Dependencies (17)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |