{"id":13498376,"url":"https://github.com/blogfoster/blogfoster-scripts","last_synced_at":"2025-03-29T01:30:26.452Z","repository":{"id":138355402,"uuid":"116405247","full_name":"blogfoster/blogfoster-scripts","owner":"blogfoster","description":"Single-command, zero-config tooling for Node.js projects","archived":false,"fork":false,"pushed_at":"2018-06-08T07:53:32.000Z","size":174,"stargazers_count":59,"open_issues_count":1,"forks_count":5,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-02-17T20:02:03.617Z","etag":null,"topics":["babel","build-tool","eslint","javascript","prettier","webpack","zero-configuration"],"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/blogfoster.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-01-05T16:33:18.000Z","updated_at":"2023-02-10T04:36:21.000Z","dependencies_parsed_at":"2024-01-16T09:56:16.373Z","dependency_job_id":"f176e9c8-95f3-4db7-992b-b7607fce1bca","html_url":"https://github.com/blogfoster/blogfoster-scripts","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blogfoster%2Fblogfoster-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blogfoster%2Fblogfoster-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blogfoster%2Fblogfoster-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blogfoster%2Fblogfoster-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blogfoster","download_url":"https://codeload.github.com/blogfoster/blogfoster-scripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246125324,"owners_count":20727408,"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","build-tool","eslint","javascript","prettier","webpack","zero-configuration"],"created_at":"2024-07-31T21:00:26.225Z","updated_at":"2025-03-29T01:30:26.160Z","avatar_url":"https://github.com/blogfoster.png","language":"JavaScript","funding_links":[],"categories":["Other"],"sub_categories":[],"readme":"# blogfoster-scripts\n\n\u003e Single-command, zero-config tooling for Node.js projects\n\n`blogfoster-scripts` is a wrapper around some of our favorite JavaScript tools. It unifies developer experience across multiple Node.js projects by hiding other tools and their configs. A CLI with subcommands like `lint`, `format`, and `build` lets us manage tooling for multiple projects much easier. Also, developers don't need to waste time by copy-pasting boilerplate code around just to get tooling working. For more details, check out this [blog post](https://medium.com/blogfoster-engineering/how-we-simplified-our-tooling-setup-for-node-js-projects-80b423293b2c).\n\n## Installation\n\nWe recommend installing `blogfoster-scripts` locally in your Node.js project with `npm i --save-dev blogfoster-scripts`.\n\nAfter that, you can use it with `npx` or by defining scripts in your `package.json`:\n\n```json\n{\n  \"scripts\": {\n    \"lint\": \"blogfoster-scripts lint\",\n    \"format\": \"blogfoster-scripts format\",\n    \"build\": \"blogfoster-scripts build\"\n  }\n}\n```\n\n## Editor integration\n\nTo have editor integrations work for ESLint or Prettier you can create `.js` config files at the root level of your project that export the configs of this module:\n\n```js\n// .eslintrc.js\nmodule.exports = require('blogfoster-scripts/eslint');\n```\n\n```js\n// prettier.config.js\nmodule.exports = require('blogfoster-scripts/prettier');\n```\n\n## Commands\n\n### lint\n\n```sh\nblogfoster-scripts lint \u003ctarget\u003e\n```\n\nCheck your code for linting issues with ESLint and fix all (fixable) issues.\n\n### `--check`\n\n```sh\nblogfoster-scripts lint --check \u003ctarget\u003e\n```\n\nBy default, `blogfoster-scripts lint` will try to fix any fixable linting issues. With the `--check` argument it will only check your code for issues and exit with a non-zero exit code if there are any.\n\n### `\u003ctarget\u003e`\n\nOptional file or glob pattern that defines the target to lint. Defaults to `**/*.js`. Files in `/node_modules` or `/build` are ignored. If you want to specify more patterns to ignore you can create a `.eslintignore` file in the root of your project.\n\n### format\n\n```sh\nblogfoster-scripts format \u003ctarget\u003e\n```\n\nCheck your code for formatting issues with Prettier and fix all (fixable) issues.\n\n### `--check`\n\n```sh\nblogfoster-scripts format --check \u003ctarget\u003e\n```\n\nBy default, `blogfoster-scripts format` will try to fix any fixable formatting issues. With the `--check` argument it will only check your code for issues and exit with a non-zero exit code if there are any.\n\n### `\u003ctarget\u003e`\n\nOptional file or glob pattern that defines the target to format. Defaults to `**/*.{js,json,md}`. The `package.json`, `package-lock.json`, and files in `/node_modules` or `/build` are ignored. If you want to specify more patterns to ignore you can create a `.prettierignore` file in the root of your project.\n\n### build\n\n```sh\nblogfoster-scripts build\n```\n\nCompile JavaScript starting off from the `/src/index.js` file, copy static assets from the `/assets` folder and package everything into the `/build` folder with Webpack and Babel.\n\n## Related\n\n* [react-scripts](https://github.com/facebookincubator/create-react-app/tree/master/packages/react-scripts)\n* [kcd-scripts](https://github.com/kentcdodds/kcd-scripts)\n* [neutrino](https://github.com/mozilla-neutrino/neutrino-dev)\n* [ESLint](https://github.com/eslint/eslint)\n* [Prettier](https://github.com/prettier/prettier)\n* [Webpack](https://github.com/webpack/webpack)\n* [Babel](https://github.com/babel/babel)\n\n## LICENSE\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblogfoster%2Fblogfoster-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblogfoster%2Fblogfoster-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblogfoster%2Fblogfoster-scripts/lists"}