Skip to content

Commit 2f2cf9e

Browse files
author
Norbert de Langen
committed
Merge branch '0.6.0-dev' into ndelangen/update-docs
# Conflicts: # assets/js/modules/loadEvents.js
2 parents 2d4bd54 + ceeb6cf commit 2f2cf9e

File tree

7 files changed

+24
-23
lines changed

7 files changed

+24
-23
lines changed

Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module.exports = function(grunt) {
2727
var appPort = grunt.option('app-port') || 8080;
2828

2929
// load all grunt tasks matching the `grunt-*` pattern
30-
require(getLoaderPackageName())(grunt);
30+
require(getLoaderPackageName())(grunt, {pattern: ['grunt-*', '@*/grunt-*']});
3131

3232
// measuring processing time
3333
require('time-grunt')(grunt);

assets/js/modules/loadEvents.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ sourcejs.amd.define(["sourceModules/module", "sourceModules/utils"], function(mo
105105
}
106106
};
107107
/*jshint forin: false */
108-
for (var plugin in pluginsSection) {
108+
for (var plugin in pluginsSection) { // jshint ignore:line
109109
if (!pluginsSection.hasOwnProperty(plugin)) {
110110
continue;
111111
}

assets/js/modules/sectionsParser.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ function SourceGetSections() {
1212
// Defining strict inside func, because PhantomJS stops evaluating this script if it's on top
1313
'use strict';
1414

15+
/*jshint latedef: false */
16+
1517
var config = {
1618
// include params from opt@argument first
1719
code: 'source_example',

core/api/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
var express = require('express');
44
var path = require('path');
5-
var parseData = require(path.join(global.pathToApp, 'core/lib/parseData'));
5+
var ParseData = require(path.join(global.pathToApp, 'core/lib/parseData'));
66
var utils = require(path.join(global.pathToApp, 'core/lib/utils'));
77
var pathToApp = path.dirname(require.main.filename);
88
var htmlTree = require(path.join(global.pathToApp, 'core/html-tree'));
@@ -26,7 +26,7 @@ var htmlDataPath = path.join(pathToApp, config.htmlData);
2626
*
2727
* @param {Object} req - express request
2828
* @param {Object} res - express response
29-
* @param {Object} parseObj - initiated parseData instance
29+
* @param {Object} parseObj - initiated ParseData instance
3030
*
3131
* Writes result to res object
3232
*/
@@ -89,7 +89,7 @@ var getSpecs = function (req, res, parseObj) {
8989
*
9090
* @param {Object} req - express request
9191
* @param {Object} res - express response
92-
* @param {Object} parseObj - initiated parseData instance
92+
* @param {Object} parseObj - initiated ParseData instance
9393
*
9494
* Writes result to res object
9595
*/
@@ -209,12 +209,12 @@ var presentationHandler = function (req, res) {
209209
/* Main API router */
210210
var apiRouter = express.Router();
211211

212-
var parseHTMLData = new parseData({
212+
var parseHTMLData = new ParseData({
213213
scope: 'html',
214214
path: htmlDataPath
215215
});
216216

217-
var parseSpecs = new parseData({
217+
var parseSpecs = new ParseData({
218218
scope: 'specs',
219219
path: specsDataPath
220220
});
@@ -281,12 +281,12 @@ var apiTestRouter = express.Router();
281281
var specsDataTestPath = path.join(pathToApp, config.specsTestData);
282282
var htmlDataTestPath = path.join(pathToApp, config.htmlTestData);
283283

284-
var parseSpecsTest = new parseData({
284+
var parseSpecsTest = new ParseData({
285285
scope: 'specs',
286286
path: specsDataTestPath
287287
});
288288

289-
var parseHTMLDataTest = new parseData({
289+
var parseHTMLDataTest = new ParseData({
290290
scope: 'html',
291291
path: htmlDataTestPath
292292
});

core/lib/specUtils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
var path = require('path');
44
var fs = require('fs-extra');
5-
var parseData = require(path.join(global.pathToApp, 'core/lib/parseData'));
5+
var ParseData = require(path.join(global.pathToApp, 'core/lib/parseData'));
66

77

88
/**
@@ -55,7 +55,7 @@ var getSpecIDFromUrl = module.exports.getSpecIDFromUrl = function(urlToSpec){
5555
*/
5656
module.exports.getSpecInfo = function(urlSpecPath) {
5757
var specsDataPath = path.join(global.pathToApp, global.opts.core.api.specsData);
58-
var parseSpecData = new parseData({
58+
var parseSpecData = new ParseData({
5959
scope: 'specs',
6060
path: specsDataPath
6161
});

core/middlewares/clarify.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ var ejs = require(path.join(global.pathToApp, 'core/ejsWithHelpers.js'));
1111
var trackStats = require(path.join(global.pathToApp, 'core/trackStats'));
1212
var pathToApp = path.dirname(require.main.filename);
1313
var specUtils = require(path.join(pathToApp, 'core/lib/specUtils'));
14-
var parseData = require(path.join(pathToApp, 'core/lib/parseData'));
14+
var ParseData = require(path.join(pathToApp, 'core/lib/parseData'));
1515
var specsParser = require(path.join(pathToApp, 'core/lib/specPageParser'));
1616

1717
var htmlDataPath = path.join(pathToApp, global.opts.core.api.htmlData);
18-
var parseHTMLData = new parseData({
18+
var parseHTMLData = new ParseData({
1919
scope: 'html',
2020
path: htmlDataPath
2121
});

package.json

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@
2424
"express": "^4.13.3",
2525
"express-interceptor": "^1.2.0",
2626
"express-session": "^1.10.2",
27-
"flat": "^1.2.1",
28-
"fs-extra": "^0.26.7",
27+
"fs-extra": "^0.30.0",
2928
"fs-finder": "operatino/node-fs-finder#fix-windows-find-up",
3029
"glob": "^7.0.3",
31-
"grunt": "~0.4.5",
30+
"grunt": "~1.0.1",
3231
"grunt-autoprefixer": "^3.0.4",
3332
"grunt-cli": "^1.1.0",
3433
"grunt-contrib-clean": "^1.0.0",
@@ -47,7 +46,7 @@
4746
"marked": "^0.3.5",
4847
"minimatch": "^3.0.0",
4948
"pretty-hrtime": "^1.0.2",
50-
"q": "^1.1.1",
49+
"q": "^1.4.1",
5150
"serve-favicon": "^2.3.0",
5251
"shortid": "^2.2.4",
5352
"time-grunt": "^1.2.1",
@@ -69,16 +68,16 @@
6968
"ci-test-win": "grunt ci-pre-run && node app.js --post-grunt ci-post-run-win --test --log trace --no-watch"
7069
},
7170
"devDependencies": {
71+
"@ndelangen/grunt-casperjs": "^3.0.0",
7272
"assert": "^1.3.0",
7373
"chai": "^3.2.0",
74-
"cross-spawn": "^0.4.0",
75-
"grunt-casperjs": "^2.1.0",
76-
"grunt-contrib-jshint": "^0.11.3",
77-
"grunt-contrib-watch": "^0.6.1",
78-
"grunt-jsdoc": "^1.0.0",
74+
"cross-spawn": "^4.0.0",
75+
"grunt-contrib-jshint": "^1.0.0",
76+
"grunt-contrib-watch": "^1.0.0",
77+
"grunt-jsdoc": "^2.1.0",
7978
"grunt-mocha-test": "^0.12.7",
8079
"mocha": "^2.0.1",
81-
"should": "^7.1.0",
80+
"should": "^9.0.2",
8281
"supertest": "^1.1.0"
8382
}
8483
}

0 commit comments

Comments
 (0)