npm install abigail-plugin-envAbigail Env Plugin
---
No installation
---
> abigail built-in plugin
Usage
---
NODE_ENV to production.``bash`
abby build --envNODE_ENV was changed to "production".
for the plugin, it set value to the NODE_ENV.`bash
abby build --env development
NODE_ENV was changed to "development".
`replacing all
if specify a options.full, it set all values to process.env.`bash
abby build --env.full.NODE_ENV 'foo' --env.full.port 59798
process.env was changed using options.full.
`use
abigail.plugins.env field in package.json`js
{
// ...
"abigail": {
"plugins": {
// default disable
"env": false // default "production"
"env": true
// default "development"
"env": "development"
// default: replacing all
"env": {
"enable": true,
"full": {
"NODE_ENV": "production",
"port": 59798,
"host": "berabou.me"
}
}
}
}
}
`See also
---
* abigailjs/abigail
* abigailjs/abigail-plugin
Development
---
Requirement global
* NodeJS v5.10.0
* Npm v3.8.3
`bash
git clone https://github.com/abigailjs/abigail-plugin-env
cd abigail-plugin-env
npm installnpm test
``License
---
MIT