PATH:
usr
/
local
/
lib
/
node_modules
/
ghost-cli
/
node_modules
/
replace-in-file
/
lib
/
helpers
'use strict'; /** * Dependencies */ const glob = require('glob'); /** * Async wrapper for glob */ module.exports = function globAsync(pattern, ignore, allowEmptyPaths, cfg) { //Prepare glob config cfg = Object.assign({ignore}, cfg, {nodir: true}); //Return promise return new Promise((resolve, reject) => { glob(pattern, cfg, (error, files) => { //istanbul ignore if: hard to make glob error if (error) { return reject(error); } //Error if no files match, unless allowed if (!allowEmptyPaths && files.length === 0) { return reject(new Error('No files match the pattern: ' + pattern)); } //Resolve resolve(files); }); }); };
[-] success-handler.js
[edit]
[-] replace-sync.js
[edit]
[+]
..
[-] error-handler.js
[edit]
[-] make-replacements.js
[edit]
[-] parse-config.js
[edit]
[-] combine-config.js
[edit]
[-] get-paths-sync.js
[edit]
[-] replace-async.js
[edit]
[-] load-config.js
[edit]
[-] glob-async.js
[edit]
[-] get-paths-async.js
[edit]