@40q/40q-cli 1.0.10 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/commands/Codegen/Generator.factory.js +11 -0
- package/dist/src/commands/Codegen/Generator.js +3 -0
- package/dist/src/commands/Codegen/Generators/BaseGeneratorOptions.js +4 -0
- package/dist/src/commands/Codegen/Prompts/PromptSrategy.js +5 -0
- package/dist/src/commands/Codegen/Prompts/PromptStrategy.factory.js +13 -0
- package/dist/src/commands/Setup/Setup.command.js +1 -1
- package/package.json +2 -2
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
class GeneratorFactory {
|
3
|
+
// private generators: Record<string, Generator>;
|
4
|
+
constructor(directory) {
|
5
|
+
this.directory = directory;
|
6
|
+
// this.generators = this.discoverGenerators();
|
7
|
+
}
|
8
|
+
discoverGenerators() {
|
9
|
+
// this.directory contains a bunch of files. Each file is called something.generator.ts. something is the key of the generator
|
10
|
+
}
|
11
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
// export class PromptStrategyFactory {
|
3
|
+
// static getStrategy(type: string): IPromptStrategy | null {
|
4
|
+
// switch (type) {
|
5
|
+
// case 'block':
|
6
|
+
// return new GutenbergPromptStrategy();
|
7
|
+
// case 'component':
|
8
|
+
// return new ReactComponentPromptStrategy();
|
9
|
+
// default:
|
10
|
+
// return null;
|
11
|
+
// }
|
12
|
+
// }
|
13
|
+
// }
|
@@ -40,7 +40,7 @@ class SetupCommand {
|
|
40
40
|
}
|
41
41
|
static setupEslint() {
|
42
42
|
console.log('Installing dependencies...');
|
43
|
-
(0, child_process_1.execSync)('yarn add --dev eslint @40q/eslint-config husky lint-staged');
|
43
|
+
(0, child_process_1.execSync)('yarn add --dev eslint @typescript-eslint/parser @typescript-eslint/eslint-plugin @40q/eslint-config husky lint-staged');
|
44
44
|
console.log('Creating .eslintrc.json...');
|
45
45
|
(0, child_process_1.execSync)(`echo '${eslintrc}' > .eslintrc.json`);
|
46
46
|
console.log('Creating .huskyrc.json...');
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@40q/40q-cli",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.11",
|
4
4
|
"description": "40q CLI tool",
|
5
5
|
"main": "index.js",
|
6
6
|
"bin": {
|
@@ -12,7 +12,7 @@
|
|
12
12
|
},
|
13
13
|
"scripts": {
|
14
14
|
"build": "tsc",
|
15
|
-
"deploy": "yarn build && yarn publish --access public"
|
15
|
+
"deploy": "yarn build && yarn publish --access public && git push"
|
16
16
|
},
|
17
17
|
"author": "40q <info@40q.agency> (https://40q.agency/)",
|
18
18
|
"license": "ISC",
|