Skip to content

Instantly share code, notes, and snippets.

@jakecraige
Last active August 29, 2015 14:06
Show Gist options
  • Save jakecraige/a23138e44f5a71f8eb39 to your computer and use it in GitHub Desktop.
Save jakecraige/a23138e44f5a71f8eb39 to your computer and use it in GitHub Desktop.
'use strict';
var path = require('path');
var commands = require('./lib/commands');
var postBuild = require('./lib/tasks/post-build');
module.exports = {
name: 'ember-cli-cordova',
blueprintsPath: function() {
return path.join(__dirname, 'blueprints');
},
includedCommands: function() {
return commands;
},
cdvConfig: function() {
var config = this.project.config('development');
if (config.cordova) {
return config.cordova
}
return {};
},
postBuild: function() {
return postBuild(this.project, this.cdvConfig())();
}
};
//after init sets it
{ app: 'app',
styles: 'app/styles',
templates: 'app/templates',
addon: 'addon',
'addon-styles': 'addon/styles',
'addon-templates': 'addon/templates',
vendor: 'vendor-addon',
'test-support': 'test-support',
public: 'public' }
// when tree for is called
{ app: 'app-addon',
styles: 'app/styles',
templates: 'app-addon/templates',
addon: 'addon',
'addon-styles': 'addon/styles',
'addon-templates': 'addon/templates',
vendor: 'vendor-addon',
'test-support': 'test-support',
public: 'public' }
version: 0.0.44-master-431aad32f5
app tree
{ app: 'app-addon',
styles: 'app/styles',
templates: 'app-addon/templates',
addon: 'addon',
'addon-styles': 'addon/styles',
'addon-templates': 'addon/templates',
vendor: 'vendor-addon',
'test-support': 'test-support',
public: 'public' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment