https://github.com/rubenv/js-validate
JSHint wrapper + validation profiles
https://github.com/rubenv/js-validate
Last synced: 8 months ago
JSON representation
JSHint wrapper + validation profiles
- Host: GitHub
- URL: https://github.com/rubenv/js-validate
- Owner: rubenv
- Created: 2011-06-22T13:38:36.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2011-11-10T15:21:13.000Z (over 14 years ago)
- Last Synced: 2024-12-30T12:46:36.650Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 117 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
How to use this in a project:
Add it as a submodule:
$ git submodule add git://github.com/rubenv/js-validate.git tools/js-validate
Add a Makefile such as:
BASEDIR=./tools/js-validate
BACKEND_FILES=app/backend/*.js app/backend/*/*.js
CLIENT_FILES=public/js/app.js
all:
$(BASEDIR)/run.js node $(BACKEND_FILES)
$(BASEDIR)/run.js browser $(CLIENT_FILES)
The first argument specifies the profile, followed by the files to validate.
Remember, this is a submodule with this setup, so when you clone a repository
that contains this, be sure to run:
git submodule update --init