{"name":"@ehmicky/dev-tasks","version":"3.0.31","keywords":["gulp","gulpfile","gulpjs","gulp-tasks","babel","eslint","prettier","codecov","github-actions","watch","jscpd","npm","ava"],"author":{"url":"https://github.com/ehmicky","name":"ehmicky","email":"ehmicky@gmail.com"},"license":"Apache-2.0","_id":"@ehmicky/dev-tasks@3.0.31","maintainers":[{"name":"ehmicky","email":"ehmicky@gmail.com"}],"homepage":"https://www.github.com/ehmicky/dev-tasks","bugs":{"url":"https://github.com/ehmicky/dev-tasks/issues"},"dist":{"shasum":"f1e81ecf1c3b586d8be9aa7f20a1314b62df5d27","tarball":"http://registry-npm.ywwl.com/@ehmicky/dev-tasks/download/@ehmicky/dev-tasks-3.0.31.tgz","fileCount":37,"integrity":"sha512-KcC3jHyQn2GeCZKeg5nRrS27vcJNeMD/YQ1/ewEejAXHo6ji6G5NEBcTNsT1jTvcZXdvNkqskK+FQdpsC7507A==","signatures":[{"sig":"MEYCIQDTo8AYIldOs13IcajSJi8mEtfA3knOJ5WxWyw5+wKTRwIhAPXPwtSpfTVqPq245qICcwjTeto2VOxOx3TsmHSPs7b5","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":44130,"size":16083,"noattachment":false,"key":"/@ehmicky/dev-tasks/-/@ehmicky/dev-tasks-3.0.31.tgz"},"main":"./build/src/main.js","type":"module","engines":{"node":">=18.18.0"},"exports":{".":"./build/src/main.js","./register.js":"./build/src/tasks/builder/register.js","./ava.config.js":"./ava.config.js","./tsconfig.json":"./tsconfig.json"},"gitHead":"d516fbac1d061c8057fd3e35b0087d201000606c","scripts":{"test":"gulp test"},"_npmUser":{"name":"ehmicky","email":"ehmicky@gmail.com"},"repository":{"url":"git+https://github.com/ehmicky/dev-tasks.git","type":"git"},"_npmVersion":"11.2.0","description":"Automated development tasks for my own projects","directories":{"lib":"src"},"_nodeVersion":"23.9.0","dependencies":{"c8":"^10.1.3","del":"^8.0.0","got":"^13.0.0","tsd":"^0.31.2","is-ci":"^4.1.0","jscpd":"^4.0.5","semver":"^7.7.1","p-filter":"^4.1.0","prettier":"^3.5.3","rename-fn":"^2.1.0","gulp-babel":"^8.0.0","gulp-execa":"^8.0.0","nano-spawn":"^0.2.0","release-it":"^18.1.2","typescript":"^5.8.2","path-exists":"^5.0.0","plugin-error":"^2.0.1","@eslint/compat":"^1.2.7","@babel/register":"^7.25.9","handle-cli-error":"^5.0.0","@babel/preset-env":"^7.26.9","log-process-errors":"^12.0.0","node-version-alias":"^5.0.0","@ehmicky/eslint-config":"^20.0.24","@babel/preset-typescript":"^7.26.0","@ehmicky/prettier-config":"^1.0.4"},"_hasShrinkwrap":false,"peerDependencies":{"ava":"^6.2.0","gulp":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/dev-tasks_3.0.31_1741810376194_0.8218921003569866","host":"s3://npm-registry-packages-npm-production"},"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":1741810376454,"_cnpm_publish_time":1741810376454,"dist-tags":{"latest":"3.0.34"}}