{"id":19150454,"url":"https://github.com/vicompany/build-workflow","last_synced_at":"2025-02-22T20:45:29.616Z","repository":{"id":151131275,"uuid":"76364740","full_name":"vicompany/build-workflow","owner":"vicompany","description":"A comparison of different build tools.","archived":false,"fork":false,"pushed_at":"2017-04-14T13:30:15.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-03T18:15:26.522Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vicompany.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":"2016-12-13T14:13:07.000Z","updated_at":"2018-12-21T10:54:45.000Z","dependencies_parsed_at":"2024-03-08T22:45:55.929Z","dependency_job_id":null,"html_url":"https://github.com/vicompany/build-workflow","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/vicompany%2Fbuild-workflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicompany%2Fbuild-workflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicompany%2Fbuild-workflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicompany%2Fbuild-workflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vicompany","download_url":"https://codeload.github.com/vicompany/build-workflow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240236198,"owners_count":19769571,"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-11-09T08:12:04.497Z","updated_at":"2025-02-22T20:45:29.591Z","avatar_url":"https://github.com/vicompany.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Build Workflow\n\nThis repository is to research different build workflows for VI Company.\n\nAlthough the focus of this repository is mainly different JavaScript bundlers, other tasks, such as compilation/optimisation of styles and images, should also be taken into consideration when comparing the different tools.\n\nOur main concerns are:\n\n- Task readability and maintainability\n- Task scalability\n- Output size\n- Performance (speed of compiling/optimising)\n\n## Tools\n\nFirst, we need a tool to define tasks. We have been using Grunt in the past, but we are willing to move on. Options are:\n\n- gulp\n- npm scripts\n\nSecondly, we need to pick tools used in the tasks. Tasks like compiling Sass and optimising images are straightforward. The main focus is building JavaScript bundles.\n\n- [x] npm scripts\n  - [x] browserify\n  - [x] rollup\n  - [x] webpack\n- [x] gulp\n  - [x] browserify\n  - [x] rollup\n  - [ ] ~~webpack~~ (running webpack via a task runner seems overkill)\n\n## Usage\n\nRun `npm run build` to execute _all_ tasks.\n\n## Conclusion\n\nAll ratings are on a 1-3 scale.\n\n### npm scripts\n\nAlthough npm scripts are easy to use, we should be cautious with them. Piping several commands with a handful of arguments quickly gets messy and difficult to interpret.\n\n|             | Rating |\n|-------------|--------|\n| Readability | 1      |\n| Scalability | 2      |\n| Performance | 3      |\n| Total       | 6      |\n\n### Gulp\n\nGulp proved to be easy to use, easy to scale and it performs quite well.\n\n|             | Rating |\n|-------------|--------|\n| Readability | 3      |\n| Scalability | 3      |\n| Performance | 3      |\n| Total       | 9      |\n\n### Browserify\n\nBrowserify stood the test of time, but transforms/plugins aren't always up-to-date.\n\n|             | Rating               |\n|-------------|----------------------|\n| Readability | 2                    |\n| Scalability | 2                    |\n| Output size | 2 (14.739kb gzipped) |\n| Performance | 2 (2.968449457s)     |\n| Total       | 8                    |\n\n### Rollup\n\nRollup is a good script bundler. It is not very convenient if you want to export multiple bundles.\n\n|             | Rating               |\n|-------------|----------------------|\n| Readability | 2                    |\n| Scalability | 3                    |\n| Output size | 3 (13.465kb gzipped) |\n| Performance | 2 (3.253960194s)     |\n| Total       | 10                   |\n\n### WebPack\n\nWebPack is a great tool for bundling scripts. Not so great for other assets.\n\n|             | Rating               |\n|-------------|----------------------|\n| Readability | 2                    |\n| Scalability | 2                    |\n| Output size | 2 (14.412kb gzipped) |\n| Performance | 3 (2.951653554s)     |\n| Total       | 9                    |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvicompany%2Fbuild-workflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvicompany%2Fbuild-workflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvicompany%2Fbuild-workflow/lists"}