GithubHelp home page GithubHelp logo

caldera-js's Introduction

Caldera JS

This is the Caldera (Forms) 2.0 JavaScript framework.

This is not a WordPress plugin.

Packages

Development

Install for development

Mock Server

  • To start the mock data server:

    • yarn start:mock-server
  • Endpoints:

    • http://localhost:8080/stripe/plans.json List plans
    • http://localhost:8080/stripe/account.json Account details
    • http://localhost:8080/stripe/create-plan.json create subscription plans

Testing

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

Storybook

  • Start Both Storybooks
    • yarn test
  • Start Components Storybook
    • yarn storybook:components
  • Start Forms Storybook
    • yarn storybook:forms

Linting

  • Lint and fix fixable issues in forms and components
    • yarn lint:fix
  • Lint forms and components
    • yarn lint

Using Mono Repo

  • 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

  • Publish updates to all packages

    • yarn release

caldera-js's People

Contributors

shelob9 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

caldera-js's Issues

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.