Skip to content

Commit 6aa1b4d

Browse files
MichaelDecisoAdSchellevis
authored andcommitted
Fix build; update dependencies (opnsense#2)
1 parent b9a243e commit 6aa1b4d

29 files changed

+8833
-4162
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ src/*.map
77
*.diff
88
*.patch
99
.DS_Store
10-
settings.json
10+
settings.json
11+
.idea/

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

3+
## 1.3.3
4+
### Enhancements & Features
5+
- Update dependencies to 2018 versions, eliminating 72 vulnerabilities.
6+
- The old, unused copy of Modernizr in the demo has been removed.
7+
8+
## 1.3.2
9+
### Bug fixes
10+
- Fix jQuery and Bootstrap versions in package.json, fix license info in package.json
11+
12+
### Enhancements & Features
13+
- Use left and right single guillemets in pagination.
14+
- Migrated test suite to Qunit 2.8.0.
15+
316
## 1.3.1
417

518
### Enhancements & Features

Gruntfile.js

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/*jshint node:true*/
2-
module.exports = function (grunt)
3-
{
2+
module.exports = function (grunt) {
43
"use strict";
54

65
/* Hint: Using grunt-strip-code to remove comments from the release file */
@@ -9,8 +8,8 @@ module.exports = function (grunt)
98
pkg: grunt.file.readJSON('package.json'),
109
fontawesome: 'fa',
1110
banner: '/*! <%= "\\r\\n * " + pkg.title %> v<%= pkg.version %> - <%= grunt.template.today("mm/dd/yyyy") + "\\r\\n" %>' +
12-
' * Copyright (c) 2014-<%= grunt.template.today("yyyy") %> <%= pkg.author.name %> <%= (pkg.homepage ? "(" + pkg.homepage + ")" : "") + "\\r\\n" %>' +
13-
' * Licensed under <%= pkg.licenses[0].type + " " + pkg.licenses[0].url + "\\r\\n */\\r\\n" %>',
11+
' * Copyright © 2014-2015 Rafael J. Staib; Copyright © 2018-<%= grunt.template.today("yyyy") %> <%= pkg.author.name %> <%= (pkg.homepage ? "(" + pkg.homepage + ")" : "") + "\\r\\n" %>' +
12+
' * Licensed under the <%= pkg.license + " license. See LICENSE.txt for more details." + "\\r\\n */\\r\\n" %>',
1413
folders: {
1514
dist: "dist",
1615
docs: "docs",
@@ -57,20 +56,17 @@ module.exports = function (grunt)
5756
separator: '\r\n\r\n',
5857
banner: '<%= banner %>;(function ($, window, undefined)\r\n{\r\n /*jshint validthis: true */\r\n "use strict";\r\n\r\n',
5958
footer: '\r\n})(jQuery, window);',
60-
process: function(src, filepath)
61-
{
59+
process: function (src, filepath) {
6260
var result = src.trim().replace(/(.+?\r\n)/gm, ' $1'),
6361
end = [0, ""],
6462
lastChar = result[result.length - 1];
6563

66-
if (lastChar === ";")
67-
{
64+
if (lastChar === ";") {
6865
end = (result[result.length - 2] === ")") ?
69-
(result[result.length - 2] === "}") ?
70-
[3, " });"] : [2, ");"] : [2, " };"];
66+
(result[result.length - 2] === "}") ?
67+
[3, " });"] : [2, ");"] : [2, " };"];
7168
}
72-
else if (lastChar === "}")
73-
{
69+
else if (lastChar === "}") {
7470
end = [1, " }"];
7571
}
7672

@@ -106,6 +102,7 @@ module.exports = function (grunt)
106102
default: {
107103
options: {
108104
'adjoining-classes': false,
105+
'order-alphabetical': false,
109106
'important': false,
110107
'outline-none': false,
111108
'overqualified-elements': false
@@ -118,13 +115,14 @@ module.exports = function (grunt)
118115
curly: true,
119116
eqeqeq: true,
120117
immed: true,
121-
latedef: true,
118+
latedef: 'nofunc',
122119
newcap: true,
123120
noarg: true,
124121
sub: true,
125122
undef: true,
126123
eqnull: true,
127124
browser: true,
125+
reporterOutput: "",
128126
globals: {
129127
jQuery: true,
130128
$: true,
@@ -210,7 +208,7 @@ module.exports = function (grunt)
210208
files: [
211209
{
212210
flatten: true,
213-
expand: true,
211+
expand: true,
214212
src: ['<%= folders.dist %>/*.js', '<%= folders.dist %>/*.css'], dest: '/'
215213
}
216214
]
@@ -247,8 +245,7 @@ module.exports = function (grunt)
247245
grunt.loadNpmTasks('grunt-nuget');
248246
grunt.loadNpmTasks('grunt-regex-replace');
249247

250-
grunt.registerMultiTask('version', 'sets version tag', function ()
251-
{
248+
grunt.registerMultiTask('version', 'sets version tag', function () {
252249
var pkg = grunt.file.readJSON(this.data.src);
253250
pkg["version"] = this.data.options.version;
254251
grunt.file.write(this.data.src, JSON.stringify(pkg, null, 4));

LICENSE.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2014-2015 Rafael J. Staib
3+
Copyright © 2014-2015 Rafael J. Staib
4+
Copyright © 2018 Deciso
45

56
Permission is hereby granted, free of charge, to any person obtaining a copy
67
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
jQuery Bootgrid Plugin [![Build Status](http://img.shields.io/travis/rstaib/jquery-bootgrid/master.svg?style=flat-square)](https://travis-ci.org/rstaib/jquery-bootgrid) ![Bower version](http://img.shields.io/bower/v/jquery.bootgrid.svg?style=flat-square) ![NuGet version](http://img.shields.io/nuget/v/jquery.bootgrid.svg?style=flat-square) ![NPM version](http://img.shields.io/npm/v/jquery-bootgrid.svg?style=flat-square) ![Gratipay](http://img.shields.io/gratipay/RafaelStaib.svg?style=flat-square)
1+
jQuery Bootgrid Plugin [![Build Status](http://img.shields.io/travis/opnsense/jquery-bootgrid/master.svg?style=flat-square)](https://travis-ci.org/opnsense/jquery-bootgrid) ![Bower version](http://img.shields.io/bower/v/jquery.bootgrid.svg?style=flat-square) ![NuGet version](http://img.shields.io/nuget/v/jquery.bootgrid.svg?style=flat-square) ![NPM version](http://img.shields.io/npm/v/jquery-bootgrid.svg?style=flat-square) ![Gratipay](http://img.shields.io/gratipay/RafaelStaib.svg?style=flat-square)
22
============
33

44
Nice, sleek and intuitive. A grid control especially designed for bootstrap.
@@ -53,10 +53,45 @@ Instructions will follow soon!
5353

5454
I'm always happy to help answer your questions. The best way to get quick answers is to go to [stackoverflow.com](http://stackoverflow.com) and tag your questions always with **jquery-bootgrid**.
5555

56+
## Building
57+
58+
### Environment
59+
60+
jquery-bootgrid uses npm to install its own dependencies, and mono to build a NuGet package.
61+
62+
You should install both using your package manager. On macOS, this works as follows:
63+
```
64+
brew install npm
65+
brew install mono
66+
```
67+
68+
### Build dependencies
69+
70+
From the folder that jquery-bootgrid resides in, run:
71+
```
72+
npm install .
73+
sudo npm install -g grunt
74+
```
75+
76+
### Build jquery-bootgrid itself
77+
```
78+
grunt
79+
```
80+
81+
If you are done with your modifications, you should increase the version number in boewer.json and package.json,
82+
update the changelog, and then run:
83+
```
84+
grunt release
85+
```
86+
87+
5688
## Contributing
5789

58-
Instructions will follow soon!
90+
No instructions yet.
5991

6092
## License
6193

62-
Copyright (c) 2014-2015 Rafael J. Staib Licensed under the [MIT license](https://github.com/rstaib/jquery-bootgrid/blob/master/LICENSE.txt).
94+
Copyright © 2014-2015 Rafael J. Staib
95+
Copyright © 2018 Deciso B.V.
96+
97+
Licensed under the [MIT license](https://github.com/opnsense/jquery-bootgrid/blob/master/LICENSE.txt).

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"accessibility",
1414
"bootstrap"
1515
],
16-
"version": "1.3.1",
16+
"version": "1.3.3",
1717
"authors": [
1818
{
1919
"name": "Rafael Staib",

demo/index.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<title>jQuery Bootgrid Demo</title>
77
<link href="css/bootstrap.css" rel="stylesheet" />
88
<link href="../dist/jquery.bootgrid.css" rel="stylesheet" />
9-
<script src="js/modernizr-2.8.1.js"></script>
109
<style>
1110
@-webkit-viewport { width: device-width; }
1211
@-moz-viewport { width: device-width; }
@@ -171,6 +170,7 @@
171170

172171
<footer id="footer">
173172
© Copyright 2014-2015, Rafael Staib
173+
© Copyright 2018 Deciso B.V.
174174
</footer>
175175

176176
<script src="../lib/jquery-1.11.1.min.js"></script>

demo/js/moderniz.2.8.1.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

demo/send.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<title>jQuery Bootgrid Demo</title>
77
<link href="css/bootstrap.css" rel="stylesheet" />
88
<link href="../dist/jquery.bootgrid.css" rel="stylesheet" />
9-
<script src="js/modernizr-2.8.1.js"></script>
109
<style>
1110
@-webkit-viewport {
1211
width: device-width;
@@ -133,6 +132,7 @@
133132

134133
<footer id="footer">
135134
© Copyright 2014-2015, Rafael Staib
135+
© Copyright 2018 Deciso B.V.
136136
</footer>
137137

138138
<script src="../lib/jquery-1.11.1.min.js"></script>

dist/jQuery.Bootgrid.1.3.1.nupkg

-26.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)