Skip to content

Commit d5e17d2

Browse files
committed
Version 2.5.0
2 parents 8d8d24b + 19950b2 commit d5e17d2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+1359
-544
lines changed

.github/CONTRIBUTING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
## Work on `dev`
44
Any merge request should be created from and issued to the `dev` branch.
55

6+
Do not add the `dist` files to your pull request. The directory is ignored for a reason: it is generated and pushed only when doing a release on `master`.
7+
68
## Core vs Plugins
79
I want to keep the core clean of extra (and certainly awesome) functionalities. That includes, but is not limited to, export/import plugins, visual aids, etc.
810

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
- [ ] I read the [guidelines for contributing](https://github.com/mistic100/jQuery-QueryBuilder/blob/master/.github/CONTRIBUTING.md)
44
- [ ] I created my branch from `dev` and I am issuing the PR to `dev`
5+
- [ ] I didn't pushed the `dist` directory
56
- [ ] Unit tests are OK
67
- [ ] If it's a new feature, I added the necessary unit tests
78
- [ ] If it's a new language, I filled the `__locale` and `__author` fields

.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
build
33
composer.json
44
Gruntfile.js
5-
bower_components
5+
tests/

.travis.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
language: node_js
22
node_js:
3-
- "5"
3+
- "8"
44
before_install:
55
- npm install -g grunt-cli
6-
- npm install -g bower
7-
before_script:
8-
- bower install
96
after_success: grunt coveralls

Gruntfile.js

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ module.exports = function(grunt) {
2727
'src/jquery.js'
2828
],
2929
js_files_for_standalone: [
30-
'bower_components/jquery-extendext/jQuery.extendext.js',
31-
'bower_components/doT/doT.js',
30+
'node_modules/jquery-extendext/jQuery.extendext.js',
31+
'node_modules/dot/doT.js',
3232
'dist/js/query-builder.js'
3333
]
3434
});
@@ -57,6 +57,11 @@ module.exports = function(grunt) {
5757
port: 9000,
5858
livereload: true
5959
}
60+
},
61+
test: {
62+
options: {
63+
port: 9001
64+
}
6065
}
6166
},
6267

