{"id":16299452,"url":"https://github.com/warapitiya/gulp-smart-debian","last_synced_at":"2026-04-04T22:34:08.589Z","repository":{"id":91280169,"uuid":"88977466","full_name":"warapitiya/gulp-smart-debian","owner":"warapitiya","description":"Gulp plugin to create a Debian package","archived":false,"fork":false,"pushed_at":"2017-04-21T17:49:04.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T19:52:13.429Z","etag":null,"topics":["debian","gulp","gulp-plugin","linux","npm"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/warapitiya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-21T11:34:19.000Z","updated_at":"2017-04-21T11:48:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"40c483af-9410-48b9-9780-e6524d84b7bc","html_url":"https://github.com/warapitiya/gulp-smart-debian","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/warapitiya/gulp-smart-debian","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warapitiya%2Fgulp-smart-debian","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warapitiya%2Fgulp-smart-debian/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warapitiya%2Fgulp-smart-debian/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warapitiya%2Fgulp-smart-debian/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/warapitiya","download_url":"https://codeload.github.com/warapitiya/gulp-smart-debian/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warapitiya%2Fgulp-smart-debian/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31416777,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["debian","gulp","gulp-plugin","linux","npm"],"created_at":"2024-10-10T20:48:02.648Z","updated_at":"2026-04-04T22:34:08.566Z","avatar_url":"https://github.com/warapitiya.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\tgulp-smart-debian\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  Fork from \u003ca href='https://github.com/stpettersens/gulp-debian'\u003egulp-debian\u003c/a\u003e, But support `gulp 4` and `upto-date`.\n\u003c/p\u003e\n\n##### Install\n\n    $ yarn add gulp-smart-debian -D\n\n##### Usage\n\nDefine package in-line:\n\n```js\n'use strict'\n\nconst gulp = require('gulp')\nconst deb = require('gulp-smart-debian')\n\nfunction createDebTask() {\n    return gulp.src(['demo.sh','blob.bin'])\n      .pipe(deb({\n        package: 'demo',\n        version: '0.1-2',\n        section: 'base',\n        priority: 'optional',\n        architecture: 'i386',\n        maintainer: 'Mr. Apt \u003capt@nowhere.tld\u003e',\n        description: 'A dummy package',\n        preinst: [ 'echo \"hello from dummy package\"' ],\n        postinst: [ 'cat -n /opt/demo/.npmignore' ],\n        changelog: [\n          {\n            version: '0.1-2',\n            distribution: 'unstable',\n            urgency: 'low',\n            date: new Date('2016-12-24T12:40:10'),\n            changes: [\n              'Added another feature.',\n              'Fixed feature X.'\n            ]\n          },\n          {\n            version: '0.1-1',\n            distribution: 'unstable',\n            urgency: 'low',\n            date: '2016-12-23T11:24:00',\n            changes: [\n              'First release.'\n            ]\n          }\n        ],\n        _target: 'opt/demo',\n        _out: 'dist',\n        _verbose: true\n      }));\n}\n\ngulp.task('default', gulp.parallel(createDebTask));\n```\n\nAlternatively, you can define your package in an external [JSON file](demo_0.1-2_i386.json):\n\n```js\nfunction task() {\n    return gulp.src(['demo.sh', 'blob.bin'])\n      .pipe(deb('demo_0.1-2_i386.json'));\n}\n```\n\nYou can also use a YAML file to define your package. Just convert it to an Object first using\nthe [js-yaml](https://github.com/nodeca/js-yaml) module (`npm install --save js-yaml`):\n\n```js\nconst YAML = require('js-yaml')\nconst fs = require('fs')\n\nfunction task() {\n     return gulp.src(['demo.sh', 'blob.bin'])\n      .pipe(deb(YAML.load(fs.readFileSync('demo_0.1-2_i386.yml').toString())));\n}\n```\n\n##### Options\n\n* Options: Object containing properties for a Debian file and the following parameters:\n  \t* preinst: Array of commands to run for the package's *pre-install* script (optional).\n  \t* postint: Array of commmands to run for the package's *post-install* script (optional).\n  \t* changelog: Array of versions and their changes to write to the package's *changelog* (optional, but recommended). Options are:\n  \t\t* version: String for version with changes.\n  \t\t* distribution: String for version distribution.\n  \t\t* urgency: String for version urgency.\n  \t\t* date: Date object or String in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) notation for version date.\n  \t\t* changes: Array of changes made.\n\t* _target: string - The installation target for the created Debian package (mandatory).\n\t* _out: string - The target directory to create the Debian package in (mandatory).\n\t* _verbose: boolean - Verbose output from dpkg-deb utility (optional; true if omitted).\n\n  (or)\n\n  * String containing filename for external JSON file defining package.\n\n##### Contributors\n\n* [Malindu Warapitiya](https://github.com/warapitiya)\n\n##### Original Repo\n* [gulp-debian](https://github.com/stpettersens/gulp-debian)\n\n\n##### License\n\n[MIT](https://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwarapitiya%2Fgulp-smart-debian","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwarapitiya%2Fgulp-smart-debian","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwarapitiya%2Fgulp-smart-debian/lists"}