Code Monkey home page Code Monkey logo

ember-cli-deploy-corber's Introduction

ember-cli-deploy-corber

Build Status

Plugin for ember-cli-deploy to build the project using corber.

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.

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 if needed.

You could include the plugin multiple times to build for more than one platform.

Related plugins

ember-cli-deploy-corber's People

Contributors

ember-tomster avatar jelhan avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.