2.0.0 • Published 6 years ago

yadan v2.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

yadan

A custom egg framework.

  • Expose options passed to app as appInfo.options and app.config.appOptions.

Usage

you can use options passed to an app like below:

// config/config.${env}.js
module.exports = appInfo => {
  const config = {};
  config.something = appInfo.options.something;
  return config;
}

or

// app.js
module.exports = app => {
  console.log(app.config.appOptions);
}

License

MIT

2.0.0

6 years ago

1.0.0

6 years ago