Skip to content

Yeoman plugin for generating Safe Types and other Typescript skeleton projects

License

Notifications You must be signed in to change notification settings

SafelyTyped/generator-safelytyped

Repository files navigation

Scaffolding For SafeTypes

Introduction

This is our tool to quickly and easily create:

  • skeleton repos

for SafelyTyped and other Typescript projects.

Installation

In your terminal:

sudo npm install -g yo generator-safelytyped

How To Run

In your terminal:

# creates a skeleton TypeScript library project
cd $HOME/Projects/myGitOrganisationOrUser
yo safelytyped:create:library <folder-name>

# creates a skeleton branded type
cd $HOME/Projects/myGitOrganisationOrUser/ProjectName
yo safelytyped:create:branded <new-type> <string|number>

# creates a skeleton refined type
cd $HOME/Projects/myGitOrganisationOrUser/ProjectName
yo safelytyped:create:refinedtype <new-type> <RefinedNumber|RefinedString>

# creates a skeleton ValueObject
cd $HOME/Projects/myGitOrganisationOrUser/ProjectName
yo safelytyped:create:valueobject <new-type> <any[]|object>

About

Yeoman plugin for generating Safe Types and other Typescript skeleton projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published