Git Product home page Git Product logo

ember-cli-deploy-json-config's Introduction

Ember CLI Deploy

Build Status Code Climate

Simple, flexible deployment for your Ember CLI app

Installation

ember install ember-cli-deploy

Quick start

After installation, choose plugins matching your deployment environment, configure your deployment script appropriately and you're ready to start deploying.

In-depth documentation

Visit the Docs site

Contributing

Clone the repo and run npm install. To run tests,

npm test

ember-cli-deploy-json-config's People

Contributors

achambers avatar amiel avatar cmcculler avatar ember-tomster avatar ghedamat avatar jrjohnson avatar lukemelia avatar robinvdvleuten avatar tsteuwer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ember-cli-deploy-json-config's Issues

improve definition of custom selector

as noted by @achambers in #14

Maybe what the real change needed here is a better way to define custom selectors....At the moment you either use the defaults or override the jsonBlueprint property, which means you'd need to duplicate the current default selectors and add your new ones in.
Maybe we can look at a way to say, I want the default selectors and also these other custom selectors.

Respect outputPaths in ember-cli-build

I recently implemented this addon and noticed that the index.json output does not respect the outputPaths config setting in ember-cli-build.js. Here is a sample of my configuration and the resulting index.json output from ember deploy production:

// ember-cli-build.js
const isProduction = ( process.env.EMBER_ENV || 'development' ) === 'production';
const assetPath = isProduction ? '' : '/assets';

module.exports = function(defaults) {
  var app = new EmberApp(defaults, {
    outputPaths: {
      app: {
        html: 'index.html',
        css: {
          'app': assetPath + '/app.css'
        },
        js: assetPath + '/app.js'
      },
      vendor: {
        css: assetPath + '/vendor.css',
        js: assetPath + '/vendor.js'
      }
    }
  });
}
// config/deploy.js
var ENV = {
  build: {},
  'json-config': {
    jsonBlueprint(context, pluginHelper) {
      var jsonBlueprint = pluginHelper.readConfigDefault('jsonBlueprint');
      jsonBlueprint.script.includeContent = true;
      return jsonBlueprint;
    }
  }
};
// index.json
{
  "base": [],
  "meta": [],
  "link": [{
    "rel": "stylesheet",
    "href": "assets/vendor-13455b8fd285c046141dd54ae73890f8.css"
  }, {
    "rel": "stylesheet",
    "href": "assets/app-efe517a8fe179e4392e64c2a9ce8fe05.css"
  }],
  "script": [{
    "src": "assets/vendor-127d2a9b59896b5ddff4de18193179cb.js"
  }, {
    "src": "assets/app-774827c1c48acfbdb034cbc16d3f5fb7.js"
  }]
}

Missing asset-manifest meta

The generated index.html in build has a

<meta name="my-app/config/asset-manifest" content="%7B%22bundles%22%3A%7B%7D%7D" />

tag that is not transferred to the index.json file.

Pull index.html path from config if it exists

Currently, we're pulling the index.html path from the context.indexPath property provided by ember-cli-deploy-build. It would be nice to be able to specify this in the config as well, if wanted....

Config should override the context value

Documentation to mention additonal config if using gzip plugin

Love the plugin and the rest of ember-cli-deploy - thank you.

I just ran into an issue where my index.json file was gzipped along with other resources which obviously caused problems.

I don't believe this to be a bug but maybe worth adding to the docs / readme that if using in conjunction with ember-cli-deploy-gzip that you should add the following to your deploy.js file:

gzip: {
  ignorePattern: 'index.json'
}

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.