@webflow/webflow-cli 1.6.9 → 1.6.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.
- package/CHANGELOG.md +13 -0
- package/README.md +7 -0
- package/dist/index.js +173 -171
- package/dist/scaffolds/default/.eslintrc +25 -0
- package/dist/scaffolds/default/README.md +4 -3
- package/dist/scaffolds/default/package.json +10 -4
- package/dist/scaffolds/default/src/index.ts +7 -10
- package/dist/scaffolds/default/webflow.json +2 -1
- package/dist/scaffolds/react/.eslintrc +25 -0
- package/dist/scaffolds/react/README.md +1 -1
- package/dist/scaffolds/react/package.json +15 -4
- package/dist/scaffolds/react/public/index.html +1 -1
- package/dist/scaffolds/react/src/{main.js → index.tsx} +4 -5
- package/dist/scaffolds/react/tsconfig.json +17 -0
- package/dist/scaffolds/react/webflow.json +2 -1
- package/dist/scaffolds/react/webpack.config.mjs +6 -5
- package/dist/scaffolds/typescript-alt/.eslintrc +25 -0
- package/dist/scaffolds/typescript-alt/package.json +9 -4
- package/dist/scaffolds/typescript-alt/src/index.ts +2 -3
- package/dist/scaffolds/typescript-alt/webflow.json +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @webflow/webflow-cli
|
|
2
2
|
|
|
3
|
+
## 1.6.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updating Designer Extension templates and adding ESLint configs
|
|
8
|
+
|
|
9
|
+
## 1.6.10
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updating extension package to support feature flags
|
|
14
|
+
- Accept an optional `port` for `webflow extension serve`
|
|
15
|
+
|
|
3
16
|
## 1.6.9
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -16,9 +16,11 @@ npm i @webflow/webflow-cli -g
|
|
|
16
16
|
- [Devlink](#devlink)
|
|
17
17
|
|
|
18
18
|
## Webflow Designer Extensions and APIs
|
|
19
|
+
|
|
19
20
|
[Designer Extensions](https://docs.developers.webflow.com/v2.0.0/docs/apps-overview) are single-page web Apps that run inside of of the Webflow Designer, and manipulate elements on the canvas through [Webflow's Designer APIs.](https://docs.developers.webflow.com/v2.0.0/reference/introduction-1). You can use the Webflow CLI to develop and package your Designer Extensions.
|
|
20
21
|
|
|
21
22
|
### Creating an Extension
|
|
23
|
+
|
|
22
24
|
To create a new extension, use the `webflow extension init` command:
|
|
23
25
|
|
|
24
26
|
```shell
|
|
@@ -34,8 +36,13 @@ Navigate to the newly created folder for your extension. You can serve your exte
|
|
|
34
36
|
```shell
|
|
35
37
|
npm run dev
|
|
36
38
|
```
|
|
39
|
+
|
|
37
40
|
This will run the `webflow extension serve` and command, allowing you test your App locally.
|
|
38
41
|
|
|
42
|
+
#### Options
|
|
43
|
+
|
|
44
|
+
- `port` - Serve your extension at a specific port on localhost: `webflow extension serve 1234`
|
|
45
|
+
|
|
39
46
|
### Building and Bundling your Extension
|
|
40
47
|
|
|
41
48
|
If you're using the scaffolding built out from the `webflow extension init` command, you can create a build of your extension, an bundle it for publishing using the` npm run build` command:
|