build/src/index.js
/**
     * Look in the CWD for a `.gcloudignore` file.  If one is present, parse it,
     * and return the ignore rules as an array of strings.
     * @private
     */
Look in the CWD for a `.gcloudignore` file.  If one is present, parse it,
and return the ignore rules as an array of strings.
@private
Look in the CWD for a ` . gcloudignore ` file . If one is present parse it and return the ignore rules as an array of strings . @private
async _getIgnoreRules() {
        const ignoreFile = path.join(this._options.targetDir, '.gcloudignore');
        let ignoreRules = new Array();
        try {
            const contents = await readFile(ignoreFile, 'utf8');
            ignoreRules = contents.split('\n').filter(line => {
                return !line.startsWith('#') && line.trim() !== '';
            });
        }
        catch (e) {
        }
        return ignoreRules;
    }
async _getIgnoreRules ( ) { const ignoreFile = path . join ( this . _options . targetDir , '.gcloudignore' ) ; let ignoreRules = new Array ( ) ; try { const contents = await readFile ( ignoreFile , 'utf8' ) ; ignoreRules = contents . split ( '\n' ) . filter ( line => { return ! line . startsWith ( '#' ) && line . trim ( ) !== '' ; } ) ; } catch ( e ) { } return ignoreRules ; }
Look in the CWD for a `.gcloudignore` file.
Look in the CWD for a ` . gcloudignore ` file .
// blergh