Drag & Drop WordPress Responsive Form Builder
Requires: git, yarn, Grunt.
git clone git@github.com:CalderaWP/Caldera-Forms.git
cd Caldera-Forms.git
yarn i && composer install
composer dev:install
To create a build to ship to WordPress.org:
yarn package
This creates /build/<version>
where <version>
is the current version set in package.json
. This creates a directory you can ZIP up for testing or whatever.
See "Release To WordPress.org" section below for more details on pushing this build to WordPress.org.
[See automated testing docs for more information on directory structure, in regards to JavaScript test files]()
Run watcher for development to auto-compile JavaScript and CSS.
/clients/
This is the new stuff, built with webpack. Eventually everything UI will be here.
/assets/
This is the old stuff, built with grunt.
yarn dev:grunt
yarn build:legacy
composer test:php
- Run PHP tests -- isolated unit tests and the WordPress integration tests.composer dev:install
- Installs dependencies, Docker-based test environment and sets up test forms.composer dev:destroy
- Deletes dependencies and the Docker-based test environment.composer wp:install
- Installs Docker-based test environment.composer wp:start
- Starts Docker-based test environment and echos the server's url.composer wp:server-start
- Starts Docker-based test environment.composer wp:server-url
- Echos the Docker-based test environment's server url.composer wp:activate
- Activate plugins in Docker-based environment.composer wp:tests
- Runs the PHP integration tests using phpunit inside Docker-based environment.composer wp:stop
- Stops Docker-based test environment, without destroying containers.composer wp:destroy
- Removes (including the database) the test environment and destroys containers.composer test:unit
- Run php unit tests.composer test:setup
- Adds test forms and puts them on pages.composer test:delete
- Delete test forms and pages the are on.composer nuke
- Deletes dependencies, including lock files --yarn and Composer.yarn test
- Run JavaScript test watcheryarn build
- Build all JavaScript and CSS for productionyarn build:blocks
- Build blocks JavaScript and CSS for productionyarn build:clients
- Build other JavaScript and CSS for production.yarn start
- Start dev server for clients that are not blocks and run watcher.yarn start:blocks
- Start dev server for blocks and run watcher.yarn start:clients
- Start dev server for other clients and run watcher.yarn test:once
- Run JavaScript unit tests onceyarn test:e2e
- Start Cypress e2e test runner.yarn test:e2e:ci
- Trigger Cypress.io test record.Probably don't use these directly. They will change. Must be prefaced with docker-compose run --rm cli
wp cf import-test-forms
- Import test formswp cf delete-test-forms
- Delete test formswp cf create-test-pages
- Import test pageswp cf delete-test-pages
- Delete test pagesnpm install -g grunt-cli
yarn package
cd bin
bash deploy-wp-org-tag.sh 12345 christiechirinos
bash deploy-wp-org-trunk.sh 12345 christiechirinos
christiechirinos
, and your password is 12345
.Shelob9
, which is Josh's username.