-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from HubSpot/v4
Bump planout.js major version to v4.0.0
- Loading branch information
Showing
28 changed files
with
5,549 additions
and
5,487 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,4 @@ | ||
import Experiment from '../es6/experiment'; | ||
import Interpreter from '../es6/interpreter'; | ||
import Random from '../es6/ops/random'; | ||
import Core from '../es6/ops/core'; | ||
import * as Namespace from '../es6/namespace'; | ||
import Assignment from '../es6/assignment'; | ||
import ExperimentSetup from '../es6/experimentSetup'; | ||
import planoutAPIFactory from './planoutAPIFactory'; | ||
import * as Random from '../es6/ops/random'; | ||
|
||
export default { | ||
Namespace: Namespace, | ||
Assignment: Assignment, | ||
Interpreter: Interpreter, | ||
Experiment: Experiment, | ||
ExperimentSetup: ExperimentSetup, | ||
Ops: { | ||
Random: Random, | ||
Core: Core | ||
} | ||
}; | ||
export default planoutAPIFactory({Random}); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,4 @@ | ||
import Experiment from '../es6/experiment'; | ||
import Interpreter from '../es6/interpreter'; | ||
import RandomPlanoutCoreCompatible from '../es6/ops/randomPlanoutCoreCompatible'; | ||
import Core from '../es6/ops/core'; | ||
import * as Namespace from '../es6/namespace'; | ||
import Assignment from '../es6/assignment'; | ||
import ExperimentSetup from '../es6/experimentSetup'; | ||
|
||
export default { | ||
Namespace: Namespace, | ||
Assignment: Assignment, | ||
Interpreter: Interpreter, | ||
Experiment: Experiment, | ||
ExperimentSetup: ExperimentSetup, | ||
Ops: { | ||
Random: RandomPlanoutCoreCompatible, | ||
Core: Core | ||
} | ||
}; | ||
import planoutAPIFactory from './planoutAPIFactory'; | ||
import * as Random from '../es6/ops/randomPlanoutCoreCompatible'; | ||
|
||
export default planoutAPIFactory({Random}); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import provideAssignment from '../es6/assignment'; | ||
import provideExperiment from '../es6/experiment'; | ||
import * as ExperimentSetup from '../es6/experimentSetup'; | ||
import provideInterpreter from '../es6/interpreter'; | ||
import * as Base from '../es6/ops/base'; | ||
import * as Core from '../es6/ops/core'; | ||
import * as OpsUtils from '../es6/ops/utils'; | ||
import provideNamespace from '../es6/namespace'; | ||
|
||
export default ({ | ||
Random = null | ||
} = {}) => { | ||
// Provide our operations to the OpsUtils module | ||
OpsUtils.initializeOperators(Core, Random); | ||
|
||
// Inject our Random and other dependencies into our modules | ||
const Assignment = provideAssignment(Random); | ||
const Experiment = provideExperiment(Assignment); | ||
const Interpreter = provideInterpreter(OpsUtils, Assignment); | ||
const Namespace = provideNamespace(Random, Assignment, Experiment); | ||
|
||
return { | ||
Assignment, | ||
Experiment, | ||
ExperimentSetup, | ||
Interpreter, | ||
Ops: { | ||
Random, | ||
Core, | ||
Base | ||
}, | ||
Namespace | ||
}; | ||
}; |
Oops, something went wrong.