@wix/vibe-forms-plugin-files 0.32.1 → 0.32.2

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
@@ -1,47 +1,22 @@
1
- ## Implement components
2
1
 
3
- 1. first implement your headless compoenents
4
- 2. implement your componeents / ui components / pages, add them under `src/componenets/forms` and `src/componenets/ui/forms`. use your headless compoenents to implement your components
5
- 3. headless / ui (shadcn) guidelines: https://github.com/wix-incubator/headless-components/blob/main/docs/api/API.md
2
+ # Wix Vibe Forms Plugin Files
6
3
 
7
- Notes:
8
- Make sure your headless sdk packages (i.e. @wix/stores) are part of picasso main template package.json here: https://github.com/wix-private/picasso/blob/master/packages/picasso-template-image/main/package.json, otherwise PR or ask the picasso team to add them. Make sure it is a version that includes your headless components.
4
+ Produces a `.zip` file with ready to use Forms components.
9
5
 
6
+ ## Development
10
7
 
11
- # Test build of zip files to be used by plugin module:
12
- - build of this package should use something like `node scripts/build-zip.js` - it should only compress `compoentns/<forms>` and `components/ui/<forms>` folders.
13
- - Do not zip folders which do not include your vertical name.
14
- - Verify that a zip file is created successfully in dist/statics/
15
- - Verify that the zip is exported properly in index.js as `zipPath`
16
- - Note that the files and plugin packages are published to the public npm registry so bump the files' package version manually as the bump strategy is manual.
17
- - merge to master and make sure a new package is published (public npm registry)
18
- - use this package in `forms-plugin` and use the zip file from there to be used during the "install" step and copy the files over to the picasso template in runtime
19
- - In Falcon the dependency is resolved from the workspace but do this in order to verify it would work in Picasso too
8
+ ```bash
9
+ # Install dependencies
10
+ yarn install
20
11
 
21
- ## Testing over Wix Vibe main template:
12
+ # Build the plugin
13
+ yarn build
22
14
 
23
- 1. `npm run reset-template` (re-run this to reset it)
15
+ # Fix linting issues
16
+ yarn lint:fix
17
+ ```
24
18
 
25
- brings and resets the main Wix Wibe template for you to test your components over
19
+ ## Publishing new version
26
20
 
27
- 1. `npm run bootstrap`
21
+ Publish new version by bumping the package version in `package.json` manually. The version should be bumped for *all* forms plugins.
28
22
 
29
- This will initialize your dev site for your module:
30
- - Create a site
31
- - Create a headless component
32
- - Create a dev center component and install on the site
33
- - Create a wix.config.json (which you can commit and push, preferably add other team member as collaboratoes so they can access it too)
34
- - Create a .env.local file connected to your new site and app (this should not be pushed to Git)
35
- - In CI CD flow use [fire console](https://wix-bo.com/fire-console?artifact=com.wixpress.devcenter.apikeys.api-keys&service=com.wixpress.devcenter.apikeys.ApiKeys&method=CreateApiKey&body=%7B%22scopes%22%3A%5B%22SCOPE.WIX_CLI.ALL%22%5D%2C%22type%22%3A%22API_KEY%22%2C%22name%22%3A%22VerticalTestingApiKey%22%7D) in order to generate an API key you can use in order to perform login with `npx wix login --api-key <API KEY YOU GOT>` command
36
- - The site will serve as the site you use in order to view the business information you see when running locally
37
-
38
-
39
- 1. `npm run template-dev`
40
-
41
- Start the dev server allowing you to start coding, the repo is equipped with a set of cursor rules allowing you to develop the headless component easier, you can adjust them to your liking
42
-
43
- 1. `npm run template-check && npm run template-build` - to make sure there all your components play nicely over the Wix Vibe template
44
-
45
- # Testing your instructions with LLM (WIP):
46
- 1. open as an individual cursor project
47
- 1. ask agent: integrate all page components in src/components/forms to the main router. implement homepage.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/vibe-forms-plugin-files",
3
- "version": "0.32.1",
3
+ "version": "0.32.2",
4
4
  "main": "index.js",
5
5
  "unpkg": true,
6
6
  "files": [
@@ -176,5 +176,5 @@
176
176
  "vite-tsconfig-paths": "^5.1.4",
177
177
  "vitest": "3.1.4"
178
178
  },
179
- "falconPackageHash": "def371c7bab173db82334fbd19f94db69a254dc4d3efbc972ee31f50"
179
+ "falconPackageHash": "9a19a973ef4bf39ad4c9276941ebadb11e90763bc916e8ed1ccb81bd"
180
180
  }