pure-typescript

0.0.1 • Public • Published

pure-typescript

Pure Typescript Loader for Node & Browser with Zero Setting

DO NOT USE ME IN PRODUCTION(YET) BECAUSE I AM UNDER HEAVY DEVELOPMENT NOW

Why Pure TypeScript?

I love typescript(because of angular 2), and I switched all my javascript code to typescript now, including my server components.

I also would like to write pure typescript npm modules, which I think is no need to compile to javascript any more, because my environment is a full typescript stack.

But there's no such a tool for me to run typescript smoothly for my need. for example:

  1. ts-node don't support load pure typescript library/module in node_modules directory
  2. tsconfig.json is a too complicated
  3. typings.json is too complicated
  4. index.d.ts is too complicated
  5. set default file extension to .ts
  6. run typescript in browser needs a lot of configuration(too complicated)
  7. .ts is not the first dependencies file extention search 1st order

I believe that run typescript should as easy as run node in server, or javascript in browser, this is the reason I decided to write a new tool to solve those problems.

Goal

  1. Support Pure TypeScript modules/library in node_moduels
  2. Run typescript as Zero-Configuration
  3. One Line Configuration in browser to run Pure TypeScript directly

The PAIN of Pure Typescript Developer

Usage

$ purets server.ts

Best Practice

  1. Add keywords: pure-typescript in package.json
  2. For Pure Typescript NPM Module, set main: index.ts in package.json

Reference

Version History

v0.0.1 (master)

  1. run purets like node: purets pure-typescript-file.ts
  2. publish npm module: pure-typescript

Known Issues & Support

Github Issue - https://github.com/zixia/pure-typescript/issues

Author

Zhuohuan LI zixia@zixia.net (http://linkedin.com/in/zixia)

profile for zixia at Stack Overflow, Q&A for professional and enthusiast programmers

Copyright & License

  • Code & Docs 2016© zixia
  • Code released under the ISC license
  • Docs released under Creative Commons

Package Sidebar

Install

npm i pure-typescript

Weekly Downloads

0

Version

0.0.1

License

ISC

Last publish

Collaborators

  • zixia