v1.6.0
-
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,
};
};