Giter Site home page Giter Site logo

parsley.js's Introduction

#Parsley.js

Build Status

Javascript form validation, without actually writing a single line of javascript!

#TODOs

See TODO.md

#Curent Stable Version

1.1.16

Browser compatibility

  • IE 7/8 (with jQuery < 2.x.x, parsley.min, not parsley.standalone)
  • IE 9+ (latest jQuery and Zepto)
  • FF 14+
  • Chrome

Requirements

jQuery 1.6+

#Install dependencies for documentation and tests

bower install jquery bower install bootstrap

#Run tests

  • In your browser: go to tests/index.html
  • Headless tests: install mocha-phantomjs with npm: npm install -g mocha-phantomjs and then run ./bin/test-suite.sh

#Make production minified versions

You'll need ruby, and Google Closure compiler: gem install closure-compiler. Then, just call:

  • Linux/Mac: ./bin/build.sh version where version is the build release. eg: ./bin/build.sh 1.1.2
  • Windows: ./bin/build.ps1 version where version is the build release. eg: ./bin/build.ps1 1.1.2

They'll be created and dumped in the dist/ directory

#Contribute!

##Validators

Add new validators in parsley.extend.js and minify it. No validators will be allowed directly into parsley.js (but great validators could move from extra to parsley ;))

##Localization

If file does not exist, create it into ì18n/ directory with same syntax as others.
Reference file is _messages.en.fr

##Integrations

Create integration with other framework as a separate Github repo and send a pull request for including here.
Some integrations are

Global

  • fork repository
  • add your changes to parsley.js
  • add / update tests to test suite (tests/index.html / tests/tests.js)
  • run tests (see above)
  • create new minified versions with minify script (see above) (use next tag-dev as version. Ie: if 1.1.1, use 1.1.2-dev)
  • make a Pull Request!

#Licence

See LICENCE.md

parsley.js's People

Contributors

guillaumepotier avatar catearcher avatar danbentley avatar alrusdi avatar cfurrow avatar joostvanderborg avatar chiefjester avatar prikhi avatar gmajoulet avatar dflock avatar ajb avatar tymek avatar blackwatertepes avatar tompi avatar saevarom avatar shabda avatar p0wl avatar magnuswinter avatar klw0 avatar jiripospisil avatar cedricgatay avatar cadu avatar anson0370 avatar gutek avatar janil avatar leonicolas avatar marcbc avatar seanparmelee avatar seiryuz avatar dubcanada avatar

Watchers

 avatar James Cloos avatar

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.