This is the Caldera (Forms) 2.0 JavaScript framework.
This is not a WordPress plugin.
- @calderawp/components
- Status: Functional beta.
- UI Components
- @calderawp/forms
- Status: Functional(ish) beta.
- Forms
- demo
- Demo for components/ forms
- @calderawp/server
- Status: Not usefully functional yet.
- Routers
- Proxies
- Services
Install for development
- git clone
git clone
- Install - no not use npm, use Yarn!
yarn install
- Demo app assumes Caldera Forms Local Development Server is running.
-
To start the mock data server:
yarn start:mock-server
-
Endpoints:
http://localhost:8080/stripe/plans.json
List planshttp://localhost:8080/stripe/account.json
Account detailshttp://localhost:8080/stripe/create-plan.json
create subscription plans
Testing tools:
-
Jest - Unit tests, assertions and test runner.
-
react-test-renderer Basic React rendering for unit tests. Run by Jest.
-
Enzyme - More advanced React rendering for isolated DOM testing and other integration tests. Run by Jest.
-
Run all tests of all packages
yarn test
-
Test Components
yarn test:components
-
Test Forms
yarn test:forms
-
Test Server
yarn test:server
-
Test forms once for CI
yarn test:forms-ci
-
Test components once for CI
yarn test:components-ci
- Start Both Storybooks
yarn test
- Start Components Storybook
yarn storybook:components
- Start Forms Storybook
yarn storybook:forms
- Lint and fix fixable issues in forms and components
yarn lint:fix
- Lint forms and components
yarn lint
-
Add A Package To A Component
yarn workspace @calderajs/components add react
yarn workspace @calderajs/forms add react
yarn workspace @calderajs/demo add react
-
Make publishable with lerna
- Add to package.json of the package:
{ "publishConfig": { "access": "public" } }
- Lerna Publish Command
- Lerna Publish Command README
- Add to package.json of the package:
-
Publish updates to all packages
yarn release