Skip to content

Instantly share code, notes, and snippets.

@riverar
Last active July 29, 2016 06:16
Show Gist options
  • Select an option

  • Save riverar/926ba8d2e4187f4f7a076bfbdc817fd7 to your computer and use it in GitHub Desktop.

Select an option

Save riverar/926ba8d2e4187f4f7a076bfbdc817fd7 to your computer and use it in GitHub Desktop.
HACK: Override the discovery of build scripts in surf_build
import _ from 'lodash';
import {fs} from '../promisify';
import BuildDiscoverBase from '../build-discover-base';
export default class OverrideBuildDiscoverer extends BuildDiscoverBase {
constructor(rootDir) {
super(rootDir);
}
async getAffinityForRootDir() {
return 42;
}
async getBuildCommand() {
return { cmd: process.env["SURFBUILD_OVERRIDE_COMMAND"], args: []};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment