Last active
July 29, 2016 06:16
-
-
Save riverar/926ba8d2e4187f4f7a076bfbdc817fd7 to your computer and use it in GitHub Desktop.
HACK: Override the discovery of build scripts in surf_build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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