Skip to content
This repository was archived by the owner on Apr 11, 2023. It is now read-only.

Commit 895bdba

Browse files
committed
Merge branch 'development' of https://github.com/jaydata/jaydata into development
2 parents 6e093a0 + fcc8187 commit 895bdba

File tree

4 files changed

+28
-23
lines changed

4 files changed

+28
-23
lines changed

dist/package.json

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,7 @@
7272
"type": "git",
7373
"url": "git+ssh://[email protected]/jaydata/jaydata.git"
7474
},
75-
"licenses": [
76-
{
77-
"type": "MIT",
78-
"url": "http://jaydata.org/licensing"
79-
},
80-
{
81-
"type": "GPLv2",
82-
"url": "http://jaydata.org/licensing"
83-
}
84-
],
75+
"license": "(MIT OR GPL-2.0)",
8576
"bugs": {
8677
"url": "https://github.com/jaydata/jaydata/issues"
8778
},

gulpfile.js

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ var buffer = require('vinyl-buffer');
2020
var fs = require('fs');
2121
var karma = require('karma').server;
2222
var exec = require('child_process').exec;
23+
var eslint = require('gulp-eslint');
2324

2425
config.options = minimist(process.argv.slice(2), config.buildDefaultOptions);
2526
var paths = {
@@ -74,7 +75,29 @@ gulp.task('sqliteprovider', function() {
7475
.pipe(gulp.dest('./dist/public/jaydataproviders'));
7576
});
7677

77-
gulp.task('bundle', ['jaydata', 'odataprovider', 'sqliteprovider'])
78+
gulp.task('lint', function(){
79+
return gulp.src(['src/**/*.js'])
80+
.pipe(eslint({
81+
parser: 'babel-eslint',
82+
env: {
83+
browser: true,
84+
node: true,
85+
es6: true
86+
},
87+
ecmaFeatures: {
88+
modules: true
89+
},
90+
rules: {
91+
'no-undef': 1,
92+
'no-unused-vars': 1,
93+
'no-use-before-define': 1
94+
}
95+
}))
96+
.pipe(eslint.format())
97+
.pipe(eslint.failAfterError());
98+
});
99+
100+
gulp.task('bundle', ['lint', 'jaydata', 'odataprovider', 'sqliteprovider'])
78101

79102
gulp.task('nodejs', function() {
80103
return gulp.src(['src/**/*.js'])

package.json

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,10 @@
7070
"engines": {
7171
"node": ">=0.6.0"
7272
},
73-
"licenses": [
74-
{
75-
"type": "MIT",
76-
"url": "http://jaydata.org/licensing"
77-
},
78-
{
79-
"type": "GPLv2",
80-
"url": "http://jaydata.org/licensing"
81-
}
82-
],
73+
"license": "(MIT OR GPL-2.0)",
8374
"devDependencies": {
8475
"babel": "^5.8.23",
76+
"babel-eslint": "^4.1.3",
8577
"babelify": "^6.3.0",
8678
"browserify": "^11.2.0",
8779
"browserify-derequire": "^0.9.4",
@@ -92,6 +84,7 @@
9284
"gulp-closure-compiler": "^0.3.1",
9385
"gulp-concat": "^2.5.2",
9486
"gulp-derequire": "^2.1.0",
87+
"gulp-eslint": "^1.0.0",
9588
"gulp-header": "^1.2.2",
9689
"gulp-rename": "^1.2.2",
9790
"gulp-replace": "^0.5.3",

src/TypeSystem/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ import Converter from './Types/Converter.js';
1414
import { Guard as _guard } from './utils.js';
1515
import _exception from './Exception.js';
1616

17-
18-
1917
export var Guard = _guard;
2018
$data.Guard = _guard;
2119

0 commit comments

Comments
 (0)