{"id":16049876,"url":"https://github.com/levdbas/basebuilder","last_synced_at":"2025-03-17T21:31:16.848Z","repository":{"id":42049659,"uuid":"174526377","full_name":"Levdbas/Basebuilder","owner":"Levdbas","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-10T14:01:13.000Z","size":3580,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T11:45:14.669Z","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/Levdbas.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-08T11:32:28.000Z","updated_at":"2024-12-10T14:01:17.000Z","dependencies_parsed_at":"2024-04-05T06:22:46.621Z","dependency_job_id":"aae0d01e-7a62-4ac5-999e-922d2f0cb8e0","html_url":"https://github.com/Levdbas/Basebuilder","commit_stats":{"total_commits":255,"total_committers":2,"mean_commits":127.5,"dds":"0.015686274509803977","last_synced_commit":"88c54a6da79287876b9d604a63f2edd09347b9fb"},"previous_names":[],"tags_count":79,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Levdbas%2FBasebuilder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Levdbas%2FBasebuilder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Levdbas%2FBasebuilder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Levdbas%2FBasebuilder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Levdbas","download_url":"https://codeload.github.com/Levdbas/Basebuilder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243885935,"owners_count":20363644,"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-09T00:40:34.686Z","updated_at":"2025-03-17T21:31:16.460Z","avatar_url":"https://github.com/Levdbas.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BaseBuilder\n\nBaseBuilder is a Webpack config in the form of an NPM module that can handle most WP projects.\nWorks best in combination with [BasePlate](https://github.com/Levdbas/BasePlate 'Check out BasePlate') WP starter theme\n\n## How to install\n\n### 1. Remove old devDependencies from your projects `package.json` file.\n\n### 2. Add basebuilder\n\n```bash\nyarn add basebuilder-config\n```\n\n### 3. Add following scripts to package.json\n\n```json\n\"scripts\": {\n    \"dev\": \"npm run development\",\n    \"development\": \"basebuilder-config development\",\n    \"watch\": \"basebuilder-config watch\",\n    \"production\": \"basebuilder-config production\"\n},\n```\n\n### 4. Make sure the following file exist: `resources/assets/config.json`\n\nAn example config file is located in `node_modules/basebuilder-config/config.json`\n\n## How to eject\n\nWe'll probably make an eject script in the future. For now. Do the following steps:\n\n1. add packages from `basebuilder-config/package.json` to your own `package.json`.\n\n2. add the following scripts to your `package.json`.\n\n```json\n    \"scripts\": {\n        \"dev\": \"npm run development\",\n        \"development\": \"NODE_ENV=development webpack --mode development --config assets/build/webpack.config.js\",\n        \"watch\": \"NODE_ENV=development webpack --mode development --watch --config assets/build/webpack.config.js\",\n        \"production\": \"NODE_ENV=production webpack --mode production --config assets/build/webpack.config.js\"\n    },\n```\n\n3. copy `basebuilder-config/build` folder to your projects assets folder in the project root.\n\n## Overwrite config.json file location\n\nNormally BaseBuilder checks for the config.json in the assets folder in the root of the project dir.\nIf you want to overwrite it you can set\n\n```json\n   \"config\": {\n        \"userConfig\": \"/web/app/themes/yourtheme/resources/assets/config.json\"\n    },\n```\n\nin the package.json.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevdbas%2Fbasebuilder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flevdbas%2Fbasebuilder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevdbas%2Fbasebuilder/lists"}