Skip to content

v1.6.0

Compare
Choose a tag to compare
@zhangyuheng zhangyuheng released this 15 Feb 08:40
· 13 commits to master since this release
  • refactor: remove babel, use CommonJS

  • refactor: remove sim and update command

  • apfe pack config file can be a JSON file or a node module that exports an Object, exports a Function or exports an Async Function

  • usage

$ apfe pack pack -c /path/to/config.{js,json}
$ apfe pack -- -- --config /path/to/config.{js,json}
  • JSON config
{
  "name": "appname",
  "version": "1.1.0",
  "subapp": {
    "id": "appname"
  }
}
  • Object config
module.exports = {
  name: 'appname',
  version: '1.1.0',
};
  • Function | Async Function config
module.exports = async () => {
  const name = await getName();
  const version = await getVersion();
  return {
    name,
    version,
  };
};