{"id":17202151,"url":"https://github.com/colcarroll/bates","last_synced_at":"2025-06-11T03:10:15.630Z","repository":{"id":148526044,"uuid":"54738687","full_name":"ColCarroll/bates","owner":"ColCarroll","description":"React front-end butler","archived":false,"fork":false,"pushed_at":"2016-03-25T18:29:07.000Z","size":73,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-30T08:29:55.399Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"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/ColCarroll.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":"2016-03-25T18:27:17.000Z","updated_at":"2019-11-04T14:19:53.000Z","dependencies_parsed_at":"2023-05-20T10:00:17.687Z","dependency_job_id":null,"html_url":"https://github.com/ColCarroll/bates","commit_stats":null,"previous_names":[],"tags_count":38,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ColCarroll%2Fbates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ColCarroll%2Fbates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ColCarroll%2Fbates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ColCarroll%2Fbates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ColCarroll","download_url":"https://codeload.github.com/ColCarroll/bates/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245431720,"owners_count":20614184,"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-15T02:13:47.207Z","updated_at":"2025-03-25T09:14:52.078Z","avatar_url":"https://github.com/ColCarroll.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n## Bates\n\u003e He knows how I like my front-end: automated.\n\nThe contemporary front-end stack and build pipeline is a very opinionated place, with lots of choices for a lot of different setups. **Bates is here to help automate a specific set of choices for React front-end projects.**\n\n## Quick start\n\n```sh\nnpm i bates --save-dev\n\nnpm run bates -- template\n# create base files\n\nnpm run bates -- start\n# start hot reload dev server at: http://localhost:3000\n# run tests and lint on change\n# hit ctrl+c to close the server\n```\n\nEdit the `src/main.js`.  \nWhen you want to deploy the site run:\n\n```sh\nnpm run bates -- deploy\n# follow the prompt, choose your domain\n# the site will be available at http://yourDomain.surge.sh\n```\n\n## Info\n\nBates work better together with the following code style and architecture: [code style](docs/style.md). The main part of it are the commit messages format, the folder structure and the inlined styles.\n\nThere're three main entry points on the code that Bates helps to handle:  \n- A *site* entry point (src/main.js),\n- A *npm package* entry point (src/index.js), and\n- A *html script distribution* entry point (src/dist.js)\n\nFor information on Travis continuous deploy/release see: [travis setup](docs/travis.md)\n\n## API\n\n**Development**\n\n`npm run bates -- template`  \nIf missing, add some base files to your project.\n\n`npm run bates -- start`  \nPrune and update your dependencies.  \nStart a hot-reloaded, babel transpiled, server at localhost:3000.  \nRun tests and lint on change.  \nTell you about your outdated packages, your last release and what have changed until now.\n\n`npm run bates -- server`  \nRun just the server from the *start* command.\n\n`npm run bates -- test`  \nTest and lint your /src. Test files need to be named `*.test.js`\n\n`npm run bates -- testWatch`  \nSame as above, but every time the source change\n\n`npm run bates -- cov`  \nRun the test coverage and open a browser with the results.\n\n**Site deployment and package releases**\n\n`npm run bates -- deploy`  \nGenerate a bundle file from /src/main.js on the /dist folder and deploy that folder to [surge.sh](https://surge.sh/).  \nIf you add a [CNAME](https://surge.sh/help/remembering-a-domain) file, you don't need to fill any prompts here.\n\n`npm run bates -- bundle`  \nGenerate a bundle file from /src/main.js on the /dist folder, for when you want to deploy your code as a website.\n\n`npm run bates -- bundleSize`  \nGenerate an analysis of the bundle size.\n\n`npm run bates -- lib`  \nTranspile the code from /src to /lib, for when you want to release the code as a npm package.\n\n`npm run bates -- release`  \nThis command is aimed at automating releases on a CI server.  \nUsing your [git commit messages](docs/style.md#commit-messages), check for the changes since your last release and suggest a new version. If approved, bump the package and push a new tag.\n\n`npm run bates -- dist`  \nGenerate a distribution file, for those who want to consume your npm package using html script tags directly.\n\n`npm run bates -- githubRelease`  \nThis command should be used on TravisCI, after a release.\nCreate release notes since your last release, using your [git commit messages](docs/style.md#commit-messages). Do a release on your github project.  \nTravis need to have a `GIT_TOKEN` environment variable set up with your project token.\n\n`npm run bates -- clean`  \nDelete all build and transpiled files.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolcarroll%2Fbates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcolcarroll%2Fbates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolcarroll%2Fbates/lists"}