@@ -238,7 +243,7 @@ module.exports = function(grunt) {
238243
uglify: {
239244
options: {
240245
banner: '<%= banner %>\n',
241-
mangle: { except: ['$'] }
246+
mangle: { reserved: ['$'] }
242247
},
243248
dist: {
244249
files: [{
@@ -346,7 +351,7 @@ module.exports = function(grunt) {
346351
qunit: {
347352
all: {
348353
options: {
349-
urls: ['tests/index.html?coverage=true'],
354+
urls: ['http://localhost:<%= connect.test.options.port %>/tests/index.html?coverage=true'],
350355
noGlobals: true
351356
}
352357
}
@@ -360,7 +365,8 @@ module.exports = function(grunt) {
360365
src: ['src/*.js', 'src/plugins/**/plugin.js']
361366
}],
362367
options: {
363-
dest: '.coverage-results/all.lcov'
368+
dest: '.coverage-results/all.lcov',
369+
prefix: 'http://localhost:<%= connect.test.options.port %>/'
364370
}
365371
}
366372
},
@@ -414,6 +420,7 @@ module.exports = function(grunt) {
414420
'build_css',
415421
'injector:testSrc',
416422
'injector:testModules',
423+
'connect:test',
417424
'qunit_blanket_lcov',
418425
'qunit'
419426
]);
@@ -423,7 +430,7 @@ module.exports = function(grunt) {
423430
'build_css',
424431
'injector:example',
425432
'open',
426-
'connect',
433+
'connect:dev',
427434
'watch'
428435
]);
429436

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
[![jsDelivr CDN](https://data.jsdelivr.com/v1/package/npm/jQuery-QueryBuilder/badge)](https://www.jsdelivr.com/package/npm/jQuery-QueryBuilder)
66
[![Build Status](https://img.shields.io/travis/mistic100/jQuery-QueryBuilder.svg?style=flat-square)](https://travis-ci.org/mistic100/jQuery-QueryBuilder)
77
[![Coverage Status](https://img.shields.io/coveralls/mistic100/jQuery-QueryBuilder/master.svg?style=flat-square)](https://coveralls.io/r/mistic100/jQuery-QueryBuilder)
8+
[![Dependencies Status](https://david-dm.org/mistic100/jQuery-QueryBuilder/status.svg?style=flat-square)](https://david-dm.org/mistic100/jQuery-QueryBuilder)
89

910
jQuery plugin offering an simple interface to create complex queries.
1011

@@ -39,11 +40,12 @@ $ npm install jQuery-QueryBuilder
3940

4041
jQuery-QueryBuilder is available on [jsDelivr](https://www.jsdelivr.com/package/npm/jQuery-QueryBuilder).
4142
### Dependencies
42-
* jQuery >= 1.10
43-
* Bootstrap >= 3.1 (CSS only)
43+
* [jQuery 3](https://jquery.com)
44+
* [Bootstrap 3](https://getbootstrap.com/docs/3.3) (CSS only)
4445
* [jQuery.extendext](https://github.com/mistic100/jQuery.extendext)
45-
* [doT.js >= 1.0.3](http://olado.github.io/doT)
46+
* [doT.js](http://olado.github.io/doT)
4647
* [MomentJS](http://momentjs.com) (optional, for Date/Time validation)
48+
* [SQL Parser](https://github.com/mistic100/sql-parser) (optional, for SQL methods)
4749
* Other Bootstrap/jQuery plugins used by plugins
4850

4951
($.extendext and doT.js are directly included in the [standalone](https://github.com/mistic100/jQuery-QueryBuilder/blob/master/dist/js/query-builder.standalone.js) file)
@@ -60,11 +62,10 @@ jQuery-QueryBuilder is available on [jsDelivr](https://www.jsdelivr.com/package/
6062

6163
* NodeJS + NPM: `apt-get install nodejs-legacy npm`
6264
* Grunt CLI: `npm install -g grunt-cli`
63-
* Bower: `npm install -g bower`
6465

6566
#### Run
6667

67-
Install Node and Bower dependencies `npm install & bower install` then run `grunt` in the root directory to generate production files inside `dist`.
68+
Install Node and Bower dependencies `npm install` then run `grunt` in the root directory to generate production files inside `dist`.
6869

6970
#### Options
7071

bower.json

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,12 @@
1313
"dist/css/query-builder.default.css"
1414
],
1515
"dependencies": {
16-
"jquery": ">=1.9.0",
16+
"jquery": ">=1.10.0",
1717
"bootstrap": ">=3.1.0 <4",
1818
"moment": ">=2.6.0",
1919
"jquery-extendext": ">=0.1.2",
2020
"doT": ">=1.0.3"
2121
},
22-
"devDependencies": {
23-
"blanket": "^1.1.0",
24-
"qunit": "^1.23.0",
25-
"bootstrap-select": "^1.10.0",
26-
"bootbox": "^4.4.0",
27-
"awesome-bootstrap-checkbox": "^0.3.0",
28-
"sql-parser": "^1.1.0",
29-
"bind-polyfill": "~1.0.0",
30-
"interact": "^1.2.6"
31-
},
3222
"keywords": [
3323
"jquery",
3424
"query",

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"description": "jQuery plugin for user friendly query/filter creator",
1010
"require": {
1111
"robloach/component-installer": "*",
12-
"components/jquery": ">=1.9.0",
12+
"components/jquery": ">=1.10.0",
1313
"moment/moment": ">=2.6.0",
1414
"components/bootstrap": ">=3.1.0 <4"
1515
},

dist/css/query-builder.dark.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
2-
* jQuery QueryBuilder 2.4.5
3-
* Copyright 2014-2017 Damien "Mistic" Sorel (http://www.strangeplanet.fr)
2+
* jQuery QueryBuilder 2.5.0
3+
* Copyright 2014-2018 Damien "Mistic" Sorel (http://www.strangeplanet.fr)
44
* Licensed under MIT (http://opensource.org/licenses/MIT)
55
*/
66
.query-builder .rules-group-container, .query-builder .rule-container, .query-builder .rule-placeholder {

dist/css/query-builder.dark.min.css

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/query-builder.default.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
2-
* jQuery QueryBuilder 2.4.5
3-
* Copyright 2014-2017 Damien "Mistic" Sorel (http://www.strangeplanet.fr)
2+
* jQuery QueryBuilder 2.5.0
3+
* Copyright 2014-2018 Damien "Mistic" Sorel (http://www.strangeplanet.fr)
44
* Licensed under MIT (http://opensource.org/licenses/MIT)
55
*/
66
.query-builder .rules-group-container, .query-builder .rule-container, .query-builder .rule-placeholder {

dist/css/query-builder.default.min.css

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/i18n/query-builder.ar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* jQuery QueryBuilder 2.4.5
2+
* jQuery QueryBuilder 2.5.0
33
* Locale: Arabic (ar)
44
* Author: Mohamed YOUNES, https://github.com/MedYOUNES
55
* Licensed under MIT (http://opensource.org/licenses/MIT)

0 commit comments

Comments
 (0)