0.0.6 • Published 8 years ago

mytype v0.0.6

Weekly downloads
32
License
-
Repository
-
Last release
8 years ago

Introduction

Type-manager is a package-manager for typescript-definitions, mytype-cli is the command-line-client for the type-manager-service, which allows you to install definition-files such as .d.ts and publish your own definition-files on the service.

THIS PROJECT IS UNSTABLE AND CURRENTLY UNDER DEVELOPMENT, PLEASE REPORT ANY KIND OF BUGS, ISSUES AND FEATURE-SUGGESTIONS TO CREATE A HANDY AND STABLE PRODUCT.

Installation

sudo npm install mytype -g 

Usage

To print the help list of the commandline actions, just enter mytype -h to get the basic information.

Project Setup && Package.json

To define your project-definition-dependencies, just define this following object in your package.json file:

"typescript": {
  "dependencies": {
    "node": "0.10.0",
    "async": "0.0.1"
  }
}

after this definition you can execute the action install, when all dependencies are found, the folder typings/ should contain all required defintion-files.

Publish your project-definition

To define the summary definitions of your module, add this following property in your typescript object:

"typescript": {
    "definition": "dist/index.d.ts",
    "dependencies": {
        "node": "0.10.0",
        "async": "0.0.1"
  }
}

by execute the command-line-action link, your defintion should be linked on the type-manager server.

INFO:

  • A loggged user has to be active to use this action.
  • The type-manger-service contains only the references from github-repository, we also lock the current-branch of the repository.