{"_id":"@austonpramodh/nps-utils","_rev":"2-6b840d4eb051aba142f5815f9416f0f0","name":"@austonpramodh/nps-utils","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"@austonpramodh/nps-utils","version":"0.0.1","description":"Utilities for nps (npm-package-scripts)","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"start":"nps","test":"nps test","prepare":"npm start build","prepublishOnly":"npm start test && npm start lint"},"keywords":["nps","nps-utils"],"author":{"name":"Auston Pramodh Barboza","email":"austonpramodh@gmail.com"},"license":"MIT","dependencies":{"any-shell-escape":"0.1.1","concurrently":"5.3.0","cpy-cli":"3.1.1","cross-env":"7.0.2","is-docker":"2.1.1","rimraf":"3.0.2"},"devDependencies":{"@types/jest":"^26.0.15","@types/node":"^14.14.9","@typescript-eslint/eslint-plugin":"^4.8.2","@typescript-eslint/parser":"^4.8.2","eslint":"^7.14.0","eslint-config-prettier":"^6.15.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","jest":"^26.6.3","nps":"5.10.0","prettier":"^2.2.0","ts-jest":"^26.4.4","typescript":"^4.1.2"},"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/austonpramodh/nps-utils.git"},"bugs":{"url":"https://github.com/austonpramodh/nps-utils/issues"},"homepage":"https://github.com/austonpramodh/nps-utils#readme","gitHead":"a0a61b9705721c6ca238a9d29b615b4d4c5b04ef","_id":"@austonpramodh/nps-utils@0.0.1","_nodeVersion":"14.14.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-2VyF1X7cvpKTrjTGSCmbgONxX7xVd3Yi11SN1GVD4KCe2ROe0cVH498qVYtz6WkZWMbzgdpYYQHXn/4dOS85nw==","shasum":"f981081b75c4cfabc1a8852166dcc852943d84a6","tarball":"https://registry.npmjs.org/@austonpramodh/nps-utils/-/nps-utils-0.0.1.tgz","fileCount":22,"unpackedSize":20154,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvDegCRA9TVsSAnZWagAAuQoP/2Imd3kLDmE6cyYJq4zD\nMR4qrSaFaq1JWo6043J6XuTn9RC69H779Uh1EBOEar8JowoY8LSiFotw7IBb\nbX1tUr8/8PfyG+tIQCC5Ghsfg8Rop3e/T8c7zyN2VGQBl3yPVuDBnl5dp4Nf\naIdp96JudnzGWQW5ikRXR34T9W+JPmdr4emKCfVmRjggumYIqOUb7loYn6U1\naN8KIcrNnM9fQgzbCn+0zjDRDdxq7031xKJwqhw+XVG7Vjv9z9bqe+Idt3iX\nnVLDG+ytkU5S5hBskhgIsbHxk7UuJoTpmLZb9aNqtyHwoCMWJLkq88tdqt2/\nan6wuZzFqsb7OTlbjOPmV//nPBgM81tQOHerraVpWprxfwp+OOt/AQchlVfW\nXtlrcDqaQSxw5HgyggC+ESKcR9puouqIbzw8TxUSL6N4WFNWnc4N+bquTQ8A\nORPkyNsYKnoYlomgmNyIP8ymy5Bl4mvCv1twPGGvxrZQqDmmn7JVEqxpNLta\nWszFLvMFNr9QLAFylnbIU2c67q7AF8O43zKrUgg7rdW/I2/AS4nkceVRpskw\nawbwz9u/d2k+T0RCqd5X4hVGFVZQokBX856T8p26daQOrDhHgF+J7Vfq3d/v\n0ke4q6ZD8NWzuoGaLZNvkKv5u7UrP2agvgU7XUmFPWYEZUvZLqfQo24kxkuO\nlMiY\r\n=aM94\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEB4rHP3fAIEQbWBURZXZzJ99ya3r5NKVyCnQH/FV7IiAiEAk2CMM+ZEoAQsTRnE+FFHmlqxixdwsNflCAcF2o7Qe60="}]},"_npmUser":{"name":"austonpramodh","email":"austonpramodh@gmail.com"},"directories":{},"maintainers":[{"name":"austonpramodh","email":"austonpramodh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nps-utils_0.0.1_1606170527973_0.8592607790060389"},"_hasShrinkwrap":false},"0.0.2":{"name":"@austonpramodh/nps-utils","version":"0.0.2","description":"Utilities for nps (npm-package-scripts)","main":"lib/index.js","types":"lib/index.d.ts","scripts":{"start":"nps","test":"nps test","prepare":"npm start build","prepublishOnly":"npm start test && npm start lint"},"keywords":["nps","nps-utils"],"author":{"name":"Auston Pramodh Barboza","email":"austonpramodh@gmail.com"},"license":"MIT","dependencies":{"any-shell-escape":"0.1.1","concurrently":"5.3.0","cpy-cli":"3.1.1","cross-env":"7.0.2","is-docker":"2.1.1","rimraf":"3.0.2"},"devDependencies":{"@types/jest":"^26.0.15","@types/node":"^14.14.9","@typescript-eslint/eslint-plugin":"^4.8.2","@typescript-eslint/parser":"^4.8.2","eslint":"^7.14.0","eslint-config-prettier":"^6.15.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","jest":"^26.6.3","nps":"5.10.0","prettier":"^2.2.0","ts-jest":"^26.4.4","typescript":"^4.1.2"},"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/austonpramodh/nps-utils.git"},"bugs":{"url":"https://github.com/austonpramodh/nps-utils/issues"},"homepage":"https://github.com/austonpramodh/nps-utils#readme","gitHead":"d24c9f7b6fe18c99b04c13795d55c4353d6740d8","_id":"@austonpramodh/nps-utils@0.0.2","_nodeVersion":"14.14.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-uwMAmBG1tpLqvz599zGDs/tr65soyUEpvrXuUe96NPJqAka24T9t/039dW1dRCucl2+2QmuwPzzL+CFz30L96g==","shasum":"fff69061649fb2cd580aa27c466423a17613b3be","tarball":"https://registry.npmjs.org/@austonpramodh/nps-utils/-/nps-utils-0.0.2.tgz","fileCount":21,"unpackedSize":21606,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvDvdCRA9TVsSAnZWagAAnDoP/2rFX0/9Hx+HEebS4HCF\nBK2Yw6QqLHjT0KjW7c8bFQ2mqYXg3mhcePn2YQNoNxxGtzJnA1kQ70XV4V8v\n6m6EA2CTLppJjSwCsHSDp/y/w3x7BkwDSVAd60B1GQvqmiJY+SQH6u7ZjgOb\n22Lex16Ya/GcBGC5l0e5Lmqz07INzmI799/COEbAv9YG76u2dF9rF6zjbSoQ\nO34Sc3o4TdKuAiRomB3ZBQEdL/whWSaE97DXkEqtak5s2MEztoC+Wm4m7xvL\nvUx528DnsWEjtbyJA8OwdXBxFWH1MuzdgyrLhLfnmOn0I3258fT5gpvC9mE/\nq3cx+MXA3eAh8lKpRG0BJMlIuL/McHaJU15OD4dt/HHv+HVzwfExUuaQo7F9\neO147bZVWfKCZnWK6vAadlYgR0hzgquAr9R55RYoHCtNPYioS5UnCUCIC2kK\nllz4MJvrVA7KmP+8vCw0L2SXHGVpe9/WodW4UNC2+4NFUiRlv1YHkhlNwBb3\ndnuzejhKLi4G1VUTl+SJskE0GeqPB/7yqxJFbblLpqPdaM/A/Sr8r002/dJg\nH9DYG4+DHyJP1VSvqg2j7t5hEnmAxJkpwzd2LOEKkidFZvFbOs0SWOsjhgP5\n2JsrFdqVB6Y/wQtdZJEx/mdbTPPQ8tJym860X3xFGDlx0eXzeyLr+/Jr2ZxF\n4xxW\r\n=SV1F\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5VwODi+4yXbXpVk8SDwgrS924LL0EcnOtuMnvkwhrRAIgQjob5+iKB90xP5JzoWW90F+wgAcXOE7LwF9xdcw9wzg="}]},"_npmUser":{"name":"austonpramodh","email":"austonpramodh@gmail.com"},"directories":{},"maintainers":[{"name":"austonpramodh","email":"austonpramodh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nps-utils_0.0.2_1606171612918_0.6380731042458603"},"_hasShrinkwrap":false}},"time":{"created":"2020-11-23T22:28:47.925Z","0.0.1":"2020-11-23T22:28:48.123Z","modified":"2022-04-04T16:30:22.713Z","0.0.2":"2020-11-23T22:46:53.063Z"},"maintainers":[{"name":"austonpramodh","email":"austonpramodh@gmail.com"}],"description":"Utilities for nps (npm-package-scripts)","homepage":"https://github.com/austonpramodh/nps-utils#readme","keywords":["nps","nps-utils"],"repository":{"type":"git","url":"git+https://github.com/austonpramodh/nps-utils.git"},"author":{"name":"Auston Pramodh Barboza","email":"austonpramodh@gmail.com"},"bugs":{"url":"https://github.com/austonpramodh/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"}