4
4
*/
5
5
6
6
import { writeFileSync } from "fs" ;
7
- import { kebabCase , pascalCase } from "../../libs/utils/util-string" ;
8
- import { nthAdjust } from "../../libs/ext-ramda" ;
9
- import { getArgValidationErrors } from "./validations" ;
10
- import { makePluginPath } from "./path-builder" ;
11
- import { makeComponentContents , makePluginContents , makePackageJsonContents } from "./content-builder" ;
12
- import { refreshRegistry } from "./register" ;
7
+ import {
8
+ kebabCase ,
9
+ pascalCase ,
10
+ } from "../../../../../../javascriptv3/example_code/libs/utils/util-string.js" ;
11
+ import { nthAdjust } from "../../../../../../javascriptv3/example_code/libs/ext-ramda.js" ;
12
+ import { getArgValidationErrors } from "./validations.js" ;
13
+ import { makePluginPath } from "./path-builder.js" ;
14
+ import {
15
+ makeComponentContents ,
16
+ makePluginContents ,
17
+ makePackageJsonContents ,
18
+ } from "./content-builder.js" ;
19
+ import { refreshRegistry } from "./register.js" ;
13
20
import { execSync } from "child_process" ;
14
21
15
22
( async ( ) => {
@@ -24,10 +31,13 @@ import { execSync } from "child_process";
24
31
const path = makePluginPath ( pluginName ) ;
25
32
const pluginContents = makePluginContents ( pluginName ) ;
26
33
const componentContents = makeComponentContents ( pluginName ) ;
27
- const packageJsonContents = makePackageJsonContents ( pluginName )
34
+ const packageJsonContents = makePackageJsonContents ( pluginName ) ;
28
35
writeFileSync ( `${ path } /package.json` , packageJsonContents ) ;
29
36
writeFileSync ( `${ path } /index.ts` , pluginContents ) ;
30
- writeFileSync ( `${ path } /${ pascalCase ( pluginName ) } Component.tsx` , componentContents ) ;
37
+ writeFileSync (
38
+ `${ path } /${ pascalCase ( pluginName ) } Component.tsx` ,
39
+ componentContents
40
+ ) ;
31
41
writeFileSync ( `${ path } /.gitignore` , "node_modules" ) ;
32
42
execSync ( `npm i file:src/plugins/${ pluginName } ` ) ;
33
43
refreshRegistry ( ) ;
0 commit comments