4.5.2 • Published 29 days ago

buildm v4.5.2

Weekly downloads
-
License
MIT
Repository
github
Last release
29 days ago

Build Manager

Effortlessly create build files for your application

npm version License GitHub issues GitHub stars GitHub forks

Build Manager is a robust tool that simplifies the creation of build files for your application. It allows you to minify your JavaScript, CSS, and HTML files with ease, optimizing the process for improved performance and security.

Features

  • Open Source: As an open-source tool, Build Manager allows you to modify it to suit your needs.
  • User-Friendly: With its intuitive API, managing data with Build Manager is a breeze.
  • Customizable: Configure build settings effortlessly to meet your specific requirements.
  • Secure: Build Manager prioritizes data security, ensuring your information is protected during access and storage.

Supported Files

Installation

Install Build Manager using NPM:

npm install -g buildm

Usage

CLI

Build specified files:

buildm --build src/index.html src/assets/main.css src/assets/main.js

Build all files within a folder:

buildm --b public

Relocate the target folder or files to a different path and build them:

cp public build -r && buildm --b build

Module

Create custom configurations for files using modules:

// Import the 'buildm' function from the 'buildm' module
const buildm = require('buildm');

// Configuration object specifying build options
const buildConfig = {
  options: {
    log: true
  },
  files: {
    js: {
      expression: false
    },
    css: {
      colors: {
        opacity: true
      }
    },
    html: {
      collapseWhitespace: true,
      removeComments: true
    }
  }
};

// Build specific files with the provided configuration
buildm('public/index.html', buildConfig);
buildm('public/styles/style.css', buildConfig);
buildm('public/scripts/script.js', buildConfig);

// Build all files within the 'public' folder using the same configuration
buildm('public', buildConfig);

Configuration

Access a comprehensive list of configurations for minifying through the following links:

  • JS: Build Manager uses the UglifyJS 3 configuration to minify JS files.
  • CSS: Build Manager uses the Clean CSS configuration to minify CSS files.
  • HTML: Build Manager uses the HTML Minifier configuration to minify HTML files.

Default Configuration

Here is the default configuration for Build Manager:

https://github.com/amirfarzamnia/buildm/blob/main/config.json

4.5.2

29 days ago

4.5.1

1 month ago

4.5.0

1 month ago

4.2.0

3 months ago

4.1.0

3 months ago

4.0.5

3 months ago

4.0.0

3 months ago

3.7.6

4 months ago

3.7.5

4 months ago

3.7.0

4 months ago

3.6.5

4 months ago

3.6.0

4 months ago

3.5.5

4 months ago

3.5.0

4 months ago

3.4.0

4 months ago

3.2.0

4 months ago

3.1.5

4 months ago

3.1.1

4 months ago

3.0.0

4 months ago

1.9.5

4 months ago

1.0.2

4 months ago

1.0.1

4 months ago

1.0.0

4 months ago