@raja-rakoto/minificator
v2.0.2
Published
Minificator CLI: efficience solution for swiftly reducing file sizes and effortlessly optimizing a variety of file formats π οΈ
Downloads
34
Maintainers
Readme
minificator π οΈ
Ditch online tools and optimize your files locally with Minificator, a powerful and user-friendly CLI tool that swiftly reduces file sizes for a variety of file formats, including images, PDFs, and more ...
key features:
- π Offline - Optimize files locally to ensure data privacy and security without needing an internet connection.
- π Performance & Optimization - Minimize file sizes while preserving quality, ensuring efficient storage and enhancing the performance of various applications.
- π― Ease to use - Features an intuitive CLI interface, making file optimization simple even for beginners
- π Variety of formats - Supports various file formats like JPEG, PNG, GIF, PDFs, and more.
π Usage
npm install -g @raja-rakoto/minificator
π NPM Scripts
Start
- π
start
- Run your application with bun. - π
start:smol
- Run your application with bun and a flag which configures the JavaScriptCore heap size to be smaller and grow slower. - π
start:bin
- Run your standalone binary app.
Clean
- π
clean
- Remove coverage data, prod, build.
Development
- π
dev
- Launch your application in development mode with bun. - π
dev:watch
- Interactive watch mode to automatically transpile source files with bun in development. - π
dev:hot
- Hot reloading of source files with bun in development. - π
dev:smol:watch
- Interactive watch mode to automatically transpile source files with bun in development, while using --smol flag. - π
dev:smol:hot
- Hot reloading source files with bun in development, while using --smol flag.
Build
- π
build
- Transpile and bundle source files with bun. - π
build:watch
- Interactive watch mode to automatically transpile source files with bun. - π
build:bin
- bun's bundler implements a --compile flag for generating a standalone binary from a TypeScript or JavaScript file, use this in your production environment to ensure optimal execution of your app.
Testing
- π
test
- Run bun test. - π
test:watch
- Interactive watch mode to automatically re-run tests with bun.
Linting and Formatting
- π
biome:start
- Starts the Biome daemon server. You can specify a custom configuration file path using the--config-path
option. - π
biome:stop
- Stops the Biome daemon server. - π
biome:fix
- Runs a source code check and applies automatic fixes (linter & formatter) according to the defined rules. - π
biome:unsafe
- Works likebiome:fix
, but may apply more invasive or risky changes.
Backup and Dependency Management
- π
backup
- Backup files with Grunt. - π
pkg-check
- Check useless dependencies with depcheck. - π
pkg-upgrade
- Upgrade outdated dependencies (interactive mode) with npm-check-updates.
Versioning
- π
versioning
- Start ungit server.
NPM Commands
- π
npm-version:major
- Increments the major version number of your project using npm. - π
npm-version:minor
- Increments the minor version number of your project using npm. - π
npm-version:patch
- Increments the version patch number of your project using npm. - π
npm-login
- Login to a registry user account. - π
npm-publish
- Publish your npm package with public access. - π
npm-unpublish
- Forcefully unpublish the cli package from npm. - π
npm-reset:registry
- Delete the custom npm registry. - π
npm-check:registry
- Get the currently configured registry for npm. - π
npm-proxy-set:registry
- Set the npm registry to use a local proxy. - π
npm-proxy:start
- Start a Verdaccio server with a local npm proxy. - π
npm-proxy:publish
- Publish your npm package via the local proxy. - π
npm-proxy:unpublish
- Forcefully unpublish the cli package from the npm registry via the local proxy. - π
npm-proxy:republish
- Republish your npm package by first unpublishing it and then publishing it again via the local proxy.
NVM
- π
nvm
- Manage multiple node.js versions. Easily switch between node versions per project to ensure compatibility.
π Build
When using the build.js file in this project, it's important to note the significance of the target option. By default, if the target option is not specified in the build.js file, it will be set to browser
. However, for projects utilizing the bun.js
runtime environment, it's imperative to explicitly set the target to bun
. This guarantees compatibility with the bun
shell environment and prevents unexpected behavior. Furthermore, it's noteworthy that the target
supports three possible values: browser
, bun
, and node
, providing flexibility in defining the build target according to specific project requirements.