'use strict';
const Blueprint = require('../../lib/models/blueprint');
module.exports = {
description: 'Generates a relative proxy to another server.',
anonymousOptions: [
'local-path',
'remote-url',
],
locals(options) {
let proxyUrl = options.args[2];
return {
path: `/${options.entity.name.replace(/^\//, '')}`,
proxyUrl,
};
},
beforeInstall(options) {
let serverBlueprint = Blueprint.lookup('server', {
ui: this.ui,
analytics: this.analytics,
project: this.project,
});
return serverBlueprint.install(options);
},
afterInstall() {
return this.addPackagesToProject([
{ name: 'http-proxy', target: '^1.1.6' },
]);
},
};
# |
Change |
User |
Description |
Committed |
|
#1
|
23539 |
jenbottom |
Adding the basic code for ember test appk, created with 'ember new' command |
|
|