Build Manager
Create build files for your app directly

Build Manager is a powerful tool designed to facilitate the creation of a build file for your application. With this tool, you can effortlessly minify your JavaScript, CSS, and HTML files, streamlining the optimization process for enhanced performance and security.
Features
- Open Source: Build Manager is open source, which means you have the freedom to modify it according to your preferences.
- Easy to Use: Build Manager offers a straightforward API for managing data.
- Customization: Easily configure build settings to fit your requirements.
- Security: Build Manager prioritizes data security to safeguard your information during access and storage.
Supported Files
Installation
You can install Build Manager via NPM:
npm install -g buildm
Usage
CLI
You can build specified files:
buildm --build public/index.html public/assets/main.css public/assets/main.js
You can build all files within a folder:
buildm --b public
You can relocate the target folder or files to a different path and proceed to build them:
cp public buildm -r && buildm --b buildm
Module
Using modules, you can create custom configurations for files:
const { buildFolderAndFiles } = require('buildm');
const buildConfig = {
options: {
log: true
},
files: {
js: {
expression: false
},
css: {
colors: {
opacity: true
}
},
html: {
collapseWhitespace: true,
removeComments: true
}
}
};
buildFolderAndFiles('public/index.html', buildConfig);
buildFolderAndFiles('public/styles/style.css', buildConfig);
buildFolderAndFiles('public/scripts/script.js', buildConfig);
buildFolderAndFiles('public', buildConfig);
Configuration
You can 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:
{
"build": {
"options": {
"log": true
},
"files": {
"js": {},
"css": {},
"html": {
"minifyJS": true,
"minifyCSS": true,
"minifyURLs": true,
"sortClassName": true,
"caseSensitive": true,
"decodeEntities": true,
"sortAttributes": true,
"removeComments": true,
"useShortDoctype": true,
"keepClosingSlash": true,
"collapseWhitespace": true,
"removeAttributeQuotes": true,
"collapseBooleanAttributes": true,
"removeScriptTypeAttributes": true,
"collapseInlineTagWhitespace": true,
"removeStyleLinkTypeAttributes": true
}
}
}
}