{"_id":"gulp-environments","_rev":"20-52d531b1d92acf7eea58821b39effc5e","name":"gulp-environments","description":"A library for easily adding environments (development/production) to Gulp","dist-tags":{"latest":"1.0.1"},"versions":{"0.1.0":{"name":"gulp-environments","version":"0.1.0","description":"A library for easily adding environments (development/production) to Gulp","main":"index.js","scripts":{"test":"./node_modules/mocha/bin/mocha ./index.js ./test/*.js"},"repository":{"type":"git","url":"git+https://github.com/gunpowderlabs/gulp-environments.git"},"keywords":["gulp","environments"],"author":{"name":"Adam Pohorecki","email":"adam@gunpowderlabs.com"},"license":"MIT","bugs":{"url":"https://github.com/gunpowderlabs/gulp-environments/issues"},"homepage":"https://github.com/gunpowderlabs/gulp-environments#readme","dependencies":{"gulp-if":"^1.2.5","yargs":"^3.15.0"},"devDependencies":{"chai":"^3.0.0","mocha":"^2.2.5"},"gitHead":"14b300d6d94e95e695c1b1f0db2fe98d9e1c0f42","_id":"gulp-environments@0.1.0","_shasum":"5d09c182049bfbcc7e323d4feaaea8b9542792fb","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.6","_npmUser":{"name":"psyho","email":"apohorecki+npm@gmail.com"},"maintainers":[{"name":"psyho","email":"apohorecki+npm@gmail.com"}],"dist":{"shasum":"5d09c182049bfbcc7e323d4feaaea8b9542792fb","tarball":"https://registry.npmjs.org/gulp-environments/-/gulp-environments-0.1.0.tgz","integrity":"sha512-zAEmrknMoQGlwA2k0lAlsbWwq4dEzIZ7CBpuJgERXAfJDT/YtLbUqJabMhV9+uEUq6IrMUvk+5dUUqNycxexqw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICXh90PqupvTnWmCiOE3QZNdmT2DEJSww2kApxKD07BvAiAbslzaLl/Xd2QvqzBruEiDuQgvBzJ3sI0y+lTiDxLikQ=="}]},"directories":{}},"0.1.1":{"name":"gulp-environments","version":"0.1.1","description":"A library for easily adding environments (development/production) to Gulp","main":"index.js","scripts":{"test":"./node_modules/mocha/bin/mocha ./index.js ./test/*.js"},"repository":{"type":"git","url":"git+https://github.com/gunpowderlabs/gulp-environments.git"},"keywords":["gulp","environments"],"author":{"name":"Adam Pohorecki","email":"adam@gunpowderlabs.com"},"license":"MIT","bugs":{"url":"https://github.com/gunpowderlabs/gulp-environments/issues"},"homepage":"https://github.com/gunpowderlabs/gulp-environments#readme","dependencies":{"gulp-if":"^1.2.5","yargs":"^3.15.0"},"devDependencies":{"chai":"^3.0.0","mocha":"^2.2.5"},"gitHead":"4082923aad58cb6f19102ae26106ef3256076a24","_id":"gulp-environments@0.1.1","_shasum":"23ce187badfcbc7ee25cd8db1c0d4b3805d9bc3f","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"psyho","email":"apohorecki+npm@gmail.com"},"maintainers":[{"name":"psyho","email":"apohorecki+npm@gmail.com"}],"dist":{"shasum":"23ce187badfcbc7ee25cd8db1c0d4b3805d9bc3f","tarball":"https://registry.npmjs.org/gulp-environments/-/gulp-environments-0.1.1.tgz","integrity":"sha512-x75PQEMt6uuYuorignv9uiZw1o1SJAkCTwGpTZxrGj+Atxu/ycEE5+jZTqLBi6b/ZmwpjeFM1JOg5Y6V/8CPjg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTc5kiOFa5HbsPxfkL2vWbewzr9MVEYTxAMZObzhZh4gIhAP5zxCsu2rR4iHlRJ3+wui6pE53tArg9lWQ7rWy+2TT1"}]},"directories":{}},"0.1.2":{"name":"gulp-environments","version":"0.1.2","description":"A library for easily adding environments (development/production) to Gulp","main":"index.js","scripts":{"test":"./node_modules/mocha/bin/mocha ./index.js ./test/*.js"},"repository":{"type":"git","url":"git+https://github.com/gunpowderlabs/gulp-environments.git"},"keywords":["gulp","environments"],"author":{"name":"Adam Pohorecki","email":"adam@gunpowderlabs.com"},"license":"MIT","bugs":{"url":"https://github.com/gunpowderlabs/gulp-environments/issues"},"homepage":"https://github.com/gunpowderlabs/gulp-environments#readme","dependencies":{"gulp-if":"^2.0.1","yargs":"^5.0.0"},"devDependencies":{"chai":"^3.0.0","mocha":"^2.2.5"},"gitHead":"b7d496267437729585b563f1f9269c05df186414","_id":"gulp-environments@0.1.2","_shasum":"8646107392193582aff919d53de3302777ffb6eb","_from":".","_npmVersion":"3.10.5","_nodeVersion":"4.2.1","_npmUser":{"name":"wrozka","email":"pawelpierzchala@gmail.com"},"dist":{"shasum":"8646107392193582aff919d53de3302777ffb6eb","tarball":"https://registry.npmjs.org/gulp-environments/-/gulp-environments-0.1.2.tgz","integrity":"sha512-t9p9B3+JtX/ywXmHPzaYeJveCyQxsY19/bb1Yj5PxuzBJjipy9QUYrqADAE88yyQk/m0r6b8SP089HY3eZCgJA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID48NSewBJ/lk2G4Sp9HXRCD8lwp99h2RMYwcF0LAaLgAiA3m0d7AH5UQYSFJEvLzHBSP9NQEVpY4HLxgaPqj4KUxg=="}]},"maintainers":[{"name":"psyho","email":"apohorecki+npm@gmail.com"},{"name":"wrozka","email":"pawelpierzchala@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/gulp-environments-0.1.2.tgz_1489058697230_0.6109541151672602"},"directories":{}},"0.1.3":{"name":"gulp-environments","version":"0.1.3","description":"A library for easily adding environments (development/production) to Gulp","main":"index.js","scripts":{"test":"./node_modules/mocha/bin/mocha ./index.js ./test/*.js"},"repository":{"type":"git","url":"git+https://github.com/gunpowderlabs/gulp-environments.git"},"keywords":["gulp","environments"],"author":{"name":"Adam Pohorecki","email":"adam@gunpowderlabs.com"},"license":"MIT","bugs":{"url":"https://github.com/gunpowderlabs/gulp-environments/issues"},"homepage":"https://github.com/gunpowderlabs/gulp-environments#readme","dependencies":{"gulp-if":"^2.0.1","yargs":"^5.0.0"},"devDependencies":{"chai":"^3.0.0","mocha":"^2.2.5"},"gitHead":"fc13e9632c02494cdc470c2380b9a31bc1f9b204","_id":"gulp-environments@0.1.3","_npmVersion":"6.4.1","_nodeVersion":"8.15.0","_npmUser":{"name":"wrozka","email":"pawelpierzchala@gmail.com"},"dist":{"integrity":"sha512-TTlT1U5fpJ7IomxfjI8f7kstUd9jDauTKOsi9WV1iB7CsHDfiLH5fEbrEsfgH/p9dnmcgdZotYJB4scPHxEzvw==","shasum":"4cad291631299049c86583d2785751afa7cab852","tarball":"https://registry.npmjs.org/gulp-environments/-/gulp-environments-0.1.3.tgz","fileCount":6,"unpackedSize":30532,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdliffCRA9TVsSAnZWagAAHRMQAKDa9ats4TO7QSJuvTLo\ntnMyPDeWObL0CTz0VwvLAVQO0yN6YyeVvTEiaFtuv4tanhqldkHoS329raRM\nw3jx7L9L/hUnycgwMIUJ6v91nFSiRgPjlV5cZ/WJ2ZU+ztLofTeXKP6qgI4+\nLR6w8rwZihdya+lJ3Of2MUilfzsxSSkqiQi3UTPG6AGsjoMbGlLcKLcLA8e2\n+LSyNU8z5h1g7Wp5Fhj/JJHBPXZSnXfjnYvSk6Fxyq+T8uzI+hoDKDV8siNJ\n45vSUgTLnYVEOfrCCgO6VOWOjpDhok901ZQq3mDKu9Ry2m1W6JZhzfTa1kqG\np8JAIganLAVIkMO7uVw68keZFcfL61HLSm5cp0v1lclRmuIyZarWaeac3iWB\n1jwhcTTIE+gyo/0uszfpzfnj0CjWhTP+l4+nOvzgYy5Jy3Vv7SAH6VEphiGe\nbN8oLkHbUzETjEkU88dUx3O6ZoBUd2ipHQyQOuq+EdtzW0yDyiCWVJNiwTLq\nYw6uHVqE51xl1KBERnjvzDQ71AAH40YFNvMB3wWlfcHXqDBvG1vD/kxjj25B\npo/9H5gwSXIePnBcP6VqftnjhSIvmf75777dw6V0i4uO8OUrzh2rvgN3agHj\nSdGxbMITEnf5xyPhLCB6uOw2I29QTrLhln4ELDHuATZZqwpqtG4KnKBF4FF4\nGMgJ\r\n=hBFh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDr2vBDMIbpBGM4OIHJckWJv/bex2hjB3R56RHfF5FLCgIgEQfMsGKrNvaBLseRu8fEQoHEcUyKiT/MiziGBw8Snno="}]},"maintainers":[{"name":"psyho","email":"apohorecki+npm@gmail.com"},{"name":"wrozka","email":"pawelpierzchala@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gulp-environments_0.1.3_1570121694788_0.05012321735531544"},"_hasShrinkwrap":false},"1.0.0":{"name":"gulp-environments","version":"1.0.0","description":"A library for easily adding environments (development/production) to Gulp","main":"index.js","scripts":{"test":"./node_modules/mocha/bin/mocha ./index.js ./test/*.js --gulp-environments-internal-test=1"},"repository":{"type":"git","url":"git+https://github.com/gunpowderlabs/gulp-environments.git"},"keywords":["gulp","environments"],"author":{"name":"Adam Pohorecki","email":"adam@gunpowderlabs.com"},"license":"MIT","bugs":{"url":"https://github.com/gunpowderlabs/gulp-environments/issues"},"homepage":"https://github.com/gunpowderlabs/gulp-environments#readme","dependencies":{"gulp-if":"^2.0.1","yargs":"^5.0.0"},"devDependencies":{"chai":"^3.0.0","mocha":"^2.2.5"},"gitHead":"feb0e611f45bddbdce77bc416346b6019f3c6697","_id":"gulp-environments@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"8.15.0","_npmUser":{"name":"wrozka","email":"pawelpierzchala@gmail.com"},"dist":{"integrity":"sha512-LESfoAUledEF4zahP2pLluCzXdh91jFjpRCp3SmRw171TyIUQuquLQITNP+9n+9C9ASuBZMNn3rAUoWoi60hqw==","shasum":"926c755975ee8265d22eb6bf81696791f968ad26","tarball":"https://registry.npmjs.org/gulp-environments/-/gulp-environments-1.0.0.tgz","fileCount":7,"unpackedSize":31706,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdzuoBCRA9TVsSAnZWagAAlxUP/RPJvXmU59R2hmsQAD9k\nDCrGlJ4X+QbWgCmoCKyeetFB3PWnlw7c/Va2nEz2dXTC1O6Wr4NaFxqX3FfA\nf0z8Bv/miRRc8NafSYOxIVRjmuvZvQfnR8k2ggna3wDe36EnxzLQciEyt4dv\nqsxhWp2heKIOGpQzWc8uSeV2aq55oEOn7fg6TxWesq1SxYyWjBpAsrmtOowe\nBJ5hcdDT8lestNekflEc+riqS9aozvk7vMSA9WTaY/sabMXBr9GEYpJIJgsJ\nhBC+JRzSrsr1/704KUz/QU0mz5wTO8X2leijBLk83mfBtsVQEIlUKd3osKKJ\nPwFdY3e9QMLYsSKvtUVtvIMLih4iZx3onkwWl9ilbsZIgh415e+pl3KcRynq\n8bwW5yTkWTB4FTxtB86J5q1pzkoo2B8mCpDUFpL5vJR5EwFg5Znkun+0iV0X\npP3BCvJdxRw2NLpLQuksySU2pnqWHayP+zQeK3ISOlwfC5+yekYlK6/zXt+x\noJiwU7I+LujLMr+Bu0jGSS4Va7UwpI39iujQFfGhK40uGI4hRoLjCJbf9+f2\nNYV83eggl3TYQs+61kvgBziOA31sRmuHcIkb5GNFhTr6pP2IFemXH8LupV2u\nVTq8bfqbJdFYCjm2OPg7S7KDba3uN5ZFqKSdyxcS8se76lkFRsMnptRAOMqj\nAePr\r\n=NLTC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDeifWVL8xhHaPHX5U811XlGEJm8kPLL6L85v4HRKPgugIgX12DILHPsjAI7bAimlUBBeADstlLdWovqU5yW1WuW5o="}]},"maintainers":[{"name":"psyho","email":"apohorecki+npm@gmail.com"},{"name":"wrozka","email":"pawelpierzchala@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gulp-environments_1.0.0_1573841408884_0.7544491227459014"},"_hasShrinkwrap":false},"1.0.1":{"name":"gulp-environments","version":"1.0.1","description":"A library for easily adding environments (development/production) to Gulp","main":"index.js","scripts":{"test":"./node_modules/mocha/bin/mocha ./index.js ./test/*.js --gulp-environments-internal-test=1"},"repository":{"type":"git","url":"git+https://github.com/gunpowderlabs/gulp-environments.git"},"keywords":["gulp","environments"],"author":{"name":"Adam Pohorecki","email":"adam@gunpowderlabs.com"},"license":"MIT","bugs":{"url":"https://github.com/gunpowderlabs/gulp-environments/issues"},"homepage":"https://github.com/gunpowderlabs/gulp-environments#readme","dependencies":{"gulp-if":"^2.0.1","yargs":"^15.0.1"},"devDependencies":{"chai":"^3.0.0","mocha":"^2.2.5"},"gitHead":"7193fe6fef632ac2029703fcc20ffbac0f1f87bf","_id":"gulp-environments@1.0.1","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-ooM/H+1ZFImalQPHCaMGvKap/8UQxHMcyo65f/Y6ZakCpa4FgJ9NH/9ux7hj7Z8J22mFlJu9RQgxuZT82UtlKg==","shasum":"903ac4937a62587fc06bdb959723ce41cd1a8474","tarball":"https://registry.npmjs.org/gulp-environments/-/gulp-environments-1.0.1.tgz","fileCount":6,"unpackedSize":6932,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1LFcCRA9TVsSAnZWagAA0AIP/2vl483TqcKDyzMCdwX7\nq3+u2Ybf7W92BnFk3Qfd1/LFOIJtw7HX04WQSlrr2ueSoMicUtmelfTgMtR1\nl/dS+ZxwrRRu+6QfI0S9D/dxBhxU8OBNGQ6Y8eBcv7Wdb4EcBUZ57qmi6i6U\n6tLLgGj0Shh/aGJajFTjQfs2m3kNPLC+yOypfPO43EiE4T/6m0FKmX2U1IL9\nVoZkP2nCqtu4H4XR6Avx6gn0xeFLmUTgJn7M5Y3Rde99CRpSW4aexWmUQolv\nD4m7NkyLmAlBfRdfkehGTBZDM6HkDubjIGrqDAZ2BahT0Tl2NHfb7gVQ3uKI\nlpjB2L0ranVjX+pzPv8AtBF/YKTClV7zGd4g048d/4k5brrQClHzomJsLbff\nzWtjifueJFk6BbgaxBuxAMoY/Balcs90KonwHmtKAgcXZn8GX5uB4SUM4vOw\nfTzW3CjgdDIrUt8RZ1OLiVUhQ6s7DIpimWRY8fGGVt7+u3qt7qi1FzswPQER\nndYlKt67tGmZ+IiRcwMc/loWTIygWvMwYjB/VjFQhoHvLmBbucbzOvPMPDIu\necIs5QPHZjDrOwirqbVBc7YLWifn7m92FwqXbTK+Pr+vCSFrxnDeEnGDLUar\nGLS3umzqExpr1ehxzij2lcqbX+cs8/YoGdHxnqwVRKMknLp+ZqWJokyJhxL3\n6i2H\r\n=Fg6C\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6M57gBN1basFW1fRadGIyKY2OH6fIDLWsno64NlfyIAIhAOWGcEU4Dj6cN5YorqF2nprOp1UulQpGzJdI3YGaFF4t"}]},"maintainers":[{"name":"psyho","email":"apohorecki+npm@gmail.com"},{"name":"wrozka","email":"pawelpierzchala@gmail.com"}],"_npmUser":{"name":"wrozka","email":"pawelpierzchala@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gulp-environments_1.0.1_1590997339632_0.9301896977315589"},"_hasShrinkwrap":false}},"readme":"# gulp-environments\n\nA Gulp plug-in that makes it convenient to create separate environments, such as development and production, to run your tasks in.\n\n[![CircleCI](https://circleci.com/gh/gunpowderlabs/gulp-environments.svg?style=svg)](https://circleci.com/gh/gunpowderlabs/gulp-environments)\n\n## Basic usage\n\nInstall the plugin using npm:\n\n    $ npm install --save-dev gulp-environments\n\nRequire the plug-in somewhere in your `gulpfile.js`\n\n    var environments = require('gulp-environments');\n\nBy default, the library defines two environments: development and production. For convenience sake, it is recommended to assign them to local variables:\n\n    var development = environments.development;\n    var production = environments.production;\n\nYou can use these environments as predicates (functions returning true/false depending on whether the given environment is active):\n\n    var source = production() ? \"source.min.js\" : \"source.js\";\n\nYou can also use the environment as a filter in you Gulp pipelines:\n\n    gulp.src(paths.js)\n      // this will only init sourcemaps in development\n      .pipe(development(sourcemaps.init()))\n      .pipe(concat(\"app.js\"))\n      // only write out sourcemaps in development\n      .pipe(development(sourcemaps.write('.')))\n      // only minify the compiled JS in production mode\n      .pipe(production(uglify()))\n      .pipe(gulp.dest(\"./public/app/js/\"));\n  \n## Setting the environment\n\nBy default, gulp-environments uses the NODE_ENV environment variable to determine environment:\n\n    NODE_ENV=development gulp build\n\nYou can also pass a command line flag --env to set it (takes precedence over NODE_ENV):\n\n    gulp build --env development\n\nAlternatively, you can define a task that would set the appropriate environment before executing other tasks:\n\n    gulp.task('set-dev', development.task);\n\nand run it (or make it a dependency of a task that should also be run in that environment):\n\n    gulp set-dev build\n\nFinally, you can always set the environment by hand in your task definition:\n\n    environments.current(development);\n\n## Other environments\n\nYou don't have to limit yourself to using only the two provided environments. You can create other ones by calling (in the example, we are creating an environment called staging):\n\n    var staging = environments.make(\"staging\");\n\n## License\n\nMIT\n\n## Author\n\nAdam Pohorecki\n","maintainers":[{"name":"psyho","email":"apohorecki+npm@gmail.com"},{"name":"wrozka","email":"pawelpierzchala@gmail.com"}],"time":{"modified":"2022-06-18T17:01:23.888Z","created":"2015-07-13T09:45:49.389Z","0.1.0":"2015-07-13T09:45:49.389Z","0.1.1":"2015-09-14T07:20:10.255Z","0.1.2":"2017-03-09T11:24:59.132Z","0.1.3":"2019-10-03T16:54:54.946Z","1.0.0":"2019-11-15T18:10:09.037Z","1.0.1":"2020-06-01T07:42:19.802Z"},"homepage":"https://github.com/gunpowderlabs/gulp-environments#readme","keywords":["gulp","environments"],"repository":{"type":"git","url":"git+https://github.com/gunpowderlabs/gulp-environments.git"},"author":{"name":"Adam Pohorecki","email":"adam@gunpowderlabs.com"},"bugs":{"url":"https://github.com/gunpowderlabs/gulp-environments/issues"},"license":"MIT","readmeFilename":"README.md","users":{"raulsann":true,"vwal":true,"bnu":true,"hvilela":true,"johnym":true,"alekseyleshko":true,"joshukraine":true,"phritolay":true}}