{"id":17624548,"url":"https://github.com/intera/web-build-creator","last_synced_at":"2025-07-05T01:37:44.746Z","repository":{"id":5373287,"uuid":"6560404","full_name":"Intera/web-build-creator","owner":"Intera","description":"HTML/CSS/Javascript compression/merge and filesystem structure sync/creation. automatic coffeescript support","archived":false,"fork":false,"pushed_at":"2014-07-17T10:21:42.000Z","size":1044,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-27T23:45:11.819Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CoffeeScript","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/Intera.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":"2012-11-06T10:33:15.000Z","updated_at":"2014-07-17T10:09:41.000Z","dependencies_parsed_at":"2022-09-05T13:00:15.876Z","dependency_job_id":null,"html_url":"https://github.com/Intera/web-build-creator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Intera/web-build-creator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Intera%2Fweb-build-creator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Intera%2Fweb-build-creator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Intera%2Fweb-build-creator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Intera%2Fweb-build-creator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Intera","download_url":"https://codeload.github.com/Intera/web-build-creator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Intera%2Fweb-build-creator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263644383,"owners_count":23493906,"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-10-22T22:04:31.053Z","updated_at":"2025-07-05T01:37:44.693Z","avatar_url":"https://github.com/Intera.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Features\n\n- Javascript, CSS and HTML compression\n- File and directory tree synchronisation with renaming\n- File and directory watching with automatic compile\n- File merging\n- Gzip compression\n- Coffeescript\\Coffeekup support\n- Inheritable configuration\n\n# Dependencies\n- nodejs\n\nall other dependencies are included.\n\n# Installation\n    npm install web-build-creator\n\n## Alternative\n    git clone https://github.com/Intera/web-build-creator.git\n    npm install path-to-cloned-directory\n\n# Usage\n* Create a Javascript file - this can be executable\n* Define a configuration object\n* Load the wbc module\n* Call wbc.create_build(config)\n* Or call wbc.watch_create_build(path, config)\n\n## Configuration\n[Example](https://raw.githubusercontent.com/Intera/web-build-creator/master/example-build-config.js)\n\nThe configuration object is a javascript object\n\n``{}``\n\nand can have the following keys\n\n- debug\n- html\n- script\n- source_dir\n- style\n- sync\n- target_dir\n\nFollowing are descriptions for the key associations.\n\n### script\n```javascript\nscript: [\n\t{\n    target: target,\n    path_prefix: string,\n\t\tsources: sources,\n\t\tgzip: boolean\n\t},\n  ...\n]\n```\n\n- Sources can be a single path or an array of paths, with or without filename suffixes. Example: \"js/test\" stands for \"js/test.js\"\n- The value of path_prefix is prepended to all source paths\n- Target is one path, relative to the target_dir\n- Gzip, if true, creates a gzip compressed copy of the file with the same name and a .gz suffix. Can also be omitted or false\n\n### style\n```javascript\nstyle: [\n\t{\n    target: target,\n    path_prefix: string,\n\t\tsources: sources,\n\t\tgzip: boolean\n\t},\n  ...\n]\n```\n\n- Sources can be a single path or an array of paths, with or without filename suffixes. example: \"css/test\" stands for \"css/test.css\".\n- The value of path_prefix is prepended to all source paths\n- Target is one path, relative to the target_dir\n- Gzip, if true, creates a gzip compressed copy of the file with the same name and a .gz suffix. Can also be omitted or false\n\n### html\n```javascript\nhtml: [\n\t{\n    target: target,\n    path_prefix: string,\n\t\tsources: sources,\n\t\tgzip: boolean\n\t},\n  ...\n]\n```\n\n- Sources can be a single path or an array of paths, with or without filename suffixes. Example: \"html/test\" stands for \"html/test.html\".\n- The value of path_prefix is prepended to all source paths\n- Target is one path, relative to the target_dir\n- Gzip, if true, creates a gzip compressed copy of the file with the same name and a .gz suffix. Can also be omitted or false\n\n### sync\n```javascript\nsync: [\n  path,\n\t[source-path, target-path],\n\t...\n]\n```\n\npath can be a single path relative to source_dir, or a two element array with paths where the first path is the source path and the second is the target path.\nDirectory structures are created automatically. Existing files are overwritten and never deleted.\n\n### other keys\n|key|description|default value|\n----|----|----\n|debug|if debug is true the js/html/css files are not compressed|false|\n|source_dir|path prefix for source files|\"\"|\n|target_dir|path prefix for compiled target files|\"../compiled/\"|\n\n## File watching\n    require(\"web-build-creator\").watch_create_build(\"source\", build-config)\nstop with ctrl+c\n\n## Caveats\nIf you compress HTML, you must use semicolons for inline Javascript, and line-comments can only be used for the last line of a ``\u003cscript\u003e`` tag.\n\n# Developer infos\nThe included dependencies as node modules are:\n\n- clean-css\n- coffee-script\n- html-minifier\n- ncp\n- uglifyjs\n- underscore\n\nIt is written in coffeescript for the most part.\n\n# Possible enhancements\n- lesscss support\n\n# Similar projects\n[cake-flour](https://github.com/ricardobeat/cake-flour)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintera%2Fweb-build-creator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fintera%2Fweb-build-creator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintera%2Fweb-build-creator/lists"}