Skip to content

Commit

Permalink
Added kendo_lint linter.
Browse files Browse the repository at this point in the history
Removed kendo-ui-core from bower dependencies (too large to download).
Updated pouchdb-collate version.
  • Loading branch information
viskin committed Jun 15, 2015
1 parent a32f49a commit bd5c991
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 39 deletions.
35 changes: 22 additions & 13 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
module.exports = function(grunt) {

grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-jasmine');


// Load grunt tasks automatically
require('load-grunt-tasks')(grunt);

var lintFiles = ['Gruntfile.js', 'kendo-pouchdb.js', 'kendo-pouchdb.amd.js',
'tests/spec/*.js', 'tests/*.js'
];

grunt.initConfig({

pkg: grunt.file.readJSON('package.json'),

uglify: {
options: {
sourceMap: true,
Expand All @@ -25,12 +28,18 @@ module.exports = function(grunt) {
dest: 'dist/kendo-pouchdb.amd.min.js'
}
},

jshint: {
all: ['Gruntfile.js', 'kendo-pouchdb.js', 'kendo-pouchdb.amd.js',
'tests/spec/*.js', 'tests/*.js']
all: lintFiles
},


kendo_lint: {
options: {
force: true
},
files: lintFiles
},

jasmine: {
all: {
src: ['kendo-pouchdb.js', 'tests/testHelper.js'],
Expand All @@ -48,9 +57,9 @@ module.exports = function(grunt) {
}
}
}

});

grunt.registerTask('default', ['uglify']);
grunt.registerTask('test', ['jasmine']);
};
41 changes: 21 additions & 20 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,49 +1,50 @@
{
"name": "kendo-pouchdb",
"main": "kendo-pouchdb.js",
"version": "0.1.0",
"version": "0.1.1",
"description": "Kendo UI adapter for PouchDB",

"homepage": "https://github.com/terikon/kendo-pouchdb",
"authors": [
{ "name": "Terikon Software", "email": "npm@terikon.com", "homepage": "http://il.linkedin.com/in/romanviskin" }
],

"authors": [{
"name": "Terikon Software",
"email": "npm@terikon.com",
"homepage": "http://il.linkedin.com/in/romanviskin"
}],

"moduleType": [
"amd",
"globals"
],

"repository": {
"type": "git",
"url": "https://github.com/terikon/kendo-pouchdb.git"
},

"keywords": [
"Kendo",
"Kendo UI",
"PouchDB",
"DataSource",
"CouchDB",
"Couchbase",
"Cloudant"
"DataSource",
"CouchDB",
"Couchbase",
"Cloudant"
],

"license": "MIT",

"dependencies": {
"jquery": "*",
"kendo-ui-core": "^2015.1.422",
"pouchdb": "^3.4.0",
"pouchdb-collate": "^1.1.2",
"pouchdb-find": "^0.3.4"
"jquery": "*",
"pouchdb": "^3.4.0",
"pouchdb-collate": "^1.2.0",
"pouchdb-find": "^0.3.4"
},

"ignore": [
"**/.*",
"node_modules",
"bower_components",
"tests"
]

}
2 changes: 1 addition & 1 deletion dist/kendo-pouchdb.amd.min.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/* kendo-pouchdb.amd v0.1.0 30-05-2015 (C) 2015 Terikon Software */
/* kendo-pouchdb.amd v0.1.1 15-06-2015 (C) 2015 Terikon Software */
define(["kendo","kendo-pouchdb"],function(a){"use strict";return a});
2 changes: 1 addition & 1 deletion dist/kendo-pouchdb.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "kendo-pouchdb",
"title": "kendoPouchDB",
"version": "0.1.0",
"version": "0.1.1",
"description": "Kendo UI adapter for PouchDB",
"main": "kendo-pouchdb.js",
"scripts": {
"//": "use '|| true' to prevent warning",
"build": "npm install && grunt",
"test": "grunt test",
"jshint": "grunt jshint"
"jshint": "grunt jshint && grunt kendo_lint"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -44,6 +44,8 @@
"grunt-contrib-uglify": "^0.9.1",
"grunt-contrib-jshint": "^0.11.1",
"grunt-contrib-jasmine": "^0.8.2",
"underscore": "^1.8.3"
"underscore": "^1.8.3",
"grunt-kendo-lint": "~0.0.3",
"load-grunt-tasks": "~0.2.0"
}
}
}

0 comments on commit bd5c991

Please sign in to comment.