{"id":18706420,"url":"https://github.com/chisel/ease-task-minify-js","last_synced_at":"2025-11-09T07:30:35.530Z","repository":{"id":51814472,"uuid":"194464974","full_name":"chisel/ease-task-minify-js","owner":"chisel","description":"JS minifier for Ease task runner.","archived":false,"fork":false,"pushed_at":"2022-07-20T01:29:39.000Z","size":15,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T01:40:00.254Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chisel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-30T01:58:48.000Z","updated_at":"2021-02-14T13:54:58.000Z","dependencies_parsed_at":"2022-08-20T00:51:28.514Z","dependency_job_id":null,"html_url":"https://github.com/chisel/ease-task-minify-js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chisel%2Fease-task-minify-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chisel%2Fease-task-minify-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chisel%2Fease-task-minify-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chisel%2Fease-task-minify-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chisel","download_url":"https://codeload.github.com/chisel/ease-task-minify-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239571542,"owners_count":19661164,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T12:14:04.609Z","updated_at":"2025-02-18T23:43:01.347Z","avatar_url":"https://github.com/chisel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ease Task Runner JS Minifier Plugin\n\nThis is a plugin for the [Ease task runner](https://github.com/chisel/ease). It uses the [terser](https://www.npmjs.com/package/terser) module to minify JS files.\n\n# Installation\n\n```\nnpm install ease-task-minify-js --save-dev\n```\n\n**easeconfig.js:**\n```js\nconst minifyJs = require('ease-task-minify-js');\n\nmodule.exports = ease =\u003e {\n\n  ease.install('minify-js', minifyJs, {});\n\n};\n```\n\n# Configuration\n\nThis plugin takes a config object similar to [Terser Minify Options](https://www.npmjs.com/package/terser#minify-options) while adding the following properties:\n  - `dir`: Path to a directory containing all the SASS files, relative to `easeconfig.js`\n  - `outDir`: Path to the output directory where the CSS files should be written, relative to `easeconfig.js`\n  - `cleanOutDir`: Boolean indicating if the output directory should be emptied first\n\n# Example\n\n**easeconfig.js:**\n```js\nconst minifyJs = require('ease-task-minify-js');\n\nmodule.exports = ease =\u003e {\n\n  ease.install('minify-js', minifyJs, {\n    dir: 'js',\n    outDir: 'minified-js',\n    cleanOutDir: false,\n    sourceMap: true,\n    mangle: {\n      toplevel: true\n    }\n  });\n\n  ease.job('minify-js-files', ['minify-js']);\n\n};\n```\n\n**CLI:**\n```\nease minify-js-files\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchisel%2Fease-task-minify-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchisel%2Fease-task-minify-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchisel%2Fease-task-minify-js/lists"}