You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## <SlCloudDownloadstyle={{ display: 'inline', marginRight: '0.5rem', verticalAlign: 'middle' }} /> "Deploy" your plugin to a CDN
@@ -63,19 +64,22 @@ To get started quickly, we can use github's mirrored assets on the jsdelivr CDN.
63
64
##### 2. Upload the new assets to your forked mocked-cdn-assets repository
64
65
1. Create a new directory within `development/widgets/@1fe/starter-kit` of your forked repo. The directory name should be the next bumped version. (e.g `1.0.2`).
65
66
66
-
2. Upload the contents of the `dist` folder from your local `widgets/app1` directory to the new directory.
67
+
2. Upload the contents of the `1fe-widget-starter-kit/dist/` directory to the new directory.
67
68
68
-

69
+

69
70
70
71
3. Push these changes to your forked repository.
71
72
72
-
4. Confirm that the assets are publicly accessible by visiting this jsdelivr cdn location. Replace with your gh username and version: `https://cdn.jsdelivr.net/gh/<your-github-username>/mock-cdn-assets/development/widgets/@1fe/starter-kit/<version>/js/1fe-bundle.js`.
73
+
4. Confirm that the assets are publicly accessible by visiting this jsdelivr cdn location. Replace with your gh username and version:

143
147
144
148
:::note
145
-
**In an ideal-state:**
149
+
**In an ideal-state:**
146
150
- There should be proper CDN hosting for Live Configurations and widget assets.
147
151
- Each widget should live in their own repository.
148
152
- Each widget should own CI/CD pipelines that upload assets to CDN and bump release versions on merge. (Templates Coming Soon! <SlRocketstyle={{ display: 'inline', marginRight: '0.5rem', verticalAlign: 'middle' }} /> )
Copy file name to clipboardExpand all lines: src/content/docs/getting-started/local-development.mdx
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,22 +10,23 @@ import { FcOk } from "react-icons/fc";
10
10
11
11
## <SlWrenchstyle={{ display: 'inline', marginRight: '0.5rem', verticalAlign: 'middle' }} /> Need to develop locally?
12
12
13
-
##### 1. Run `yarn dev` in `widgets/app1`
13
+
##### 1. Run `yarn dev` in `1fe-widget-starter-kit/`
14
14
15
15
```bash
16
-
cd widgets/app1 && yarn dev
16
+
cd 1fe-widget-starter-kit
17
+
yarn dev
17
18
```
18
19
19
20
1FE CLI will serve the widget bundle at `http://localhost:8080/js/1fe-bundle.js`
20
21
21
-
##### 2. Visit `http://localhost:3001/app1` and click the `{...}` button at the bottom right corner of the screen. 
22
+
##### 2. Visit `http://localhost:3001/app1` and click the `{...}` button at the bottom right corner of the screen. 
22
23
23
24
##### 3. Search for `@1fe/starter-kit` within the shelf and select the matching module
24
25
25
-

##### 5. <FcOkstyle={{ display: 'inline', marginRight: '0.5rem', verticalAlign: 'middle' }} /> Make changes toy our widget and observe the changes in the browser.
0 commit comments