Skip to content
This repository has been archived by the owner on Nov 12, 2017. It is now read-only.

TypeScript compiler based on in-memory file system

License

Notifications You must be signed in to change notification settings

ComSemRel/typescript-vfs-compiler

Repository files navigation

@comsemrel/typescript-vfs-compiler Build Status Dependency Status devDependencies Status

Greenkeeper badge

TypeScript compiler based on in-memory file system.

Installation

Install it just like any other npm package:

npm install @comsemrel/typescript-vfs-compiler [--save-dev]

Usage

This package exports compiler, which can be used only inside JS code:

const compiler = require( '@comsemrel/typescript-vfs-compiler' ).default;

compiler( {
	'index.ts': 'console.log( 42 )'
} );

The first parameter is a "virtual filesystem" (what a fancy name!):

{
	'someFile.ts': 'file content',
	'otherFile.ts': 'another file content'
}

The second parameter is an object containg compiler options.

License

See LICENSE file for details.

About

TypeScript compiler based on in-memory file system

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published