mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-20 04:11:51 +00:00
docs: use q-io instead of deprecated q-fs
This recursive process.nextTick error[1] was probably coming from q-fs, which is not actively maintained. This updates to q-io/fs instead. [1]: https://travis-ci.org/angular/angular.js/jobs/15391590
This commit is contained in:
parent
ed4a1fddce
commit
18e0768a2b
5 changed files with 9 additions and 9 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
exports.appCache = appCache;
|
exports.appCache = appCache;
|
||||||
var fs = require('q-fs');
|
var fs = require('q-io/fs');
|
||||||
var Q = require('qq');
|
var Q = require('qq');
|
||||||
function identity($) {return $;}
|
function identity($) {return $;}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -74,10 +74,10 @@ function writeTheRest(writesFuture) {
|
||||||
var versions = ngdoc.ngVersions();
|
var versions = ngdoc.ngVersions();
|
||||||
var currentVersion = ngdoc.ngCurrentVersion();
|
var currentVersion = ngdoc.ngCurrentVersion();
|
||||||
|
|
||||||
writesFuture.push(writer.symlink('../../docs/content/notes', 'build/docs/notes', 'dir'));
|
writesFuture.push(writer.symlink('../../docs/content/notes', 'build/docs/notes', 'directory'));
|
||||||
writesFuture.push(writer.symlinkTemplate('css', 'dir'));
|
writesFuture.push(writer.symlinkTemplate('css', 'directory'));
|
||||||
writesFuture.push(writer.symlink('../../docs/img', 'build/docs/img', 'dir'));
|
writesFuture.push(writer.symlink('../../docs/img', 'build/docs/img', 'directory'));
|
||||||
writesFuture.push(writer.symlinkTemplate('js', 'dir'));
|
writesFuture.push(writer.symlinkTemplate('js', 'directory'));
|
||||||
|
|
||||||
var manifest = 'manifest="/build/docs/appcache.manifest"';
|
var manifest = 'manifest="/build/docs/appcache.manifest"';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ exports.collect = collect;
|
||||||
|
|
||||||
var ngdoc = require('./ngdoc.js'),
|
var ngdoc = require('./ngdoc.js'),
|
||||||
Q = require('qq'),
|
Q = require('qq'),
|
||||||
qfs = require('q-fs'),
|
qfs = require('q-io/fs'),
|
||||||
PATH = require('path');
|
PATH = require('path');
|
||||||
|
|
||||||
var NEW_LINE = /\n\r?/;
|
var NEW_LINE = /\n\r?/;
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
* for testability
|
* for testability
|
||||||
*/
|
*/
|
||||||
var pathUtils = require('path');
|
var pathUtils = require('path');
|
||||||
var qfs = require('q-fs');
|
var qfs = require('q-io/fs');
|
||||||
var Q = require('qq');
|
var Q = require('qq');
|
||||||
var OUTPUT_DIR = pathUtils.join('build','docs');
|
var OUTPUT_DIR = pathUtils.join('build','docs');
|
||||||
var TEMPLATES_DIR = pathUtils.join('docs','src','templates');
|
var TEMPLATES_DIR = pathUtils.join('docs','src','templates');
|
||||||
|
|
@ -76,7 +76,7 @@ function symlink(from, to, type) {
|
||||||
// qfs will normalize the path arguments for us here
|
// qfs will normalize the path arguments for us here
|
||||||
return qfs.exists(to).then(function(exists) {
|
return qfs.exists(to).then(function(exists) {
|
||||||
if (!exists) {
|
if (!exists) {
|
||||||
return qfs.symbolicLink(to, from, type);
|
return qfs.symbolicLink(to, from, type || 'file');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
"grunt-contrib-copy": "~0.4.1",
|
"grunt-contrib-copy": "~0.4.1",
|
||||||
"jasmine-node": "~1.11.0",
|
"jasmine-node": "~1.11.0",
|
||||||
"q": "~0.9.2",
|
"q": "~0.9.2",
|
||||||
"q-fs": "~0.1.36",
|
"q-io": "~1.10.6",
|
||||||
"qq": "~0.3.5",
|
"qq": "~0.3.5",
|
||||||
"shelljs": "~0.2.6",
|
"shelljs": "~0.2.6",
|
||||||
"karma": "~0.11",
|
"karma": "~0.11",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue