Sha256: 7dbc319787fe68befce0c1dbc34ed8e9bfcc1b5061310c4419a565b9c82e12cc
Contents?: true
Size: 902 Bytes
Versions: 58
Compression:
Stored size: 902 Bytes
Contents
# frozen_string_literal: true module Extension module Models module ServerConfig class DevelopmentEntries < Base include SmartProperties JAVASCRIPT = "javascript" JAVASCRIPT_REACT = "javascript-react" TYPESCRIPT = "typescript" TYPESCRIPT_REACT = "typescript-react" VALID_ENTRY_POINTS = [ "src/index.js", "src/index.jsx", "src/index.ts", "src/index.tsx", ] property! :main, accepts: VALID_ENTRY_POINTS def self.find(template) case template when JAVASCRIPT new(main: "src/index.js") when JAVASCRIPT_REACT new(main: "src/index.jsx") when TYPESCRIPT new(main: "src/index.ts") when TYPESCRIPT_REACT new(main: "src/index.tsx") end end end end end end
Version data entries
58 entries across 58 versions & 1 rubygems