-
Notifications
You must be signed in to change notification settings - Fork 2
/
plopfile.js
40 lines (37 loc) · 2.27 KB
/
plopfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
'use strict';
const protoGenerator = require('./generators/proto-generator');
const serviceGenerator = require('./generators/service-generator');
const libraryGenerator = require('./generators/library-generator');
const swagGeneratorOldSpec = require('./generators/swag-generator-2.0');
const swagGenerator = require('./generators/swag-generator-3.0');
const openapiGenerator = require('./generators/openapi-generator-3.0');
const adapterPayoutGenerator = require('./generators/adapter-payout-generator');
const adapterGenerator = require('./generators/adapter-generator');
const equalsConditionHelper = require('./helpers/equals-condition-helper');
const pathHelper = require('./helpers/path-helper');
const packageCase = require('./helpers/package-case-helper');
const adapterPayoutDirCase = require('./helpers/adapter/payout/adapter-dir-case-helper');
const adapterPayoutPackageCase = require('./helpers/adapter/payout/adapter-package-case-helper');
const adapterAcquiringDirCase = require('./helpers/adapter/acquiring/adapter-dir-case-helper');
const adapterAcquiringPackageCase = require('./helpers/adapter/acquiring/adapter-package-case-helper');
const chalk = require('chalk');
module.exports = function (plop) {
plop.setWelcomeMessage(chalk.blue("КАКОЙ ") + chalk.red("ПРОЕКТ ") + chalk.blue("ВАМ ") + chalk.red("ЗАПИЛИТЬ???"));
// helpers
plop.addHelper('if_eq', equalsConditionHelper);
plop.addHelper('pathHelper', pathHelper);
plop.addHelper('packageCase', packageCase);
plop.addHelper('adapterPayoutDirCase', adapterPayoutDirCase);
plop.addHelper('adapterPayoutPackageCase', adapterPayoutPackageCase);
plop.addHelper('adapterAcquiringDirCase', adapterAcquiringDirCase);
plop.addHelper('adapterAcquiringPackageCase', adapterAcquiringPackageCase);
// generators
plop.setGenerator('java-proto', protoGenerator);
plop.setGenerator('java-service', serviceGenerator);
plop.setGenerator('java-library', libraryGenerator);
plop.setGenerator('java-adapter', adapterGenerator);
plop.setGenerator('java-adapter-payout', adapterPayoutGenerator);
plop.setGenerator('swag-template-2.0', swagGeneratorOldSpec);
plop.setGenerator('swag-template-3.0', swagGenerator);
plop.setGenerator('openapi-template-3.0', openapiGenerator);
};