-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 7fc96ec
Showing
51 changed files
with
11,506 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
language: node_js | ||
node_js: | ||
- "0.10" | ||
before_script: | ||
- npm install -g gulp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
'use strict'; | ||
|
||
var gulp = require('gulp'); | ||
var sourcemaps = require('gulp-sourcemaps'); | ||
var plugins = require('gulp-load-plugins')(); | ||
var gutil = require('gulp-util'); | ||
var qunit = require('gulp-qunit'); | ||
var shell = require('gulp-shell'); | ||
var merge = require('merge-stream'); | ||
var size = require('gulp-check-filesize'); | ||
|
||
var build = { | ||
filename: 'rekord-validation.js', | ||
minified: 'rekord-validation.min.js', | ||
output: './build/', | ||
include: [ | ||
'./src/header.js', | ||
'./src/lib/**/*.js', | ||
'./src/footer.js' | ||
] | ||
}; | ||
|
||
var executeMinifiedBuild = function(props) | ||
{ | ||
return function() { | ||
return gulp | ||
.src( props.include ) | ||
.pipe( sourcemaps.init() ) | ||
.pipe( plugins.concat( props.minified ) ) | ||
.pipe( plugins.uglify().on('error', gutil.log) ) | ||
.pipe( sourcemaps.write('.') ) | ||
.pipe( size({enableGzip: true}) ) | ||
.pipe( gulp.dest( props.output ) ) | ||
; | ||
}; | ||
}; | ||
|
||
var executeBuild = function(props) | ||
{ | ||
return function() { | ||
return gulp | ||
.src( props.include ) | ||
.pipe( plugins.concat( props.filename ) ) | ||
.pipe( size({enableGzip: true}) ) | ||
.pipe( gulp.dest( props.output ) ) | ||
; | ||
}; | ||
}; | ||
|
||
var executeTest = function(file) | ||
{ | ||
return function() { | ||
return gulp.src( file ).pipe( qunit() ); | ||
}; | ||
}; | ||
|
||
gulp.task( 'docs', shell.task(['./node_modules/.bin/jsdoc -c jsdoc.json'])); | ||
gulp.task( 'clean', shell.task(['rm -rf build/*.js', 'rm -rf build/*.map'])); | ||
gulp.task( 'test', executeTest( './test/index.html' ) ); | ||
|
||
gulp.task( 'js:min', executeMinifiedBuild( build ) ); | ||
gulp.task( 'js', executeBuild( build ) ); | ||
gulp.task( 'default', ['js:min', 'js']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License | ||
|
||
Copyright (c) 2015-2016 Magnos, LLC. https://github.com/Rekord/rekord-validation | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# <img src="https://raw.githubusercontent.com/Rekord/rekord/master/images/rekord-color.png" width="60"> Rekord Validation | ||
|
||
[](https://travis-ci.org/Rekord/rekord-validation) | ||
[](https://david-dm.org/Rekord/rekord-validation#info=devDependencies) | ||
[](https://david-dm.org/Rekord/rekord-validation) | ||
[](https://github.com/Rekord/rekord-validation/blob/master/LICENSE) | ||
[]() | ||
|
||
Rekord is a javascript REST ORM that is offline and real-time capable. | ||
|
||
rekord-validation adds rules, expressions, transforms, and custom validation functionality. | ||
|
||
**Installation** | ||
|
||
The easiest way to install rekord-validation is through bower via `bower install rekord-validation`. | ||
|
||
- rekord-validation.js is `46KB` (`7.55KB` gzipped) | ||
- rekord-validation.min.js is `18KB` (`5.24KB` gzipped) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "rekord-validation", | ||
"version": "1.0.0", | ||
"homepage": "https://github.com/Rekord/rekord-validation", | ||
"authors": [ | ||
"Philip Diffenderfer <[email protected]>" | ||
], | ||
"description": "Advanced validation rules for rekord", | ||
"main": "build/rekord-validation.js", | ||
"keywords": [ | ||
"javascript", | ||
"orm", | ||
"offline", | ||
"realtime", | ||
"validation" | ||
], | ||
"license": "MIT", | ||
"ignore": [ | ||
"**/.*", | ||
"node_modules", | ||
"bower_components", | ||
"test", | ||
"tests" | ||
] | ||
} |
Oops, something went wrong.