chore: update all packages to latest versions

closes #1607
This commit is contained in:
Foxandxss 2016-06-05 23:46:52 +02:00 committed by Ward Bell
parent 2492ea6874
commit 21d74d531a
13 changed files with 33 additions and 53 deletions

View File

@ -7,8 +7,6 @@ var _ = require('lodash');
var argv = require('yargs').argv; var argv = require('yargs').argv;
var env = require('gulp-env'); var env = require('gulp-env');
var Q = require("q"); var Q = require("q");
// delPromise is a 'promise' version of del
var delPromise = Q.denodeify(del);
var Minimatch = require("minimatch").Minimatch; var Minimatch = require("minimatch").Minimatch;
var Dgeni = require('dgeni'); var Dgeni = require('dgeni');
var Package = require('dgeni').Package; var Package = require('dgeni').Package;
@ -609,14 +607,14 @@ gulp.task('_shred-clean-devguide-shared-jade', function(cb) {
// jade fragments now all go into _fragments subdirs under their source. // jade fragments now all go into _fragments subdirs under their source.
var newCleanPath = path.join(DOCS_PATH, '**/_fragments/*.jade'); var newCleanPath = path.join(DOCS_PATH, '**/_fragments/*.jade');
// Much slower 8-9x then using globby first ... ??? // Much slower 8-9x then using globby first ... ???
// return delPromise([ newCleanPath, oldCleanPath]); // return del([ newCleanPath, oldCleanPath]);
var files = globby.sync( [newCleanPath, oldCleanPath]); var files = globby.sync( [newCleanPath, oldCleanPath]);
return delPromise(files); return del(files);
}); });
gulp.task('_shred-clean-devguide', function(cb) { gulp.task('_shred-clean-devguide', function(cb) {
var cleanPath = path.join(_devguideShredOptions.fragmentsDir, '**/*.*') var cleanPath = path.join(_devguideShredOptions.fragmentsDir, '**/*.*')
return delPromise([ cleanPath, '!**/*.ovr.*', '!**/_api/**']); return del([ cleanPath, '!**/*.ovr.*', '!**/_api/**']);
}); });
gulp.task('_shred-api-examples', ['_shred-clean-api'], function() { gulp.task('_shred-api-examples', ['_shred-clean-api'], function() {
@ -626,7 +624,7 @@ gulp.task('_shred-api-examples', ['_shred-clean-api'], function() {
gulp.task('_shred-clean-api', function(cb) { gulp.task('_shred-clean-api', function(cb) {
var cleanPath = path.join(_apiShredOptions.fragmentsDir, '**/*.*') var cleanPath = path.join(_apiShredOptions.fragmentsDir, '**/*.*')
return delPromise([ cleanPath, '!**/*.ovr.*' ]); return del([ cleanPath, '!**/*.ovr.*' ]);
}); });
gulp.task('_zip-examples', function() { gulp.task('_zip-examples', function() {
@ -933,7 +931,7 @@ function apiExamplesWatch(postShredAction) {
gutil.log('Event type: ' + event.type); // added, changed, or deleted gutil.log('Event type: ' + event.type); // added, changed, or deleted
gutil.log('Event path: ' + event.path); // The path of the modified file gutil.log('Event path: ' + event.path); // The path of the modified file
return delPromise(cleanPath).then(function() { return del(cleanPath).then(function() {
return docShredder.shred(_apiShredOptions); return docShredder.shred(_apiShredOptions);
}).then(postShredAction); }).then(postShredAction);
}); });

View File

@ -25,24 +25,23 @@
"url": "" "url": ""
}, },
"devDependencies": { "devDependencies": {
"archiver": "^0.16.0", "archiver": "^1.0.0",
"assert-plus": "^0.1.5", "assert-plus": "^1.0.0",
"broken-link-checker": "0.7.1", "broken-link-checker": "0.7.1",
"browser-sync": "^2.9.3", "browser-sync": "^2.9.3",
"canonical-path": "0.0.2", "canonical-path": "0.0.2",
"cross-spawn": "^2.1.0", "cross-spawn": "^4.0.0",
"codelyzer": "0.0.18", "codelyzer": "0.0.20",
"del": "^1.2.0", "del": "^2.2.0",
"dgeni": "^0.4.0", "dgeni": "^0.4.0",
"dgeni-packages": "^0.13.0", "dgeni-packages": "^0.13.0",
"diff": "^2.1.3", "diff": "^2.1.3",
"fs-extra": "^0.24.0", "fs-extra": "^0.30.0",
"glob": "^5.0.14",
"globby": "^4.0.0", "globby": "^4.0.0",
"gulp": "^3.5.6", "gulp": "^3.5.6",
"gulp-env": "0.4.0", "gulp-env": "0.4.0",
"gulp-task-listing": "^1.0.1", "gulp-task-listing": "^1.0.1",
"gulp-tslint": "^4.3.5", "gulp-tslint": "^5.0.0",
"gulp-util": "^3.0.6", "gulp-util": "^3.0.6",
"gulp-watch": "^4.3.4", "gulp-watch": "^4.3.4",
"harp": "^0.20.3", "harp": "^0.20.3",
@ -50,26 +49,25 @@
"indent-string": "^2.1.0", "indent-string": "^2.1.0",
"jasmine-core": "^2.3.4", "jasmine-core": "^2.3.4",
"jasmine-node": "^1.14.5", "jasmine-node": "^1.14.5",
"jsdom": "^7.0.2", "jsdom": "^9.2.1",
"jsonfile": "^2.2.2", "jsonfile": "^2.2.2",
"karma": "^0.13.10", "karma": "^0.13.10",
"karma-chrome-launcher": "^0.2.0", "karma-chrome-launcher": "^1.0.1",
"karma-jasmine": "^0.3.6", "karma-jasmine": "^1.0.2",
"live-server": "^0.8.1", "live-server": "^1.0.0",
"lodash": "^3.10.1", "lodash": "^4.13.1",
"marked": "^0.3.5", "marked": "^0.3.5",
"minimatch": "^2.0.10", "minimatch": "^3.0.0",
"mkdirp": "^0.5.1", "mkdirp": "^0.5.1",
"node-html-encoder": "0.0.2", "node-html-encoder": "0.0.2",
"nodegit": "0.13.0", "nodegit": "0.13.0",
"path": "^0.11.14", "path": "^0.12.7",
"prompt": "^0.2.14", "prompt": "^1.0.0",
"protractor": "^3.0.0", "protractor": "^3.0.0",
"q": "^1.4.1", "q": "^1.4.1",
"tree-kill": "^1.0.0", "tree-kill": "^1.0.0",
"tslint": "^3.2.2", "tslint": "^3.2.2",
"typescript": "1.7.3", "yargs": "^4.7.1"
"yargs": "^3.23.0"
}, },
"dependencies": { "dependencies": {
"jstransformer-marked": "^1.0.1" "jstransformer-marked": "^1.0.1"

View File

@ -53,10 +53,10 @@
"http-server": "^0.9.0", "http-server": "^0.9.0",
"jasmine-core": "^2.4.1", "jasmine-core": "^2.4.1",
"karma": "^0.13.22", "karma": "^0.13.22",
"karma-chrome-launcher": "^0.2.3", "karma-chrome-launcher": "^1.0.1",
"karma-cli": "^0.1.2", "karma-cli": "^1.0.0",
"karma-htmlfile-reporter": "^0.2.2", "karma-htmlfile-reporter": "^0.3.1",
"karma-jasmine": "^0.3.8", "karma-jasmine": "^1.0.2",
"karma-phantomjs-launcher": "^1.0.0", "karma-phantomjs-launcher": "^1.0.0",
"karma-sourcemap-loader": "^0.3.7", "karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "^1.7.0", "karma-webpack": "^1.7.0",
@ -74,7 +74,7 @@
"typings": "^1.0.4", "typings": "^1.0.4",
"webpack": "^1.13.0", "webpack": "^1.13.0",
"webpack-dev-server": "^1.14.1", "webpack-dev-server": "^1.14.1",
"webpack-merge": "^0.12.0" "webpack-merge": "^0.14.0"
}, },
"repository": {} "repository": {}
} }

View File

@ -1,7 +1,5 @@
// Canonical path provides a consistent path (i.e. always forward slashes) across different OSes // Canonical path provides a consistent path (i.e. always forward slashes) across different OSes
var path = require('canonical-path'); var path = require('canonical-path');
var Q = require('q');
var _ = require('lodash');
var jsonfile = require('jsonfile'); var jsonfile = require('jsonfile');
var assert = require('assert-plus'); var assert = require('assert-plus');
// adm-zip does not work properly on Windows // adm-zip does not work properly on Windows

View File

@ -13,11 +13,10 @@ gulp.task('zipExamples', ['clean'], function() {
return exampleZipper.zipExamples("../../../public/docs/_examples", _outputFolder); return exampleZipper.zipExamples("../../../public/docs/_examples", _outputFolder);
}); });
gulp.task('clean', function (cb) { gulp.task('clean', function () {
var cleanPath = path.join(_outputFolder, '**/*.*'); var cleanPath = path.join(_outputFolder, '**/*.*');
del([ cleanPath, '!**/*.ovr.*'], function (err, paths) { del([ cleanPath, '!**/*.ovr.*']).then(function (err, paths) {
console.log('Deleted files/folders:\n', paths.join('\n')); console.log('Deleted files/folders:\n', paths.join('\n'));
cb();
}); });
}); });

View File

@ -1,7 +1,6 @@
var mockPackage = require('../mocks/mockPackage'); var mockPackage = require('../mocks/mockPackage');
var Dgeni = require('dgeni'); var Dgeni = require('dgeni');
var path = require('canonical-path'); var path = require('canonical-path');
var _ = require('lodash');
describe('contentFileReader', function() { describe('contentFileReader', function() {
var dgeni, injector, fileReader; var dgeni, injector, fileReader;

View File

@ -1,7 +1,6 @@
var mockPackage = require('../mocks/mockPackage'); var mockPackage = require('../mocks/mockPackage');
var Dgeni = require('dgeni'); var Dgeni = require('dgeni');
var path = require('canonical-path'); var path = require('canonical-path');
var _ = require('lodash');
describe('checkUnbalancedBackTicks', function() { describe('checkUnbalancedBackTicks', function() {
var dgeni, injector, processor, log; var dgeni, injector, processor, log;

View File

@ -1,7 +1,6 @@
var mockPackage = require('../mocks/mockPackage'); var mockPackage = require('../mocks/mockPackage');
var Dgeni = require('dgeni'); var Dgeni = require('dgeni');
var path = require('canonical-path'); var path = require('canonical-path');
var _ = require('lodash');
describe('convertBackticksToCodeBlocks', function() { describe('convertBackticksToCodeBlocks', function() {
var dgeni, injector, processor; var dgeni, injector, processor;

View File

@ -1,4 +1,3 @@
var _ = require('lodash');
var path = require('canonical-path'); var path = require('canonical-path');
/** /**

View File

@ -1,5 +1,3 @@
var _ = require('lodash');
/** /**
* @dgService * @dgService
* @description * @description

View File

@ -1,8 +1,5 @@
var docShredder = require('../doc-shredder'); var docShredder = require('../doc-shredder');
var Q = require("q"); var del = require('del');
var del = require('del')
// delPromise is a 'promise' version of del
var delPromise = Q.denodeify(del);
var globby = require('globby'); var globby = require('globby');
var path = require('canonical-path'); var path = require('canonical-path');
var fs = require('fs'); var fs = require('fs');
@ -59,7 +56,7 @@ describe('doc-shredder', function() {
function clean(shredOptions) { function clean(shredOptions) {
var cleanPath = path.join(shredOptions.fragmentsDir, '**/*.*') var cleanPath = path.join(shredOptions.fragmentsDir, '**/*.*')
return delPromise([ cleanPath, '!**/*.ovr.*']); return del([ cleanPath, '!**/*.ovr.*']);
} }
}); });

View File

@ -17,11 +17,10 @@ gulp.task('shred', ['clean'], function() {
return docShredder.shred(shredOptions); return docShredder.shred(shredOptions);
}); });
gulp.task('clean', function (cb) { gulp.task('clean', function () {
var cleanPath = path.join(shredOptions.fragmentsDir, '**/*.*') var cleanPath = path.join(shredOptions.fragmentsDir, '**/*.*')
del([ cleanPath, '!**/*.ovr.*'], function (err, paths) { del([ cleanPath, '!**/*.ovr.*']).then(function (err, paths) {
// console.log('Deleted files/folders:\n', paths.join('\n')); // console.log('Deleted files/folders:\n', paths.join('\n'));
cb();
}); });
}); });

View File

@ -1,9 +1,6 @@
// Canonical path provides a consistent path (i.e. always forward slashes) across different OSes // Canonical path provides a consistent path (i.e. always forward slashes) across different OSes
var path = require('canonical-path'); var path = require('canonical-path');
var Q = require('q');
var del = require('del'); var del = require('del');
// delPromise is a 'promise' version of del
var delPromise = Q.denodeify(del);
var Dgeni = require('dgeni'); var Dgeni = require('dgeni');
var _ = require('lodash'); var _ = require('lodash');
var globby = require('globby'); var globby = require('globby');
@ -37,7 +34,7 @@ var shredSingleDir = function(shredOptions, filePath) {
fragmentsDir: fragmentsDir fragmentsDir: fragmentsDir
} }
var cleanPath = path.join(fragmentsDir, '*.*') var cleanPath = path.join(fragmentsDir, '*.*')
return delPromise([ cleanPath, '!**/*.ovr.*']).then(function(paths) { return del([ cleanPath, '!**/*.ovr.*']).then(function(paths) {
// console.log('Deleted files/folders:\n', paths.join('\n')); // console.log('Deleted files/folders:\n', paths.join('\n'));
return shred(options); return shred(options);
}); });