{"id":21454634,"url":"https://github.com/khalidhoffman/kdev-utils","last_synced_at":"2025-06-15T02:33:09.472Z","repository":{"id":57124615,"uuid":"54343379","full_name":"khalidhoffman/kdev-utils","owner":"khalidhoffman","description":"A personal dev library for quicker for development","archived":false,"fork":false,"pushed_at":"2018-07-29T22:51:35.000Z","size":278,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-05T00:14:54.940Z","etag":null,"topics":["devops"],"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/khalidhoffman.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":"2016-03-20T22:16:00.000Z","updated_at":"2024-10-01T14:56:47.000Z","dependencies_parsed_at":"2022-08-31T08:11:34.197Z","dependency_job_id":null,"html_url":"https://github.com/khalidhoffman/kdev-utils","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/khalidhoffman/kdev-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalidhoffman%2Fkdev-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalidhoffman%2Fkdev-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalidhoffman%2Fkdev-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalidhoffman%2Fkdev-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/khalidhoffman","download_url":"https://codeload.github.com/khalidhoffman/kdev-utils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khalidhoffman%2Fkdev-utils/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259912560,"owners_count":22931082,"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":["devops"],"created_at":"2024-11-23T05:08:28.013Z","updated_at":"2025-06-15T02:33:09.452Z","avatar_url":"https://github.com/khalidhoffman.png","language":"JavaScript","readme":"# kdev-utils [![Build Status](https://travis-ci.org/weblee-solutions/weblee-utils.svg?branch=master)](https://travis-ci.org/weblee-solutions/weblee-utils)\nA cli/gulp library for quicker front-end development\n\n#### How To Use\n1. run `npm i --save-dev git://github.com/khalidhoffman/gulp-utils.git`\n2. Run `kdev` from root folder to see list of tasks.\n3. Run `kdev setup` within the project's npm environment (add `gulp-setup` to npm scripts).\n \n#### Example Config\n```\n{\n  \"name\": \"project_name\"\n  \"avocode\" : {\n      \"userSelector\": \"User's Full Name\",\n      \"projectSelector\": \"Project_name_to_match_against\"\n  },\n  \"workingDir\" \"/an/absolute/path|default|wordpress\",\n  \"tasks\" : [\n    {\n      \"name\" : \"stylus\",\n      \"input\": \"relative/path/to/stylus/folder/from/workingDir\",\n      \"output\": \"relative/path/to/stylesheets/folder/from/workingDir\"\n    },\n    {\n      \"name\" : \"pug-php\",\n      \"input\": \"relative/path/to/pug/folder/from/workingDir\",\n      \"output\": \"relative/path/to/php/folder/from/workingDir\",\n      \"options\": {\n        \"pretty\": true\n      }\n    },\n    {\n      \"name\" : \"jsx\",\n      \"input\": \"relative/path/to/jsx/folder/from/workingDir\",\n      \"options\": {\n        \"ignore\": [\"glob/pattern/to/ignore\", \"**/node_modules/**\"]\n       }\n    }\n  ]\n}\n```\n \n\n##### Config Details\n* All paths are relative to `workingDir`. `workingDir` is an absolute path.\n* `workingDir` when set to `\"default\"`, uses the `process.cwd()` (the current working directory)\n* `jsx`, `stylus`, `less`, and `js` tasks support `options.ignore` field which is a [glob pattern](https://github.com/isaacs/node-glob#glob-primer) to exclude\n\n###### Task Options\n\nTask Names    | Details\n--------------|---------\n`pug-php`     | [additional helper functions](lib/pug/templates/_functions.pug) are saved  and included before compilation. compiles to `.php` files\n`pug-ejs`     | [additional helper functions](lib/pug/templates/_functions.pug) are saved  and included before compilation. compiles to `.ejs` files\n`pug-html`    | [additional helper functions](lib/pug/templates/_functions.pug) are saved  and included before compilation. compiles to `.html` files\n`stylus`      | [additional helper functions](lib/stylus/templates/) are included at compilation. compiles to css\n`stylus-bem`  | [additional helper functions](lib/stylus/templates/) are included at compilation. compiles to css. Read more about [stylus-bem](https://github.com/khalidhoffman/stylus-bem)\n`sass`        | compiles to css\n`compass`     | compiles to css\n`less`        | compiles less to css. will prompt for filename.\n`css`         | minifies css with cssnano. Will rewrite files with `.min.css` extension. Accepts path to single file or folder relative to workingDir for input\n`js`          | beautifies js, overwriting file\n`rjs`         | bundles and minfies with requirejs. input path should be a path to a requirejs config `build.js`\n`webpack`     | bundles with webpack. input path should be a path to a webpack config file\n`jsx`         | compiles to `.js` in same directory as original `.jsx` file\n`html2pug`    | compiles `.html` files to `.pug` files\n`php2pug`     | compiles `.php` files to `.pug` files\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhalidhoffman%2Fkdev-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhalidhoffman%2Fkdev-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhalidhoffman%2Fkdev-utils/lists"}