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
| const path = require("path"); | |
| module.exports = { | |
| context: path.resolve(__dirname, "./"), | |
| output: { | |
| path: __dirname + "/dist", | |
| filename: "bundle.js", | |
| library: "ab-chart", | |
| libraryTarget: "commonjs" | |
| }, |
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
| const path = require("path"); | |
| module.exports = { | |
| context: path.resolve(__dirname, "."), | |
| output: { | |
| path: __dirname + "/dist", | |
| filename: "bundle.js", | |
| library: "ab-chart", | |
| libraryTarget: "umd" | |
| }, |
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
| { | |
| "name": "ab-chart", | |
| "version": "1.0.0", | |
| "description": "", | |
| "main": "dist/bundle.js", | |
| "scripts": { | |
| "test": "echo \"Error: no test specified\" && exit 1", | |
| "build": "webpack" | |
| }, | |
| "keywords": [], |
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
| const path = require("path"); | |
| module.exports = { | |
| output: { | |
| path: __dirname + "/dist", | |
| filename: "bundle.js", | |
| library: "ab-chart", | |
| libraryTarget: "commonjs-module" | |
| }, | |
| entry: "./src/index.js", |
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
| init(searchTerm: String) { | |
| let searchSettings = AppEnvironment.current.searchSettings | |
| // assemble context for search | |
| let assembleSearchContext: () throws -> PerformSearchContext = { | |
| let groups = searchSettings.groups | |
| let filter = try SearchFilter(groups: groups) | |
| let searchType = try SearchType(groups: groups) |
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
| class ListViewController: UIViewController, Styled, Reloadable { | |
| private let viewModel: ListViewModel | |
| private let tableview = UITableView() | |
| private let refreshControl = UIRefreshControl() | |
| private let disposeBag = DisposeBag() | |
| init(listViewModel: ListViewModel) { |
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
| { | |
| presets: ["env", "react"] | |
| } |
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
| // | |
| // Queryables.swift | |
| // DataSiteOne | |
| // | |
| // Created by Bollbach, Alexander on 7/26/18. | |
| // Copyright © 2018 Merrill Corporation. All rights reserved. | |
| // | |
| import Foundation |
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
| enum APIResult<T: APIRequest> { | |
| case success(T.Response) | |
| case failure(APIError) | |
| } | |
| extension APIResult: Equatable where T.Response: Equatable { | |
| static func == (lhs: APIResult<T>, rhs: APIResult<T>) -> Bool { | |
| switch (lhs, rhs) { | |
| case (.success, .failure), (.failure, .success): | |
| return false |
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
| class Foo: FooType { | |
| func logBars(_ num: Int) -> String { | |
| return "\(num) bars" | |
| } | |
| } | |
| func testFooReturnsBar() { | |
| let sut = Foo() // "subject under test" |