New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

buildm

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

buildm

Effortlessly create build files for your application

  • 4.5.2
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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

HTML CSS JavaScript

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

Keywords

FAQs

Package last updated on 20 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc