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
/** | |
* Stencil Doc Outputs don't seem to support custom-elements.json as suggested | |
* here: https://github.com/w3c/webcomponents/issues/776#issuecomment-536749457. | |
* This generator implements this standard, which is used by Storybook to display | |
* documentation. | |
*/ | |
export async function generateJsonDocs(config, compilerCtx, _buildCtx, docsData) { | |
const jsonOutputTargets = config.outputTargets.filter(isOutputTargetCustomElementDocsJson); | |
const { components, ...docsDataWithoutComponents } = docsData; | |
const json = { |
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
import Foundation | |
import UIKit | |
import SwiftUI | |
import Combine | |
class NutrientModel: Progressable { | |
var willChange = PassthroughSubject<BaseNutrient, Never>() | |
var id = UUID.init() | |
var name: String |