{"_id":"@abledevs/nps-utils","name":"@abledevs/nps-utils","dist-tags":{"latest":"2.0.0"},"versions":{"2.0.0":{"name":"@abledevs/nps-utils","version":"2.0.0","description":"Utilities for nps (npm-package-scripts)","main":"lib/index.js","types":"lib/index.d.ts","scripts":{"start":"nps","test":"nps test","prepare":"yarn start build","prepublishOnly":"yarn test && yarn start lint"},"keywords":["nps","nps-utils"],"author":{"name":"Gowrav Shekar"},"license":"MIT","dependencies":{"any-shell-escape":"^0.1.1","concurrently":"^7.3.0","cpy-cli":"^4.1.0","cross-env":"^7.0.3","is-docker":"^2.2.1","mkdirp":"^1.0.4","rimraf":"^3.0.2"},"devDependencies":{"@markforged/nps":"5.11.2","@types/jest":"28.1.8","@types/node":"^18.7.2","@typescript-eslint/eslint-plugin":"^5.33.0","@typescript-eslint/parser":"^5.33.0","eslint":"^8.21.0","eslint-config-prettier":"^8.5.0","eslint-plugin-import":"^2.26.0","eslint-plugin-prettier":"^4.2.1","jest":"^28.1.3","prettier":"^2.7.1","ts-jest":"^28.0.7","typescript":"^4.7.4"},"husky":{"hooks":{"pre-commit":"tsc --noEmit && lint-staged"}},"lint-staged":{"*.{js,ts,tsx,jsx}":["eslint --fix","git add"]},"repository":{"type":"git","url":"git+https://github.com/genadis/nps-utils.git"},"bugs":{"url":"https://github.com/genadis/nps-utils/issues"},"homepage":"https://github.com/genadis/nps-utils#readme","directories":{"lib":"lib","test":"tests"},"gitHead":"2b67d9ab007c6053611cd15d667f5e21d0de3537","_id":"@abledevs/nps-utils@2.0.0","_nodeVersion":"19.6.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-r+8x0d1n9RgKQOWNIRvOlPTpHU/Wl82vpkpvkS7ENiXoz571btFP4NHFfrrnuLI+5S2+AxFb2fcOFzEIkFYv4g==","shasum":"d5fae915a8446de95024c307fd57083de3f5b396","tarball":"https://registry.npmjs.org/@abledevs/nps-utils/-/nps-utils-2.0.0.tgz","fileCount":23,"unpackedSize":23189,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpcZtqN9GWcgi01DUclzZeOcAzoDLnHhHkh6y0Gzab+QIhALypSY+dqikcEyH1hdPUObJJ9Mj/rtWr7QczTXsf1/9s"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8o8OACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqucA/+Kno0xQLZqLGfIZeFiyBX5Tm0o6+yRkzh6D3KjeAL0NauH7e0\r\nmnHaDSf+5fPr/sSiHjKWCv+XVl+CWjJ73vYTLI6HKSXe/gvzVuWvC/SOHK1I\r\nneGxEsOEbIJLZ9JqqAvxLNjKvGfEPleWuw21yC9x2ksHnoE08KC38mcHBRfz\r\nT54dSEYuxInheiNeoyuL+Cdzl1/z2CwLkKzx5ZxVUpIudRf15ZV9ygYgFYyN\r\nL8MwJKn+oxgHyjEHPdDw9dRbn6tgntP4cx0PE/RC+5K2QUiTsOT0A8pj5+4B\r\nPIL5CdS+OvundrPLFaI3jBsPRoIXFtysZjgexqsLKkQN4gK27J/eKTr+1ego\r\ntjVxyxAWt/LYjH9WBdaed31NmxGQU2cr14/izcPcYrsI2PYPz8W89+BuUvfY\r\nFsqySrUwmx5u7kqVdbTrQk/4QxXt3/yQu6uX8mMtwYblGSjm8DElGqm0BNkH\r\nWINW1kqQf/dld73My1SyW0jeN1/xcHPS3NxZOHxg5MBoU+h9r+hNy/lVz6hz\r\nHcROOWsdVbrisDmIM3AbzJxEJDp4tp2cTpu6ANpflaunlrsEq3GCO8/SDaew\r\nHhmTPRz63hv/QAGvHmWQdr5QwcqY7vnjmTmd0eWnaH17XMTrRtoeuHQO+Foi\r\nJMvqLFsq5kK0DS8WHNUsz/IdIYRdRpNXulQ=\r\n=PqJ/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"abledevs","email":"mhawk@sbcadmin.org"},"maintainers":[{"name":"abledevs","email":"mhawk@sbcadmin.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nps-utils_2.0.0_1676840718408_0.8898817022761927"},"_hasShrinkwrap":false}},"time":{"created":"2023-02-19T21:05:18.348Z","2.0.0":"2023-02-19T21:05:18.595Z","modified":"2023-02-19T21:05:18.757Z"},"maintainers":[{"name":"abledevs","email":"mhawk@sbcadmin.org"}],"description":"Utilities for nps (npm-package-scripts)","homepage":"https://github.com/genadis/nps-utils#readme","keywords":["nps","nps-utils"],"repository":{"type":"git","url":"git+https://github.com/genadis/nps-utils.git"},"author":{"name":"Gowrav Shekar"},"bugs":{"url":"https://github.com/genadis/nps-utils/issues"},"license":"MIT","readme":"# This repository has been forked from [nps-utils][nps-utils-orig]\r\n\r\n# nps-utils\r\n\r\nUtilities for [nps][nps] (npm-package-scripts)\r\n\r\n[![version][version-badge]][package]\r\n\r\n\r\n## The problem\r\n\r\n[nps][nps] is a great package to empower your scripts and there are some common\r\nthings you wind up doing to keep your `package-scripts.js` file clean, useful,\r\nand maintainable. So you wind up duplicating utility functions across projects.\r\n\r\n## This solution\r\n\r\nThis has several utility functions you'll often want when using `nps`.\r\n\r\n\r\n## Installation\r\n\r\nThis module is distributed via [npm][npm] which is bundled with [node][node] and\r\nshould be installed as one of your project's `dependencies`:\r\n\r\n```\r\nnpm install nps-utils\r\n```\r\n\r\n## Usage\r\n\r\nYou'll most likely use this in your `package-scripts.js` file:\r\n\r\n```javascript\r\nconst npsUtils = require('nps-utils')\r\n\r\nmodule.exports = {\r\n  scripts: {\r\n    validate: npsUtils.concurrentNPS('lint', 'build', 'test --coverage'),\r\n    lint: 'eslint .',\r\n    build: 'webpack --env.production',\r\n    test: 'jest'\r\n  }\r\n}\r\n```\r\n\r\n### Available methods:\r\n\r\n### Series Commands\r\n```javascript\r\nconst npsUtils = require('nps-utils')\r\n\r\nmodule.exports = {\r\n  scripts: {\r\n    validate: npsUtils.series('nps build', 'nps lint', 'nps test'),\r\n    lint: 'eslint .',\r\n    build: 'webpack --env.production',\r\n    test: 'jest'\r\n  }\r\n}\r\n```\r\n\r\n### Rimraf Commands\r\n```javascript\r\nconst npsUtils = require('nps-utils')\r\n\r\nmodule.exports = {\r\n  scripts: {\r\n    clean: npsUtils.rimraf('build'),\r\n  }\r\n}\r\n```\r\n\r\n### Copy Commands\r\n```javascript\r\nconst npsUtils = require('nps-utils')\r\n\r\nmodule.exports = {\r\n  scripts: {\r\n    copy: npsUtils.copy('dist', 'build'),\r\n  }\r\n}\r\n```\r\n\r\n### Cross-Env Commands\r\n```javascript\r\nconst npsUtils = require('nps-utils')\r\n\r\nmodule.exports = {\r\n  scripts: {\r\n    copy: npsUtils.crossEnv('NODE_ENV=production nps build'),\r\n    build: 'webpack --env.production'\r\n  }\r\n}\r\n```\r\n\r\n### isDocker Commands\r\n```javascript\r\nconst npsUtils = require('nps-utils')\r\n\r\nmodule.exports = {\r\n  scripts: {\r\n    copy: npsUtils.isDocker() ? 'nps watchInsideDocker' : 'nps watch',\r\n    watchInsideDocker: 'webpack --env.production',\r\n    watch: 'webpack --env.production'\r\n  }\r\n}\r\n```\r\n\r\n### Concurrently Commands - Experimental\r\n```javascript\r\nconst npsUtils = require('nps-utils')\r\n\r\nmodule.exports = {\r\n  scripts: {\r\n    validate: npsUtils.concurrentNPS('build', 'lint', 'test'),\r\n    lint: 'eslint .',\r\n    build: 'webpack --env.production',\r\n    test: 'jest'\r\n  }\r\n}\r\n```\r\n\r\n## LICENSE\r\n\r\nMIT\r\n\r\n[version-badge]: https://badge.fury.io/js/%40austonpramodh%2Fnps-utils.svg\r\n[nps]: https://npmjs.com/package/nps\r\n[nps-utils-orig]: https://github.com/kentcdodds/nps-utils#readme\r\n[package]: https://www.npmjs.com/package/@austonpramodh/nps-utils","readmeFilename":"README.md"}