rules_nodejs

package
v0.0.0-...-5428336 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProtoNodeJsLibraryRuleName   = "proto_nodejs_library"
	ProtoNodeJsLibraryRuleSuffix = "_nodejs_library"
)
View Source
const (
	ProtoTsLibraryRuleName   = "proto_ts_library"
	ProtoTsLibraryRuleSuffix = "_ts_proto"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type JsLibrary

type JsLibrary struct {
	KindName       string
	RuleNameSuffix string
	Outputs        []string
	Config         *protoc.ProtocConfiguration
	RuleConfig     *protoc.LanguageRuleConfig
	Resolver       protoc.DepsResolver
}

JsLibrary implements RuleProvider for 'js_library'-derived rules.

func (*JsLibrary) Deps

func (s *JsLibrary) Deps() []string

Deps computes the deps list for the rule.

func (*JsLibrary) Imports

func (s *JsLibrary) Imports(c *config.Config, r *rule.Rule, file *rule.File) []resolve.ImportSpec

Imports implements part of the RuleProvider interface.

func (*JsLibrary) Kind

func (s *JsLibrary) Kind() string

Kind implements part of the ruleProvider interface.

func (*JsLibrary) Name

func (s *JsLibrary) Name() string

Name implements part of the ruleProvider interface.

func (*JsLibrary) Resolve

func (s *JsLibrary) Resolve(c *config.Config, ix *resolve.RuleIndex, r *rule.Rule, imports []string, from label.Label)

Resolve implements part of the RuleProvider interface.

func (*JsLibrary) Rule

func (s *JsLibrary) Rule(otherGen ...*rule.Rule) *rule.Rule

Rule implements part of the ruleProvider interface.

func (*JsLibrary) Srcs

func (s *JsLibrary) Srcs() []string

Srcs computes the srcs list for the rule.

func (*JsLibrary) Visibility

func (s *JsLibrary) Visibility() []string

Visibility provides visibility labels.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL