app-studio 0.1.32 → 0.1.36

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.
package/README.md CHANGED
@@ -139,7 +139,7 @@ function Example() {
139
139
  - Use `jscodeshift` to run the transformation:
140
140
 
141
141
  ```bash
142
- npx jscodeshift -t codemod/to-app-studio.ts <path_to_your_js_or_tsx_files> --assetsDir=src/assets --assetsUrl=/assets
142
+ npx @app-studio/codemod to-app-studio <path_to_your_js_or_tsx_files> --assetsDir=src/assets --assetsUrl=/assets
143
143
  ```
144
144
 
145
145
  Replace `<path_to_your_js_or_tsx_files>` with the actual path to your JavaScript/TypeScript files.
package/codemod/README.md CHANGED
@@ -5,7 +5,7 @@ Provides Codemod transformations to help with code upgrade and migration.
5
5
  ## Usage
6
6
 
7
7
  ```sh
8
- npx @app-studio/codemod <transform> <path
8
+ npx @app-studio/codemod <transform> <path>
9
9
  ```
10
10
 
11
11
  - `transform` - name of the transform
@@ -15,38 +15,41 @@ npx @app-studio/codemod <transform> <path
15
15
 
16
16
  ## Codemods
17
17
 
18
- ### `to-reflexjs`
18
+ ### `to-app-studio`
19
19
 
20
- This Codemod migrates your `@app-studio/components` code to `app-studio` code.
20
+ This Codemod migrates your components code to `app-studio` code.
21
21
 
22
22
  ```js
23
- npx @reflexjs/codemod to-app-studio
23
+ npx @app-studio/codemod to-app-studio
24
24
  ```
25
25
 
26
26
  Example:
27
27
 
28
- ```jsx
29
- import { Div, H1, Button } from "@app-studio/components"
30
28
 
29
+ ```jsx
31
30
  export default function () {
32
31
  return (
33
- <Div d="flex">
34
- <H1>This is a heading</H1>
35
- <Button variant="primary lg">Button</Button>
36
- </Div>
32
+ <div style={{display:"flex"}}>
33
+ <h1 >This is a heading</h1>
34
+ <button>Button</button>
35
+ </div>
37
36
  )
38
37
  }
39
38
  ```
40
39
 
40
+
41
41
  Will be transformed to:
42
42
 
43
- ```jsx
43
+
44
+ ```tsx
45
+ import { Div, H1, Button } from "@app-studio/web"
46
+
44
47
  export default function () {
45
48
  return (
46
- <div display="flex">
47
- <h1 variant="heading.h1">This is a heading</h1>
48
- <button variant="button.primary.lg">Button</button>
49
- </div>
49
+ <Div display="flex">
50
+ <H1>This is a heading</H1>
51
+ <Button>Button</Button>
52
+ </Div>
50
53
  )
51
54
  }
52
- ```
55
+ ```