{"name":"@ehmicky/dev-tasks","version":"3.0.34","type":"module","exports":{".":"./build/src/main.js","./register.js":"./build/src/tasks/builder/register.js","./ava.config.js":"./ava.config.js","./tsconfig.json":"./tsconfig.json"},"main":"./build/src/main.js","scripts":{"test":"gulp test"},"description":"Automated development tasks for my own projects","keywords":["gulp","gulpfile","gulpjs","gulp-tasks","babel","eslint","prettier","codecov","github-actions","watch","jscpd","npm","ava"],"license":"Apache-2.0","homepage":"https://www.github.com/ehmicky/dev-tasks","repository":{"type":"git","url":"git+https://github.com/ehmicky/dev-tasks.git"},"bugs":{"url":"https://github.com/ehmicky/dev-tasks/issues"},"author":{"name":"ehmicky","email":"ehmicky@gmail.com","url":"https://github.com/ehmicky"},"directories":{"lib":"src"},"dependencies":{"@babel/preset-env":"^7.26.9","@babel/preset-typescript":"^7.27.0","@babel/register":"^7.25.9","@ehmicky/eslint-config":"^20.0.31","@ehmicky/prettier-config":"^1.0.6","@eslint/compat":"^1.2.7","c8":"^10.1.3","del":"^8.0.0","got":"^13.0.0","gulp-babel":"^8.0.0","gulp-execa":"^8.0.1","handle-cli-error":"^5.0.1","is-ci":"^4.1.0","jscpd":"^4.0.5","log-process-errors":"^12.0.1","nano-spawn":"^0.2.1","node-version-alias":"^5.0.1","p-filter":"^4.1.0","path-exists":"^5.0.0","plugin-error":"^2.0.1","prettier":"^3.5.3","release-it":"^18.1.2","rename-fn":"^2.1.0","semver":"^7.7.1","tsd":"^0.31.2","typescript":"^5.8.2"},"peerDependencies":{"ava":"^6.2.0","gulp":"^5.0.0"},"engines":{"node":">=18.18.0"},"_id":"@ehmicky/dev-tasks@3.0.34","gitHead":"ea334590e6622cc641add332a92ce609cf63d59e","_nodeVersion":"24.0.2","_npmVersion":"10.9.2","dist":{"integrity":"sha512-cygZChXw+XwAoJWFY2dUFYf5E/uR8jFrqy33M8a1UGmaXeF53rBAJGgHd7eefUmNwhiykfmAeZ/sudMJ3zk+wQ==","shasum":"eb84dfa15cad2dba38933d0016c3f245291e94f9","tarball":"http://registry-npm.ywwl.com/@ehmicky/dev-tasks/download/@ehmicky/dev-tasks-3.0.34.tgz","fileCount":37,"unpackedSize":43719,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCs5qfVaIwhmOZ+LqtiYYk3Lo9Cc9Ly3ywXqFCrB8t/0AIhAKlbFfNLLmhVCRQ9bljn/wTpaU2YaASYW3mEBDteXyJk"}],"size":15871,"noattachment":false,"key":"/@ehmicky/dev-tasks/-/@ehmicky/dev-tasks-3.0.34.tgz"},"_npmUser":{"name":"ehmicky","email":"ehmicky@gmail.com"},"maintainers":[{"name":"ehmicky","email":"ehmicky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dev-tasks_3.0.34_1747792493880_0.3495730899601017"},"_hasShrinkwrap":false,"readme":"[![Node](https://img.shields.io/badge/-Node.js-808080?logo=node.js&colorA=404040&logoColor=66cc33)](https://www.npmjs.com/package/@ehmicky/dev-tasks)\n[![Browsers](https://img.shields.io/badge/-Browsers-808080?logo=firefox&colorA=404040)](https://www.npmjs.com/package/@ehmicky/dev-tasks)\n[![Mastodon](https://img.shields.io/badge/-Mastodon-808080.svg?logo=mastodon&colorA=404040&logoColor=9590F9)](https://fosstodon.org/@ehmicky)\n[![Medium](https://img.shields.io/badge/-Medium-808080.svg?logo=medium&colorA=404040)](https://medium.com/@ehmicky)\n\nAutomated development tasks (linting, testing, building) for\nJavaScript/TypeScript code (Node.js and/or browsers).\n\nThis is used in my own projects. This is not meant to be shared and semantic\nversioning is not followed.\n\nThe task runner is [Gulp](https://gulpjs.com/), but you don't need to know Gulp\nto use these tasks.\n\nAlso, Docker must be installed globally and executable by the current user\nwithout `sudo`.\n\n# Workflow\n\nCode is compiled from the `src` to the `build` directory using\n[Babel](https://babeljs.io), so you can use the latest JavaScript features.\n\nLinting and formatting are performed with [ESLint](https://eslint.org),\n[Prettier](https://prettier.io), [Jscpd](https://github.com/kucherenko/jscpd)\nand [lychee](https://lychee.cli.rs). We recommend using plugins with your IDE\n(code editor) for both Prettier and ESLint so that linting/formatting is\nperformed as you code.\n\nWe use [Ava](https://github.com/avajs/ava) to run tests. Each line of code must\nbe tested.\n\nWe use [tsd](https://github.com/SamVerschueren/tsd) to test TypeScript types.\nEach export must be fully typed using either TypeScript regular files (`*.ts`)\nor ambient files (`*.d.ts`).\n\n# Usage\n\nAny task can be run using `gulp` for example:\n\n```bash\ngulp build\n```\n\nIf you're on `cmd.exe` (Windows) use `npx gulp ...` instead.\n\n# Overview\n\nThe main commands are:\n\n- [`gulp build`](#gulp-build): build source files and test files. Must be run\n  before running any code or unit tests.\n- [`gulp check`](#gulp-check): lint/format the JavaScript and TypeScript files.\n- [`gulp type`](#gulp-type): run TypeScript type tests.\n- [`gulp unit`](#gulp-unit): run unit tests.\n- [`gulp test`](#gulp-test): perform all of the above tasks.\n\nUse `gulp buildWatch`, `gulp typeWatch`, and `gulp unitWatch` to run them in\nwatch mode.\n\n[GitHub actions](https://github.com/features/actions) ensures that:\n\n- tests pass on all supported environments.\n- all source files are covered by tests and follow the same coding style.\n\n# Available tasks\n\n## `gulp build`\n\nBuild source files and test files:\n\n- JavaScript and TypeScript files are transpiled with\n  [Babel](https://babeljs.io/).\n- Other files are copied as is.\n\nSource files and test files are built from the `src` directory to the\n`build/src` directory.\n\nThis must be done before linting or running any code or unit tests.\n\nTo add TypeScript types, use either:\n\n- Regular TypeScript files (`*.ts`). An ambient file is automatically created by\n  [`tsc --declaration`](https://www.typescriptlang.org/tsconfig#declaration).\n- JavaScript files (`*.js`) and ambient files (`*.d.ts`). Ambient files are\n  copied as is.\n\n## `gulp check`\n\nLint and check source files:\n\n- format JavaScript and TypeScript files with\n  [Prettier](https://github.com/ehmicky/prettier-config).\n- lint and\n  [autofix](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems)\n  JavaScript and TypeScript files using [ESLint](https://eslint.org/) (see the\n  [coding style](https://github.com/ehmicky/eslint-config#coding-style)).\n- find duplicated code with [Jscpd](https://github.com/kucherenko/jscpd).\n- detect dead links with [lychee](https://lychee.cli.rs/).\n\n## `gulp type`\n\nRun TypeScript type tests with [tsd](https://github.com/SamVerschueren/tsd). The\ntype tests must be named `*.test-d.ts`.\n\n## `gulp unit`\n\nRun unit tests with [Ava](https://github.com/avajs/ava). The test files must be\nnamed `*.test.js`.\n\nTo specify\n[Ava options](https://github.com/avajs/ava/blob/master/docs/05-command-line.md),\nplease call `ava` directly instead. For example: `ava --update-snapshots`.\n\nTo target a single test file, use `ava build/test/file.test.js` not\n`ava test/file.test.js`.\n\n## `gulp test`\n\nRuns [`gulp build`](#gulp-build) then [`gulp check`](#gulp-check) then\n[`gulp type`](#gulp-type) and [`gulp unit`](#gulp-unit).\n\nThis is performed on CI ([GitHub actions](https://github.com/features/actions))\nfor each OS (Windows, Mac, Linux) and supported Node.js version.\n\n## `gulp buildWatch`, `gulp typeWatch`, `gulp unitWatch`, `gulp warnWatch`\n\nLike `gulp build`, `gulp type`, `gulp unit` and `gulp warn` but in watch mode.\nThe watch mode works even when installing/updating/uninstalling dependencies or\nchanging the Gulp tasks themselves.\n\nThey can be performed together, e.g. `gulp buildWatch` in one terminal tab and\n`gulp unitWatch` in another.\n\n# Other tasks\n\n## `gulp links`\n\nDetect dead links with [lychee](https://lychee.cli.rs/).\n\n## `gulp warn`\n\nCheck for security vulnerabilities (using\n[`npm audit`](https://docs.npmjs.com/cli/audit)) and outdated dependencies\n(using [`npm outdated`](https://docs.npmjs.com/cli/outdated)).\n\n## `gulp releasePatch`, `gulp releaseMinor`, `gulp releaseMajor`\n\nRelease a new patch/minor/major version on npm and GitHub using\n[`release-it`](https://github.com/webpro/release-it).\n\n`npm publish` must be performed locally afterwards.\n\nOnly the repository owner can perform these tasks.\n\n## `gulp unitCoverage`\n\nLike `gulp unit` but also compute test coverage.\n\n# Custom tasks\n\nRepositories with a `gulp` top-level directory have additional tasks. Please\ncheck those files to see which custom tasks are available.\n\n# Support\n\nFor any question, _don't hesitate_ to [submit an issue on GitHub](../../issues).\n\nEveryone is welcome regardless of personal background. We enforce a\n[Code of conduct](CODE_OF_CONDUCT.md) in order to promote a positive and\ninclusive environment.\n\n# Contributing\n\nThis project was made with ❤️. The simplest way to give back is by starring and\nsharing it online.\n\nIf the documentation is unclear or has a typo, please click on the page's `Edit`\nbutton (pencil icon) and suggest a correction.\n\nIf you would like to help us fix a bug, please check our\n[guidelines](CONTRIBUTING.md). Pull requests are welcome!\n\n<!-- Thanks go to our wonderful contributors: -->\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore -->\n<!--\n<table><tr><td align=\"center\"><a href=\"https://fosstodon.org/@ehmicky\"><img src=\"https://avatars2.githubusercontent.com/u/8136211?v=4\" width=\"100px;\" alt=\"ehmicky\"/><br /><sub><b>ehmicky</b></sub></a><br /><a href=\"https://github.com/ehmicky/dev-tasks/commits?author=ehmicky\" title=\"Code\">💻</a> <a href=\"#design-ehmicky\" title=\"Design\">🎨</a> <a href=\"#ideas-ehmicky\" title=\"Ideas, Planning, & Feedback\">🤔</a> <a href=\"https://github.com/ehmicky/dev-tasks/commits?author=ehmicky\" title=\"Documentation\">📖</a></td></tr></table>\n-->\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n","publish_time":1747792494059,"_cnpm_publish_time":1747792494059,"dist-tags":{"latest":"3.0.34"}}