open-consul/ui-v2/blueprints/repository/index.js
John Cowen 39010d2b76 ui: Adds ember-data blueprints for Consul specific HTTP adapter etc (#6461)
* ui: Adds ember-data blueprints for Consul specific HTTP adapter etc

These are currently quite Consul specific, but we also overwrite the
default model-test blueprint to keep the names consistent (dasherized)
for easy test filtering.

```
ember generate [adapter|serializer|model|repository|route] <name>
```
2019-12-18 12:26:42 +00:00

28 lines
464 B
JavaScript

'use strict';
const path = require('path');
module.exports = {
description: 'Generates a Consul repository',
availableOptions: [],
root: __dirname,
fileMapTokens(options) {
return {
__path__() {
return path.join('services', 'repository');
}
};
},
locals(options) {
// Return custom template variables here.
return {
};
}
// afterInstall(options) {
// // Perform extra work here.
// }
};