@40q/40q-cli 1.0.9 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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,3 @@
1
+ "use strict";
2
+ // export interface Generator {
3
+ // }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // export interface BaseGeneratorOptions {
3
+ // name: string;
4
+ // }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ // import { BaseGeneratorOptions} from '@/commands/Codegen/Generators/BaseGeneratorOptions'
3
+ // export interface PromptStrategy {
4
+ // prompt(): Promise<BaseGeneratorOptions>;
5
+ // }
@@ -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.9",
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",
@@ -4,7 +4,7 @@ namespace App\Blocks;
4
4
 
5
5
  use BlockHandler\Contracts\BlockHandler;
6
6
 
7
- class {{camelCaseName}} extends BlockHandler
7
+ class {{camelCaseName}} implements BlockHandler
8
8
  {
9
9
  public function __invoke($block_content, $block)
10
10
  {
@@ -4,7 +4,7 @@ namespace App\Blocks;
4
4
 
5
5
  use BlockHandler\Contracts\BlockHandler;
6
6
 
7
- class {{camelCaseName}} extends BlockHandler
7
+ class {{camelCaseName}} implements BlockHandler
8
8
  {
9
9
  public function __invoke($block_content, $block)
10
10
  {