https://github.com/jelhan/ember-cli-deploy-corber
ember-cli-deploy plugin to build the project using corber
https://github.com/jelhan/ember-cli-deploy-corber
ember-cli-deploy-plugin
Last synced: about 2 months ago
JSON representation
ember-cli-deploy plugin to build the project using corber
- Host: GitHub
- URL: https://github.com/jelhan/ember-cli-deploy-corber
- Owner: jelhan
- License: mit
- Created: 2017-12-02T14:53:37.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-01-13T14:33:41.000Z (over 5 years ago)
- Last Synced: 2024-10-30T03:49:55.063Z (7 months ago)
- Topics: ember-cli-deploy-plugin
- Language: JavaScript
- Size: 116 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ember-cli-deploy-corber
[](https://travis-ci.org/jelhan/ember-cli-deploy-corber)
Plugin for ember-cli-deploy to build the project using [corber](http://corber.io/).
> This plugin is work in progress.
> It's only tested against android target platform so far.
> I would appreciate any feedback and pull requests.## Installation
* `ember install ember-cli-deploy-corber`
## Usage
```
// config/deploy.js
module.exports = function(deployTarget) {
let ENV = {
build: {},
corber: {
platform: 'android'
}
};if (deployTarget === 'development') {
ENV.build.environment = 'development';
ENV.corber.enabled = false;
}if (deployTarget === 'staging') {
ENV.build.environment = 'production';
}if (deployTarget === 'production') {
ENV.build.environment = 'production';
ENV.corber.release = true;
ENV.corber.keystore = process.env.ANDROID_KEYSTORE;
ENV.corber.storePassword = process.env.ANDROID_KEYSTORE_STORE_PASSWORD;
ENV.corber.alias = process.env.ANDROID_KEYSTORE_ALIAS;
ENV.corber.password = process.env.ANDROID_KEYSTORE_PASSWORD;
}return ENV;
};
```The plugin adds a `corber` key to build context, which provides paths to build artifacts under a platform specific key (e.g. `android`).
## Configuration
The plugin supports all options supported by `corber build`. Have a look at [corber docs](http://corber.io/pages/cli#build).
Additionally an `enabled` option controls if a corber build should be run. It defaults to `true`.
This plugin implements `didBuild` hook. If you run any modifications to generated web artifacts, make sure the modifications are executed before this plugin. Otherwise they won't effect corber builds. You should [customize plugin order](http://ember-cli-deploy.com/docs/v1.0.x/configuration/#advanced-plugin-configuration) if needed.
You could [include the plugin multiple times](http://ember-cli-deploy.com/docs/v1.0.x/including-a-plugin-twice/) to build for more than one platform.
## Related plugins
* [ember-cli-deploy-zipalign](https://github.com/jelhan/ember-cli-deploy-zipalign)