GithubHelp home page GithubHelp logo

aadzl / caldera-forms Goto Github PK

View Code? Open in Web Editor NEW

This project forked from calderawp/caldera-forms

0.0 3.0 0.0 24.17 MB

Drag and drop, responsive WordPress form builder.

Home Page: https://CalderaForms.com

License: GNU General Public License v2.0

JavaScript 45.09% CSS 6.52% Shell 0.10% PHP 47.88% Vue 0.41%

caldera-forms's Introduction

Caldera-Forms

Drag & Drop WordPress Responsive Form Builder

Docs, Add-ons & More Information:

Development

Contributor Guidleines

Install for development

Requires: git, npm, Grunt.

  • Clone repo to plugin directory
  • Switch directory
    • cd Caldera-Forms.git
  • npm install
    • npm i

Build For Release

To create a build to ship to WordPress.org: npm run 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.

JavaScript Development

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.

  • Clients:

    • pro - The Caldera Forms Pro admin page and tab in the editor.
    • blocks - The Gutenberg block(s).
    • admin - The main admin page. Work in progress, not used in plugin.
    • viewer - The entry viewer. Work not in progress, not used in plugin.
    • editor - Theoretical.
  • Build for development and start watcher.

    • npm run dev
  • Build for production

    • npm run build:webpack

/assets/

This is the old stuff, built with grunt.

  • Build for development and start watcher.
    • npm run dev:grunt
  • Build for production
    • npm run build:grunt

Test Environment

All PHP tests are based off of the WordPress "unit" test suite, and therefore need a full WordPress test environment. The install script in '/bin' is pretty standard and should work with VVV or whatever.

Alternatively, because this, isn't 2014, you can use the provided Docker environment.

Requirements

Commands

  • composer wp-install - Installs Docker-based test environment.
  • composer wp-start - Starts Docker-based test environment.
  • composer wp-tests - Runs phpunit inside of Docker container.
  • composer wp-stop - Stops Docker-based test environment, without destroying containers.
  • composer wp-remove - Stops Docker-based test environment and destroys containers.

Release To WordPress.org

Requires

Steps

  • Build release file
    • npm package
  • Push Tag to WordPress.org
    • cd bin
    • bash deploy-wp-org-tag.sh 12345 christiechirinos
  • Install tag using WP Rollback on QA site and re-run Ghost Inspector tests.
  • Copy tag to trunk
    • bash deploy-wp-org-trunk.sh 12345 christiechirinos

Notes

  • This assumes your WordPress.org username is christiechirinos, and your password is 12345.
  • The first argument is password, which is required. The second argument is username, which defaults to Shelob9, which is Josh's username.

Contributing/ Using This Repo, Etc.

Contributing/ Using This Repo, Etc.

  • The default branch is "master" that should be the same as WordPress.org.
  • Development happens on the "develop" branch.
  • If you find a bug, or would like to make a feature request, please open an issue.
  • If you fixed a bug, or made a new feature, please submit a pull request against the develop branch.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.