Skip to content

🤖The transformer behind the Nindo codebase. A flamework alternative with basic dependency injection and lifetime cycles.

Notifications You must be signed in to change notification settings

iamnoderbx/nindo-ts-transformer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The core transformer that creates reflect metadata per class to handle initializations, dependency injections, decorator tags, implementations.

Documentation is partially hand written, partially generated. Allows for implementations such as Start, Initialize, Thread, and more. See the nindo-framework example to see how it works entirely. This is a product based transformer that has worked in creating numerous projects.

// Due to this class implementing Start & Initialize it will add reflection via the transformer
// The framework will then register this as a controller or service.
class ExampleController implements Start, Initalize {
  // Automatically passes dependencies when compiled for controllers. During compiling
  // reflection meta is registered.
  constructor(private dependency : Example2Controller) {
    // Dependencies are passed within constructor.
  }

  // Runs after initialization, dependencies are resolved at this state 
  Start() {
     
  }

  // Runs prewarming, after reflection is registered alongside meta.
  Initalize() {
    
  }
}

About

🤖The transformer behind the Nindo codebase. A flamework alternative with basic dependency injection and lifetime cycles.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published