{"_id":"@constgen/neutrino-mode","_rev":"5-b391ba134c87687732fc3e8f95db7f46","name":"@constgen/neutrino-mode","dist-tags":{"pnpm-temp":"1.1.0","latest":"1.9.2"},"versions":{"1.0.0":{"name":"@constgen/neutrino-mode","version":"1.0.0","description":"Neutrino middleware to automatically choose the building mode","main":"index.js","author":{"name":"Constantine Genchevsky","email":"const.gen@gmail.com"},"license":"GPL-3.0","repository":{"type":"git","url":"git+https://github.com/constgen/constgen-neutrino.git"},"homepage":"https://github.com/constgen/constgen-neutrino/packages/mode","keywords":["neutrino","neutrino-middlware","middlware","preset","webpack","mode"],"dependencies":{},"peerDependencies":{"neutrino":"^9.0.0"},"engines":{"node":">=10","npm":">=5.4.0"},"bugs":{"url":"https://github.com/constgen/constgen-neutrino/issues"},"_id":"@constgen/neutrino-mode@1.0.0","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-Q+eEB4yesRHuGoCL+w55ggqC7lQ8w/Yz3dKSNm1GDTzBYIf9W9v74GVVgs0XRNHQTkYMxf7Uwz61+R69DiYaTw==","shasum":"4b989012612537d20368f851e14fa4b08a3306ef","tarball":"https://registry.npmjs.org/@constgen/neutrino-mode/-/neutrino-mode-1.0.0.tgz","fileCount":4,"unpackedSize":38062,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJei0k+CRA9TVsSAnZWagAAcqcQAIQTASdLlyG3s462W6oZ\nBPUyxK236yvvOGQf55/56qt2V8ZVNYRCa+Miq4ecUivDe1XRkOuqBjhIYhzs\nREXcMJeEtBWZ/no1W0ix70IBI/CFfpTX+FUByP/ZaxeXJzYYFfs27fx/lTlR\nz8nuAK3rT2bakWgO+nMKeNgRO+JcE83/QSppP9pJF9pJahjyuiQKk5v99lZS\n3MSMX5KxhmvlnIXV33eplXg52ss1+9xCvo4BrgQY+AkB1W3NOxS9Stiq1b8h\nuxgOq/k1ILG2ua+grfbdgj500t39MNFhibCVs+schcyPc/+hV+K3c5GtmXTz\naeRM4KACxhXSR/K0aJMUghehps1xe3pAea19y7QHM6s2HOktVbFYc/P6G3Y+\nhtmVqjnNE1X8DC1plC07XeAY66zNOFGBsBzK18uNlo9YB8ra2yyDbFmDL+Ul\n99wlNe/YgExq+zaGeAH308UUPe2HOqNyXm4wQziZLbrEQlCiHUulAcg2+CXG\n7Esbw7XpgfqAVTgp6f8yXNNRUzqCCE7vqmD6L3f6bgZ2palbOGhnAIIrhpHI\n5o9VNxjdvYT81tQhhiV1zPzA2R/otthrtZFEgsnPRdsSXh0RShYeC9yu0xxL\nh/6qhaWqRZc0iXsif2kftRrrW7hmtroi6bV9EY9dGxgnVm2uPZb7N+h3fscl\nh3St\r\n=Yj0I\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICkC5fEwhpniB8rwG5/7hYvLH+/1Fo07aGFGZ9VeGIxMAiEAtycgOruA0St46lhh61ptf16UWWc6Sh+0gspa0MlYqu8="}]},"maintainers":[{"name":"constgen","email":"const.gen@gmail.com"}],"_npmUser":{"name":"constgen","email":"const.gen@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/neutrino-mode_1.0.0_1586186557714_0.7857652096193508"},"_hasShrinkwrap":false},"1.1.0":{"name":"@constgen/neutrino-mode","version":"1.1.0","description":"Neutrino middleware to automatically choose the building mode","main":"index.js","author":{"name":"Constantine Genchevsky","email":"const.gen@gmail.com"},"license":"GPL-3.0","repository":{"type":"git","url":"git+https://github.com/constgen/constgen-neutrino.git"},"homepage":"https://github.com/constgen/constgen-neutrino/packages/mode","keywords":["neutrino","neutrino-middlware","middlware","preset","webpack","mode"],"dependencies":{},"peerDependencies":{"neutrino":"^9.0.0"},"engines":{"node":">=10","npm":">=5.4.0"},"readme":"# @constgen/neutrino-mode\n\n[![npm](https://img.shields.io/npm/v/@constgen/neutrino-mode.svg)](https://www.npmjs.com/package/@constgen/neutrino-mode)\n[![npm](https://img.shields.io/npm/dt/@constgen/neutrino-mode.svg)](https://www.npmjs.com/package/@constgen/neutrino-mode)\n\n[Neutrino](https://neutrino.js.org) middleware to automatically choose the building mode (production or development) based on CLI command. It allows to pass less flags when run `webpack` or `webpack-dev-server`\n\n## Requirements\n\n- Node.js v10+\n- Neutrino v9\n\n## Installation\n\n`@constgen/neutrino-mode` can be installed from NPM. You should install it to `\"dependencies\"` (--save) or `\"devDependncies\"` (--save-dev) depending on your goal.\n\n```bash\nnpm install --save @constgen/neutrino-mode\n```\n\n## Usage\n\n> **Important:** If you use this middleware, you should use it at the very beginning before any other middlewares as it correctly defines `process.env.NODE_ENV` and `neutrino.config.mode()`\n\nThese commands will enable **development** mode and **watching**. So it is recommended to use one of them in package.json `scripts.start`:\n\n```bash\nwebpack-dev-server\nwebpack --mode development\n```\n\nAll other commands will be production. So it is recommended to use one of them in package.json `scripts.build`:\n\n```bash\nwebpack\nwebpack --mode production\n```\n\n### In preset\n\nRequire this package and plug it into Neutrino. The middleware has no options:\n\n```js\nlet mode = require('@constgen/neutrino-mode')\n\nneutrino.use(mode())\n```\n\n### In **neutrinorc**\n\nThe middleware also may be used together with another presets in Neutrino rc-file, e.g.:\n\n**.neutrinorc.js**\n\n```js\nlet mode = require('@constgen/neutrino-mode')\n\nmodule.exports = {\n   use: [\n      mode()\n   ]\n}\n```","readmeFilename":"README.md","bugs":{"url":"https://github.com/constgen/constgen-neutrino/issues"},"_id":"@constgen/neutrino-mode@1.1.0","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-+2/bvxfQx8Cy1cc8NseyTz5HjnaftsXvVaiVk6ocP3sd+k3RqXe14BhNXb3NPJGDb7RLXiNUABEMeL8lRtyEUA==","shasum":"ff2708355c3c36b8390e036da1e8b6f7a25298a8","tarball":"https://registry.npmjs.org/@constgen/neutrino-mode/-/neutrino-mode-1.1.0.tgz","fileCount":4,"unpackedSize":38225,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJejOJWCRA9TVsSAnZWagAAEI4P/RJmrBFlYKFuCOqTTFDS\nZI3bYHXo1XKOkX+pRUX2CrGmttbss6lr/kW23+OI1g1r5PZNYU9m4cjl5vnY\nA92wlmnU0cTkspszQSfRbzB51DUULlfZlkXaRZgQbQbf3HwPYbKQCSHTe7JF\nVgKVTbCjZCRBBUKHK245endKr5N/b5wyoJFmVzK6IsQvMGEyb+E3kN1QE1IR\nWAdSfkAmzskT4h/TNivQZGQGPSKSaxiubPnRfYT0vzBSzqEo9k6YsLKd+7VM\ncjErF/q11TZW244iKJ9seskXWe6Z6QgqmcR4rBqYd317IIETLm7GqnT7dOiK\nfJGyWMQhAnfaTJslYmb4I2Kakb/CUwOlfhN2iQGCXPSLxbKFrLLNwxI7psci\nUm/nKDPPaigi/2AQ3hJVInJO550krBDbFgzyiJXKC9iQobL4nWpebgOCzD6h\nJ/+jQCsWfEtUHuTNCvYMkktHXMNWqrb5XfZ3ZB5cVmqTvMD9Y36KDj6sRnCH\nOUJRFT850olyfcA9t88Imm0Vfj9HJfh08ayd0Gl8+p/07ZQttX5N5o5/FBcl\nw97dgP/7KoykArfTQpPwK4+EE1r8PDEj4hoYyJ0DoCiF3Dgui6izO7yGtIlW\nxI5cDW4CFeTUAaVlbcUI6ZnA0cBXkEyRTivbEOs/4EGMJKF2aOCd4xHffj7/\nJL3W\r\n=KRC6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEq9X7/ca8D+/yxb9TS5cgWM86CQFeDra2hFRKOAP2c4AiEA5IxSMyg5SydR67r1BEA60CTNmD3ajUCLt4EExvsOxsI="}]},"maintainers":[{"name":"constgen","email":"const.gen@gmail.com"}],"_npmUser":{"name":"constgen","email":"const.gen@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/neutrino-mode_1.1.0_1586291285579_0.6155033205015021"},"_hasShrinkwrap":false},"1.5.0":{"name":"@constgen/neutrino-mode","version":"1.5.0","description":"Neutrino middleware to automatically choose the building mode","main":"index.js","author":{"name":"Constantine Genchevsky","email":"const.gen@gmail.com"},"license":"GPL-3.0","repository":{"type":"git","url":"git+https://github.com/constgen/constgen-neutrino.git"},"homepage":"https://github.com/constgen/constgen-neutrino/packages/mode","keywords":["neutrino","neutrino-middlware","middlware","preset","webpack","mode"],"dependencies":{},"peerDependencies":{"neutrino":"^9.0.0","webpack":"^4.0.0"},"engines":{"node":">=10","npm":">=5.4.0"},"bugs":{"url":"https://github.com/constgen/constgen-neutrino/issues"},"_id":"@constgen/neutrino-mode@1.5.0","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-/hnJ36kwfhGcfxk+V5B31HXMyXKOWklyWEM+lgJZFEt9vkxt/Tmk5Ww7iAnq4W8Ls2PJjpn4d1qoD8LizYfITA==","shasum":"b0d4f0a5c5d73b8a15a7cbac555b4ea51f0a8bfa","tarball":"https://registry.npmjs.org/@constgen/neutrino-mode/-/neutrino-mode-1.5.0.tgz","fileCount":4,"unpackedSize":38354,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPSI1CRA9TVsSAnZWagAApREP/j9QIK9IgXOiCAZIMknb\nQ7AJasmCI04mu14S6Xjj+Z1TmSJPAXtKmMiRCUQGW/0ljd3RSTeF5ADbYzF0\n5VJ4Goj4j1eMkMs4JPuXhob7ct91yED1tSo7hscH+Y7aWDggMkxKUJG88+m0\npsdrDagdo8dH063PdFUpsFVawW1mxYeYhME+0NorxomRFZOvheRqdkRbn0wq\nZf8WzUDOYah4qMOxtnK77Pu3i3veVFTKHCNrXLOF2TwdpTeB1KDzZd+G34ym\nCilW3p3S0zcwiHIBQkGmMx81o2rJaGiBsy1s3l6QX7n9py/0lil6gsvjIqgy\n1M6w9VzGzpwxxMqulVJmWeMvmEje99/9BLdS1RrlvkYrlUWGxhKNIrNRs8wr\n6bmrnRQffNeVMacbpCOE+GQxeKjqrduC01bREfn7IY+4IhQ0kkC2tq3aH6Kw\nOAhktfRY6KHJF97l7qvnvpP+MJYQoBL7gE7ln0SIxn6DvTeBwviBI7U4E7OG\naAlV6SqQt7Bq4gb0Ib8sCt/Z4+QJq660zFpVf4LM3Rw5jBGsLE74Y2DNMfJ3\nXrXS9z6rUvWtrs51QxBJxodinG4SZcFgDtA/8pUjF/7TekTp+DmvF2JHuusb\nSDUJSiHUVtVeMqvZ3o2F05yCMcmEvyIKOIca3AluDEApOhO5AMjyehddQ3tg\nP+A6\r\n=it03\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBPzkjbelK9Eb9VhzrqSLku0a6bORJxsHKHV0f5NY6JwIgI0RabE1zs5ACapFYfjEI1/ljXImPgCdkcEUiKKZD10w="}]},"maintainers":[{"name":"constgen","email":"const.gen@gmail.com"}],"_npmUser":{"name":"constgen","email":"const.gen@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/neutrino-mode_1.5.0_1597841972873_0.32563684782577407"},"_hasShrinkwrap":false},"1.9.2":{"name":"@constgen/neutrino-mode","version":"1.9.2","description":"Neutrino middleware to automatically choose the building mode","main":"index.js","author":{"name":"Constantine Genchevsky","email":"const.gen@gmail.com"},"license":"GPL-3.0","repository":{"type":"git","url":"git+https://github.com/constgen/constgen-neutrino.git"},"homepage":"https://github.com/constgen/constgen-neutrino/tree/master/packages/mode","keywords":["neutrino","neutrino-middleware","middleware","preset","webpack","mode"],"dependencies":{},"peerDependencies":{"neutrino":"^9.0.0","webpack":"^4.0.0"},"engines":{"node":">=10","npm":">=5.4.0"},"bugs":{"url":"https://github.com/constgen/constgen-neutrino/issues"},"_id":"@constgen/neutrino-mode@1.9.2","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Kt6n8u/kjPuzx/9JNKwm5xVkQioNp3SQn9tsZ280pTfS+RF2ouiMAn6CIBVTqJuaCJQibpMwQMM8OC8ElgNbcA==","shasum":"b359b4347847f801388f24764ca696553650ce80","tarball":"https://registry.npmjs.org/@constgen/neutrino-mode/-/neutrino-mode-1.9.2.tgz","fileCount":4,"unpackedSize":38368,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfcmxaCRA9TVsSAnZWagAABGwP/2wh+YWDQ5eSXkz5h2aw\nTtMis2wdNyCN1BYSKVxj5S7KV/oIhcF7bcwXLCYiTKWlGu4yQMOVgaTvfwdR\nvHrW9bxo4Eb02wsB81w0IhSQJv318eowVaxVt0H04Po0RjcOvnu8IXGFXtIj\ncFxL5bh9pNxQxHuv1pdXe6OFYR/DX55iURTogCEVHop7rlNj82/q+sfId7i5\nnr6AylzixhorzJ5qyZfYB9zF6ILTo5JKVGYlNnluIx/cqSRYoBo56acdfP1r\nFmczg/YQOOBS/Pkk8VhCySjl/A2Jv/FB8DlUQXNEJ1KsOueyhK0FygUiySIo\nRW7Kfle4pdjn/WRMjIBD2zHCslCVQ+xRPtVURt0q87Hzqy1JO6cFzpJ9rib4\ni5pfNEQ1oDwXaFAX1u9FdEGH69hHTgQPZuR1AjulPBHoyIBfd1EAF8SXoLvc\nbPFKLBtSAmr5StmYx5khar5B2+HIGItY6auRvRSNV4bWABbmq4n6rCkkZm/z\nx2rU8rnK2DsZBLcdoJpcG6X/DbLs9Wvm33w1+rG9G+mSyy8ryS0bdb1jBcRl\n1BCoELSmZoIZTBCRW4PJ8mLTqBK9qTWx37kdyWrLn0nlY3MrfLlg1CBS8cEN\noZqCpZ61Kp9DUfV1bbYcJHSv7QkTI/MF1jmGWV+Ftk7aCTJxhFcUXJYq5PPf\ntdFa\r\n=aS6K\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC05T7oK9Q7sSirmKKszfY+Mx6Z6U/RRn7PX4oxWdfozAIhAO0qOXKhcMIXm14ArKrUKjcxzWSxif/QGhBdp74MWfWt"}]},"maintainers":[{"name":"constgen","email":"const.gen@gmail.com"}],"_npmUser":{"name":"constgen","email":"const.gen@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/neutrino-mode_1.9.2_1601334361873_0.5149091477855654"},"_hasShrinkwrap":false}},"time":{"created":"2020-04-06T15:22:37.461Z","1.0.0":"2020-04-06T15:22:37.880Z","modified":"2022-04-05T00:59:56.953Z","1.1.0":"2020-04-07T20:28:05.702Z","1.5.0":"2020-08-19T12:59:32.973Z","1.9.2":"2020-09-28T23:06:02.053Z"},"maintainers":[{"name":"constgen","email":"const.gen@gmail.com"}],"description":"Neutrino middleware to automatically choose the building mode","homepage":"https://github.com/constgen/constgen-neutrino/tree/master/packages/mode","keywords":["neutrino","neutrino-middleware","middleware","preset","webpack","mode"],"repository":{"type":"git","url":"git+https://github.com/constgen/constgen-neutrino.git"},"author":{"name":"Constantine Genchevsky","email":"const.gen@gmail.com"},"bugs":{"url":"https://github.com/constgen/constgen-neutrino/issues"},"license":"GPL-3.0","readme":"# @constgen/neutrino-mode\n\n[![npm](https://img.shields.io/npm/v/@constgen/neutrino-mode.svg)](https://www.npmjs.com/package/@constgen/neutrino-mode)\n[![npm](https://img.shields.io/npm/dt/@constgen/neutrino-mode.svg)](https://www.npmjs.com/package/@constgen/neutrino-mode)\n\n[Neutrino](https://neutrino.js.org) middleware to automatically choose the building mode (production or development) based on CLI command. It allows to pass less flags when run `webpack` or `webpack-dev-server`\n\n## Requirements\n\n- Node.js v10+\n- Neutrino v9\n- Webpack v4\n\n## Installation\n\n`@constgen/neutrino-mode` can be installed from NPM. You should install it to `\"dependencies\"` (--save) or `\"devDependncies\"` (--save-dev) depending on your goal.\n\n```bash\nnpm install --save @constgen/neutrino-mode\n```\n\n## Usage\n\n> **Important:** If you use this middleware, you should use it at the very beginning before any other middlewares as it correctly defines `process.env.NODE_ENV` and `neutrino.config.mode()`\n\nThese commands will enable **development** mode and **watching**. So it is recommended to use one of them in package.json `scripts.start`:\n\n```bash\nwebpack-dev-server\nwebpack --mode development\n```\n\nAll other commands will be production. So it is recommended to use one of them in package.json `scripts.build`:\n\n```bash\nwebpack\nwebpack --mode production\n```\n\n### In preset\n\nRequire this package and plug it into Neutrino. The middleware has no options:\n\n```js\nlet mode = require('@constgen/neutrino-mode')\n\nneutrino.use(mode())\n```\n\n### In **neutrinorc**\n\nThe middleware also may be used together with another presets in Neutrino rc-file, e.g.:\n\n**.neutrinorc.js**\n\n```js\nlet mode = require('@constgen/neutrino-mode')\n\nmodule.exports = {\n   use: [\n      mode()\n   ]\n}\n```","readmeFilename":"README.md"}