{"id":17440913,"url":"https://github.com/modularorg/modularbp","last_synced_at":"2025-04-19T09:43:55.491Z","repository":{"id":57292958,"uuid":"119626163","full_name":"modularorg/modularbp","owner":"modularorg","description":"⬡ Dead simple modular boilerplate.","archived":false,"fork":false,"pushed_at":"2020-05-01T18:22:36.000Z","size":23,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T07:03:21.423Z","etag":null,"topics":["babel","boilerplate","browsersync","cssnext","es6","gulp","handlebars","liquid","modular","postcss","rollup","sass","static-site-generator"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/modularorg.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}},"created_at":"2018-01-31T02:55:58.000Z","updated_at":"2023-08-27T19:05:06.000Z","dependencies_parsed_at":"2022-08-27T16:51:12.327Z","dependency_job_id":null,"html_url":"https://github.com/modularorg/modularbp","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/modularorg%2Fmodularbp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modularorg%2Fmodularbp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modularorg%2Fmodularbp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modularorg%2Fmodularbp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/modularorg","download_url":"https://codeload.github.com/modularorg/modularbp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248721285,"owners_count":21151074,"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":["babel","boilerplate","browsersync","cssnext","es6","gulp","handlebars","liquid","modular","postcss","rollup","sass","static-site-generator"],"created_at":"2024-10-17T15:05:12.533Z","updated_at":"2025-04-16T03:34:08.377Z","avatar_url":"https://github.com/modularorg.png","language":"JavaScript","readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/modularbp/modular-boilerplate\"\u003e\n        \u003cimg src=\"https://user-images.githubusercontent.com/4596862/37635200-aa3271b2-2bd0-11e8-8a65-9cafa0addd67.png\" height=\"140\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003emodularBP\u003c/h1\u003e\n\u003cp align=\"center\"\u003eDead simple modular boilerplate.\u003c/p\u003e\n\n## Installation\n```sh\nnpm install mbp -g\n```\n\n## Usage\n```sh\n# init your project\nmbp init\n\n# run the build system you chose\ngulp\n```\n\n## Modules\n\n### Build\n| Module | Description |\n| ------ | ----------- |\n| [modularbp-gulp] | Build tasks modules with [gulp] |\n\n### Styles\n| Module | Description |\n| ------ | ----------- |\n| [modularbp-css] | CSS modules with [cssnext] and [PostCSS] |\n| [modularbp-sass] | SCSS modules with [Sass] |\n| [modularbp-less] | LESS modules with [Less] |\n\n### Scripts\n| Module | Description |\n| ------ | ----------- |\n| [modularbp-mjs] | JavaScript modules with [modularJS] and [Babel] |\n| [modularbp-js] | JavaScript modules with [Babel] |\n\n### Views\n| Module | Description |\n| ------ | ----------- |\n| [modularbp-hbs] | HTML modules with [Handlebars] |\n| [modularbp-liquid] | HTML modules with [Liquid] |\n| [modularbp-swig] | HTML modules with [Swig] |\n\n## Customization\n\n### Base\n\nIf you want to further customize the boilerplate to your own structure and files, you can easily clone a GitHub repository with the init command, by specifying the repository name and optionally the destination directory. It will clone first, then install the mbp modules without overwriting your files.\n\n```sh\nmbp init \u003cuser/repo\u003e \u003cdir\u003e\n```\n\n### Config\n\nYou can create a `mconfig.json` file to change the default folders structure and set your modules choice to skip the cli questions.\n\n```json\n{\n  \"src\": \"./src/\",\n  \"dest\": \"./dist/\",\n  \"build\": \"./build/\",\n  \"styles\": {\n    \"src\": \"./src/styles/\",\n    \"dest\": \"./dist/styles/\",\n    \"main\": \"main\"\n  },\n  \"scripts\": {\n    \"src\": \"./src/scripts/\",\n    \"dest\": \"./dist/scripts/\",\n    \"main\": \"main\"\n  },\n  \"svgs\": {\n    \"src\": \"./src/images/sprite/\",\n    \"dest\": \"./dist/images/\"\n  },\n  \"views\": {\n    \"src\": \"./src/\",\n    \"partials\": \"./src/partials/\"\n  },\n  \"modules\": {\n    \"build\": \"gulp\",\n    \"style\": \"css\",\n    \"script\": \"mjs\",\n    \"view\": \"hbs\"\n  }\n}\n```\n\n[modularbp-gulp]: https://github.com/modularorg/modularbp-gulp\n[modularbp-css]: https://github.com/modularorg/modularbp-gulp/tree/master/modules/gulp-css\n[modularbp-sass]: https://github.com/modularorg/modularbp-gulp/tree/master/modules/gulp-sass\n[modularbp-less]: https://github.com/modularorg/modularbp-gulp/tree/master/modules/gulp-less\n[modularbp-mjs]: https://github.com/modularorg/modularbp-mjs\n[modularbp-js]: https://github.com/modularorg/modularbp-gulp/tree/master/modules/gulp-js\n[modularbp-hbs]: https://github.com/modularorg/modularbp-gulp/tree/master/modules/gulp-hbs\n[modularbp-liquid]: https://github.com/modularorg/modularbp-gulp/tree/master/modules/gulp-liquid\n[modularbp-swig]: https://github.com/modularorg/modularbp-gulp/tree/master/modules/gulp-swig\n\n[gulp]: https://github.com/gulpjs/gulp\n[cssnext]: https://github.com/MoOx/postcss-cssnext\n[Sass]: https://github.com/sass/libsass\n[Less]: https://github.com/less/less.js\n[PostCSS]: https://github.com/postcss/postcss\n[modularJS]: https://github.com/modularorg/modularjs\n[Babel]: https://github.com/babel/babel\n[Handlebars]: https://github.com/wycats/handlebars.js\n[Liquid]: https://github.com/Shopify/liquid\n[Swig]: https://github.com/node-swig/swig-templates\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodularorg%2Fmodularbp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmodularorg%2Fmodularbp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodularorg%2Fmodularbp/lists"}