You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/ui-v2/blueprints/model/index.js

38 lines
854 B

/*eslint node/no-extraneous-require: "off"*/
'use strict';
const path = require('path');
const isModuleUnificationProject = require('@ember-data/-build-infra/src/utilities/module-unification').isModuleUnificationProject;
module.exports = {
description: 'Generates a Consul HTTP ember-data model',
availableOptions: [],
root: __dirname,
fileMapTokens(options) {
if (isModuleUnificationProject(this.project)) {
return {
__root__() {
return 'src';
},
__path__(options) {
return path.join('data', 'models', options.dasherizedModuleName);
},
__name__() {
return 'model';
},
};
}
},
locals(options) {
// Return custom template variables here.
return {
};
}
// afterInstall(options) {
// // Perform extra work here.
// }
};